Mathwords logoMathwords

Independent Samples — Definition, Formula & Example

Independent samples are two groups of data collected so that picking the individuals in one group has nothing to do with picking the individuals in the other. No individual in one sample is matched or paired with an individual in the other.

Samples X1,…,Xn1X_1, \dots, X_{n_1} from population 1 and Y1,…,Yn2Y_1, \dots, Y_{n_2} from population 2 are independent if every XiX_i is statistically independent of every YjY_j. Under this condition, Var⁡(Xˉ−Yˉ)=Var⁡(Xˉ)+Var⁡(Yˉ)\operatorname{Var}(\bar{X} - \bar{Y}) = \operatorname{Var}(\bar{X}) + \operatorname{Var}(\bar{Y}). That additivity is what justifies the two-sample tt and zz procedures.

Key Formula

SExˉ1−xˉ2=s12n1+s22n2SE_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}
Where:
  • s1,s2s_1, s_2 = sample standard deviations of groups 1 and 2
  • n1,n2n_1, n_2 = sample sizes of groups 1 and 2
  • SExˉ1−xˉ2SE_{\bar{x}_1 - \bar{x}_2} = standard error of the difference in sample means (valid only for independent samples)

Worked Example

Problem: A random sample of 25 students from School A has mean test score 78 with standard deviation 10. A separate random sample of 36 students from School B has mean 72 with standard deviation 12. Find the standard error of the difference in means and the two-sample tt statistic.
Step 1: Check independence. The two schools were sampled separately and no student is paired with another, so the samples are independent of each other. Each sample is also less than 10% of its school's population, so observations within each sample are approximately independent.
Step 2: Because the samples are independent, the variances add. Compute the standard error.
SE=10225+12236=4+4=8≈2.83SE = \sqrt{\frac{10^2}{25} + \frac{12^2}{36}} = \sqrt{4 + 4} = \sqrt{8} \approx 2.83
Step 3: Divide the difference in sample means by the standard error. Using the conservative choice, degrees of freedom are min⁡(25−1, 36−1)=24\min(25-1,\, 36-1) = 24.
t=78−728≈2.12t = \frac{78 - 72}{\sqrt{8}} \approx 2.12
Answer: The standard error is 8≈2.83\sqrt{8} \approx 2.83 points, and the test statistic is t≈2.12t \approx 2.12 with 24 degrees of freedom (conservative).

Why It Matters

On the AP Statistics exam, you must state the independence condition before running any two-sample tt-test or two-proportion zz-test. Choosing between a two-sample procedure and a paired procedure is a common free-response question, and the choice depends entirely on whether the samples are independent.

Common Mistakes

Mistake: Treating before-and-after measurements on the same people as independent samples.
Correction: Measurements taken twice on the same subjects, or on matched pairs such as twins, are paired data. Compute the difference for each pair and run a one-sample tt procedure on those differences.

Related Terms