from edumath.statistics import standard_error
standard_error(15, 25)3.0
A statistic changes from sample to sample. If you repeatedly take random samples of the same size and compute the same statistic each time, the pattern of those statistics is a sampling distribution.
After this lesson you should be able to:
A statistic is one number from one sample, such as a sample mean.
A sampling distribution is the distribution of that statistic across many possible random samples of the same size.
Think of it this way:
raw data vary within one sample
statistics vary across repeated samples
The standard error is the standard deviation of a statistic’s sampling distribution. For a sample mean, a common formula is:
standard error of sample mean = standard deviation / sqrt(n)
If the population standard deviation is unknown, we often use the sample standard deviation as an estimate.
Because sqrt(n) is in the denominator, larger samples usually have smaller standard error.
If the standard deviation is 12:
n = 36 -> SE = 12 / sqrt(36) = 2
n = 144 -> SE = 12 / sqrt(144) = 1
Quadrupling the sample size cuts the standard error in half.
The central limit theorem says that, under common conditions, the sampling distribution of the sample mean becomes approximately normal as sample size grows, even when the original population is not normal.
Practical meaning:
The theorem is powerful, but not a license to ignore bad data collection, extreme dependence, or very small samples from highly skewed populations.
A population has standard deviation sigma = 15. A random sample has size n = 25. Find the standard error of the sample mean.
Step 1: Write the formula.
SE = sigma / sqrt(n)
Step 2: Substitute.
SE = 15 / sqrt(25)
Step 3: Simplify.
SE = 15 / 5 = 3
Interpretation: Sample means from samples of size 25 typically vary about 3 units from the population mean.
A sample standard deviation is about 20.
n=25, SE = 20/sqrt(25)=4.n=100, SE = 20/sqrt(100)=2.The larger sample gives a more stable sample mean. It does not guarantee no error, but it reduces typical sampling error.
A sample mean is based on n=80 independent observations from a right-skewed population without extreme outliers.
Reasoning:
A careful conclusion says “approximately normal,” not “perfectly normal.”
sqrt(n), not with n itself.s with standard error s/sqrt(n).s=10 and n=25.s=10 and n=100.SE=10/sqrt(25)=2.SE=10/sqrt(100)=1.Guess first. In a sampling distribution of means, what changes from one repeat to another?
Guided exercise.
The sample changes, so the sample mean changes. The population parameter stays fixed.
Checkpoint. In a sampling distribution of proportions, what statistic is recomputed each time?
Guess first. If s=18 and n=9, is the standard error 2, 6, or 162?
Guided exercise.
SE = 18/sqrt(9) = 18/3 = 6
Checkpoint. Compute SE for s=24, n=36.
Guess first. To cut standard error in half, do you double or quadruple sample size?
Guided exercise.
Because SE = s/sqrt(n), you must quadruple sample size to double sqrt(n) and cut standard error in half.
Checkpoint. If n changes from 50 to 200, what happens to standard error, approximately?
Guess first. Does the central limit theorem say raw data are always normal?
Guided exercise.
No. It describes the sampling distribution of sample means, not necessarily the raw data distribution.
Checkpoint. What must still be considered before using CLT-based methods?
SE=24/sqrt(36)=4.200 is four times 50.Compute standard error with edumath.
Use SymPy to see why quadrupling sample size halves standard error.