Tutorials › Introduction to Statistics › Deriving the Standard Error of a Sample Mean

Sampling Distributions of Proportions and Means · Tutorial 511 of 996

Deriving the Standard Error of a Sample Mean

Follow the variance calculation from independent observations to the standard error of their mean, and see how to apply the result with units.

Intermediate 9 min read

What You'll Learn

  • Define the standard error of a sample mean
  • Derive the variance of the mean using independence
  • Convert variance into standard error and track the units
  • Calculate the standard error in several settings
  • Identify why dividing sigma by n gives the wrong result

Why Derive the Standard Error?

Individual observations vary from one to another. A sample mean averages those observations, so its variability is not the same as the variability of one observation. To quantify the variability of the mean across repeated samples, we need to derive its variance and then take the square root. The result depends on the population standard deviation and the number of independent observations.

This calculation is about the sampling distribution of \(\bar{x}\): the distribution of sample means that would result from repeatedly taking samples under the same conditions. The standard deviation of that distribution is called the standard error. It describes the variability of the statistic across samples, not the spread of individual observations within a sample.

Definition: If a statistic has a sampling distribution, its standard error (\(SE\)) is the standard deviation of that sampling distribution. For a sample mean formed from \(n\) independent observations, each with population standard deviation \(\sigma\), the standard error is \(\sigma/\sqrt{n}\), provided each observation has the same variance \(\sigma^2\).

Assumptions and Notation

Let \(X_1,X_2,\ldots,X_n\) represent the observations in a random sample. For this derivation, assume each observation has a finite mean \(\mu\) and variance \(\sigma^2\), and that the observations are independent. In other words, each \(X_i\) comes from the same population model, and knowing the value of one observation does not change the probability distribution of another. We form the sample mean

$$ \bar{X}=\frac{X_1+X_2+\cdots+X_n}{n}. $$

Here \(\bar{X}\) denotes the random sample mean before a particular sample is observed; after collecting data, its realized value is written \(\bar{x}\). The population standard deviation \(\sigma\) measures the spread of individual observations, while \(SE(\bar{X})\) measures the spread of the sample mean over repeated samples. The variance of each observation is \(\sigma^2\), in squared measurement units.

The shared mean \(\mu\) is the same for each observation because they follow the same population model. The variance calculation below uses the fact that each observation has variance \(\sigma^2\), and that independence makes the covariance between distinct observations zero.

Deriving the Variance of the Sample Mean

The mean is a sum multiplied by \(1/n\). Two variance rules are needed: multiplying a random variable by a constant \(c\) multiplies its variance by \(c^2\), and the variance of a sum includes both the individual variances and any covariances between terms. Independence makes those covariance terms zero. The derivation follows directly from these facts.

$$ \begin{aligned} \operatorname{Var}(\bar{X}) &=\operatorname{Var}\left(\frac{1}{n}\sum_{i=1}^{n}X_i\right)\\ &=\frac{1}{n^2}\operatorname{Var}\left(\sum_{i=1}^{n}X_i\right)\\ &=\frac{1}{n^2}\left[\sum_{i=1}^{n}\operatorname{Var}(X_i) +2\sum_{i<j}\operatorname{Cov}(X_i,X_j)\right]\\ &=\frac{1}{n^2}\left[n\sigma^2+0\right]\\ &=\frac{\sigma^2}{n}. \end{aligned} $$

The third line is the variance-of-a-sum formula: it adds each variance and twice each distinct pairwise covariance. To see why the covariance terms vanish, independence gives \(E[(X_i-\mu)(X_j-\mu)]=E[X_i-\mu]E[X_j-\mu]=0\) for \(i\ne j\), since both centered expectations are zero. There are \(n\) individual variance terms, each equal to \(\sigma^2\), so their sum is \(n\sigma^2\). Dividing by \(n^2\) gives \(\sigma^2/n\).

The standard error is the standard deviation of the sampling distribution, so it is the nonnegative square root of the variance:

$$ SE(\bar{X})=\sqrt{\operatorname{Var}(\bar{X})} =\sqrt{\frac{\sigma^2}{n}} =\frac{\sigma}{\sqrt{n}}. $$

The variance is measured in squared units, such as grams squared. Taking its square root returns the original measurement units, such as grams. This unit check is useful: a standard error for a mean weight should be expressed in weight units, not squared weight units.

Theorem: If \(X_1,\ldots,X_n\) are independent observations with common variance \(\sigma^2\), then the sample mean has variance \(\sigma^2/n\) and standard error \(\sigma/\sqrt{n}\). A common mean is also assumed when the observations are described as draws from the same population; it makes \(\bar{X}\) a mean of observations centered on the same population value.

Worked Calculations

Worked Example: Mean Measurement From 16 Independent Readings

Suppose a hypothetical instrument produces independent readings of a quantity, each with population standard deviation \(\sigma=8\) units. A sample consists of \(n=16\) readings. Find the variance and standard error of their sample mean.

Check the conditions. The model states that the readings are independent and share the same population standard deviation of 8 units. Thus each reading has variance \(8^2=64\) units squared, and the derived formula applies.

Variance of the mean.

$$ \operatorname{Var}(\bar{X}) =\frac{\sigma^2}{n} =\frac{8^2}{16} =\frac{64}{16} =4\text{ units}^2. $$

Standard error.

$$ SE(\bar{X}) =\frac{\sigma}{\sqrt{n}} =\frac{8}{\sqrt{16}} =\frac{8}{4} =2\text{ units}. $$

Across repeated samples of 16 readings under this model, the sample mean has standard deviation 2 units. This calculation does not require the individual readings to have a normal distribution; the stated assumptions suffice for its variance and standard error.

Worked Example: Average Fill Amount

A hypothetical production process has independent fill amounts with population standard deviation \(\sigma=2.4\) grams. A quality check averages \(n=5\) fills. Find the standard error of that average, rounding to three significant figures.

Check the conditions. Assume the five fill amounts are independent draws from the same process, with common standard deviation 2.4 grams. Their common variance is \(2.4^2=5.76\) grams squared.

Calculate the variance and standard error.

$$ \operatorname{Var}(\bar{X}) =\frac{5.76}{5} =1.152\text{ grams}^2, \qquad SE(\bar{X}) =\sqrt{1.152} =\frac{2.4}{\sqrt{5}} \approx 1.07\text{ grams}. $$

The standard error is approximately 1.07 grams. The variance retains squared units; taking its square root produces grams, the same units as the average fill amount.

Worked Example: Choosing a Sample Size From a Target Standard Error

A hypothetical chemical process has independent measurements with known population standard deviation \(\sigma=12\) milligrams. What sample size gives the mean a standard error of 3 milligrams?

Check the conditions. Assume measurements are independent and share the process standard deviation of 12 milligrams. The formula \(SE(\bar{X})=\sigma/\sqrt{n}\) is therefore appropriate.

Set the standard error equal to the target and solve for \(n\):

$$ 3=\frac{12}{\sqrt{n}} \quad\Longrightarrow\quad \sqrt{n}=\frac{12}{3}=4 \quad\Longrightarrow\quad n=4^2=16. $$

A sample of 16 measurements gives a standard error of 3 milligrams under these assumptions. Checking by substitution, \(12/\sqrt{16}=12/4=3\) milligrams. The sample size must be a whole number, and here the solution is already an integer.

What the Formula Depends On

The derivation shows precisely where independence enters: it removes covariance terms from the variance of the sum. If observations are dependent, the variance of their mean generally includes covariance contributions and need not equal \(\sigma^2/n\). The formula also uses a common variance; if observations have different variances, the sum of their variances is not \(n\sigma^2\).

For independent observations with the same population variance, the result applies regardless of the population's shape. A normal population is not needed to derive this variance. The result describes the variance and standard error of the sample mean; other questions about the shape of its sampling distribution require additional considerations.

This derivation also explains why the standard error contains \(\sqrt{n}\), not \(n\), in the denominator. Variances add across independent observations, and then the standard deviation is obtained by taking a square root. Specifically, variance decreases in proportion to \(1/n\), while standard error decreases in proportion to \(1/\sqrt{n}\).

Common Mistake

A frequent error is to write \(SE(\bar{X})=\sigma/n\), reasoning that averaging \(n\) observations divides their variability by \(n\). That confuses the scaling of a sum or mean with the scaling of a standard deviation. Multiplying a random variable by \(1/n\) divides its variance by \(n^2\); but the variance of the sum of \(n\) independent observations has already increased to \(n\sigma^2\). Together, these give \(\sigma^2/n\), whose square root is \(\sigma/\sqrt{n}\), not \(\sigma/n\).

For example, if \(\sigma=10\) units and \(n=25\), the incorrect calculation gives \(10/25=0.4\) units. The correct calculation is \(10/\sqrt{25}=2\) units. Substituting into the variance formula confirms the correct result: \(10^2/25=4\) units squared, and \(\sqrt{4}=2\) units.

Key takeaway: For \(n\) independent observations with common population standard deviation \(\sigma\), the variance of their sample mean is \(\sigma^2/n\), and its standard error is \(\sigma/\sqrt{n}\). Independence and the common variance are essential conditions for this derivation.

Check Your Understanding

Use the assumptions and formulas developed above to answer these questions.

  1. Independent observations have population standard deviation 6 seconds. For \(n=9\), calculate the variance and standard error of their sample mean, including units.
  2. In the variance derivation, which terms disappear because of independence?
  3. A student writes \(\sigma/n\) as the standard error. Explain the mistake and give the correct formula.
  4. Independent measurements have standard deviation 5 millimeters. How large must \(n\) be for the standard error of their mean to equal 1 millimeter?
  5. Why is a normal population assumption not needed to derive \(\operatorname{Var}(\bar{X})=\sigma^2/n\)?