For a more detailed discussion, see the description in The Practice of Statistics, Statistics and Probability with Applications, or Introductory Statistics: A Student-Centered Approach.