Skip to main contentSkip to solution

Let two independent random samples of sizes n1n_1 and n2n_2 respectively have been drawn from the same normal population. Let X1\overline{X_1} and X2\overline{X_2} be the means and let s1s_1 and s2s_2 be their standard deviations. In order to test whether the the two sample means X1\overline{X_1} and X2\overline{X_2} differ significantly or not, the tt-test statistic is given by

Solution

Correct Option: 3

The goal is to test whether two sample means xˉ1\bar{x}_1 and xˉ2\bar{x}_2 are significantly different when both samples come from the same normal population.

We want to check if the difference between the two sample means is large enough to be real, or if it could just be due to random chance. The tt-statistic measures exactly this — it compares the difference to how much difference we'd expect from random sampling alone.


The tt-test statistic always follows this pattern:

t=Difference in meansStandard error of the differencet = \dfrac{\text{Difference in means}}{\text{Standard error of the difference}}

This gives us:

t=xˉ1xˉ2s1n1+1n2t = \dfrac{\bar{x}_1 - \bar{x}_2}{s\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}}

where:

xˉ1xˉ2\bar{x}_1 - \bar{x}_2 is the observed difference between the two sample means

ss is the pooled standard deviation (explained in the next step)

1n1+1n2\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}} is the adjustment factor that accounts for sample sizes

Note: the term inside the square root is 1n1+1n2\dfrac{1}{n_1} + \dfrac{1}{n_2} and not 1n12+1n22\dfrac{1}{n_1^2} + \dfrac{1}{n_2^2}. This is because when you subtract two independent quantities, their variances add, and the variance of a sample mean is proportional to 1n\dfrac{1}{n}, not 1n2\dfrac{1}{n^2}.


Since both samples come from the same population, they share the same true variance. So instead of using s1s_1 and s2s_2 separately, we combine (pool) them into one better estimate:

s=n1s12+n2s22n1+n22s = \sqrt{\dfrac{n_1 s_1^2 + n_2 s_2^2}{n_1 + n_2 - 2}}

The numerator n1s12+n2s22n_1 s_1^2 + n_2 s_2^2 is the total sum of squared deviations from both samples combined. Larger samples contribute more, which makes sense.

The denominator n1+n22n_1 + n_2 - 2 is the total degrees of freedom. We subtract 22 because we used up one degree of freedom estimating each sample mean — one for xˉ1\bar{x}_1 and one for xˉ2\bar{x}_2.


t=xˉ1xˉ2s1n1+1n2t = \dfrac{\bar{x}_1 - \bar{x}_2}{s\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}} where s=n1s12+n2s22n1+n22s = \sqrt{\dfrac{n_1 s_1^2 + n_2 s_2^2}{n_1 + n_2 - 2}}

This tt-statistic follows a tt-distribution with n1+n22n_1 + n_2 - 2 degrees of freedom.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question