9.3 Central Limit Theorem
The sampling distribution of the sample mean is the probability distribution for the possible values of the mean that results when random sample of size n are repeatedly drawn from the population with mean and standard deviation .
When the sample size is large or the samples are drawn from a population that is normally distributed with mean and standard deviation , the sampling distribution of the sample mean is approximately normal with mean and standard deviation of
Example: A normally distributed population has a mean of 90 and a standard deviation of 15. Samples of size n = 25 are drawn randomly from the population and the mean is computed.
- Find the probability that sample mean is less than 85.
stats.norm.cdf(85,90,15/25**.5)
from scipy import stats
stats.norm.cdf(85,90,15/25**(1/2))
Show expected output
0.0477903522728147Interpretation:
Example: A normally distributed population has a mean of 90 and a standard deviation of 15. Samples of size n = 25 are drawn randomly from the population and the mean is computed.
- Find the probability that the sample mean is between 85 and 92.
from scipy import stats
stats.norm.cdf(92,90,15/25**.5)-stats.norm.cdf(85,90,15/25**.5)
Show expected output
0.6997171101802624Interpretation:
Example: The mean age of tablet device users is 34 years. Suppose the standard deviation is 15 years. If a random sample of size n = 100 is drawn from this population:
- Find the probability that the sample mean age is more than 30 years.
- Find the 95th percentile for the sample mean age.
from scipy import stats
1-stats.norm.cdf(30,34,15/100**.5)
Show expected output
0.9961696194324102Interpretation:
from scipy import stats
stats.norm.ppf(.95,34,15/100**.5)
Show expected output
36.46728044042721Interpretation: Ninety-five percent of the sample means are less than or equal to 36.46728044042721
Example
The average score for an IQ test is 100 with a standard deviation of 15. Assume the test scores are normally distributed.
- If a random sample of 25 test scores is selected from this population, what is the probability that the sample mean is between 90 and 110.
- Find the 95th percentile for the sample mean score.
from scipy import stats
stats.norm.cdf(110,100,15/(25**.5))-stats.norm.cdf(90,100,15/(25**.5))
Show expected output
0.9991418793336064Interpretation: The probability that the mean is between 90 and 110 is 0.9991418793336064. That is,
from scipy import stats
stats.norm.ppf(.95,100,15/(25**.5))
Show expected output
104.93456088085442Interpretation: 95 percent of the test scores are less than or equal to 104.93456088085442.
Adapted from Python for Introductory Statistics, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.