01 / 20

Standard
Error

Learn how to quantify the precision of sample statistics and understand why larger samples produce more reliable estimates.

Biostatistics

What Is Standard Error?

Every time you collect a sample and compute a statistic (like a mean), you get a slightly different value. The standard error (SE) measures how much that statistic would vary across many repeated samples from the same population.

Why SE Matters in Research

Confidence Intervals
SE defines the width of confidence intervals: smaller SE means a narrower, more precise interval.
Hypothesis Testing
Test statistics like \( t \) and \( z \) divide an observed effect by the SE to judge significance.
Study Design
Researchers use SE to determine the sample size needed for a target precision in clinical trials.

The Sampling Distribution

Imagine drawing hundreds of samples of size \( n \) from a population and computing the mean each time. Those means form a distribution: the sampling distribution of \( \bar{x} \).

\(\mu\) \(\bar{x}\) Frequency Population (SD = \(\sigma\)) Sampling dist. (SE = \(\sigma/\!\sqrt{n}\)) SE

The Core Formula

For the sample mean \( \bar{x} \), the standard error is:

When \( \sigma \) is unknown (which is nearly always in practice), we substitute the sample standard deviation \( s \):

How \( n \) Affects SE

Sample Size (\( n \)) SE \(n=4\) \(n=25\) \(n=100\) 4 25 100 200

SD vs SE: The Key Distinction

Standard Deviation (SD) Standard Error (SE)
Measures Spread of individual observations Spread of a sample statistic
Formula \( s = \sqrt{\frac{\sum(x_i - \bar{x})^2}{n-1}} \) \( \text{SE} = \frac{s}{\sqrt{n}} \)
Changes with \( n \)? No: stays roughly constant Yes: decreases as \( n \) grows
Used for Describing data variability Building CIs and test statistics

SE for Common Estimators

Sample Mean
$$ \text{SE} = \frac{s}{\sqrt{n}} $$
Sample Proportion
$$ \text{SE} = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} $$
Difference of Means
$$ \text{SE} = \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}} $$

How to Compute SE

1
Identify the estimator. Are you computing a mean, a proportion, or a difference?
2
Find \( s \) (or \( \hat{p} \)). Calculate the sample standard deviation, or use the sample proportion as appropriate.
3
Find \( n \). Record your sample size (or both \( n_1 \) and \( n_2 \) for two-sample problems).
4
Plug into the formula. For means: \( \text{SE} = s / \sqrt{n} \). For proportions: \( \text{SE} = \sqrt{\hat{p}(1-\hat{p})/n} \).
5
Interpret the result. SE tells you the typical distance between your sample statistic and the true parameter.

Example 1: SE of a Sample Mean

A biologist measures the blood glucose levels (mg/dL) of \( n = 36 \) lab mice. The sample standard deviation is \( s = 12 \) mg/dL. Find the standard error of the sample mean.

Example 2: SE of a Proportion

In a clinical trial, 72 out of 200 patients respond to a new drug. Find the standard error of the sample proportion \( \hat{p} \).

Example 3: SE of a Difference of Means

Two groups of patients receive different treatments. Group A: \( n_1 = 50 \), \( s_1 = 8 \). Group B: \( n_2 = 60 \), \( s_2 = 10 \). Find the SE of \( \bar{x}_1 - \bar{x}_2 \).

Seeing the \( \sqrt{n} \) Rule

\(\mu\) \(n = 9\): SE = 6.67 \(n = 36\): SE = 3.33 \(n = 144\): SE = 1.67

Common Mistakes

✕ Confusing SD and SE
Reporting \( s \) when you mean \( s/\sqrt{n} \) (or vice versa). Always state which you are computing.
✕ Dividing by \( n \) not \( \sqrt{n} \)
The formula is \( s/\sqrt{n} \), not \( s/n \). Forgetting the square root drastically underestimates SE.
✕ Thinking bigger \( n \) changes SD
SD describes the population's spread: it does not shrink with larger samples. Only SE shrinks.

Summary of SE Formulas

Estimator SE Formula Key Ingredient
Sample mean \( \bar{x} \) \( \dfrac{s}{\sqrt{n}} \) Sample SD (\( s \))
Sample proportion \( \hat{p} \) \( \sqrt{\dfrac{\hat{p}(1-\hat{p})}{n}} \) \( \hat{p} \) itself
Difference of means \( \sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}} \) Both SDs and both \( n \)'s
Difference of proportions \( \sqrt{\dfrac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \dfrac{\hat{p}_2(1-\hat{p}_2)}{n_2}} \) Both \( \hat{p} \)'s

Question 1 of 5

A sample of \( n = 64 \) patients has a sample standard deviation of \( s = 16 \). What is the standard error of the mean?

Question 2 of 5

If you quadruple the sample size, the standard error of the mean will:

Question 3 of 5

In a survey, 45 out of 300 respondents test positive for a biomarker. What is the standard error of \( \hat{p} \)?

Question 4 of 5

Which statement best describes the difference between standard deviation and standard error?

Question 5 of 5

Group 1: \( n_1 = 40 \), \( s_1 = 6 \). Group 2: \( n_2 = 40 \), \( s_2 = 8 \). What is the SE of the difference in sample means?