Definition 12.3.1.
Recall that samples are dependent if there is some relationship whereby each value in one sample is paired with a corresponding value in the other sample. Therefore, a hypothesis test that uses dependent samples is sometimes called a matched pair test. We need to know the matched-pair difference for each pair, defined as
\begin{equation*}
d = x_1-x_2,
\end{equation*}
where \(x_1\) and \(x_2\) are the matched-pair values from Populations 1 and 2, respectively.
The mean, \(\overline{d}\text{,}\) and standard deviation, \(s_d\text{,}\) of these differences are defined by the formulas:
\begin{equation*}
\overline{d}=\frac{\sum_{i=1}^n d_i}{n}\;\;\;\;\;\;\;\;\; s_d=\sqrt{\frac{\sum_{i=1}^n d_i^2 - \frac{\left( \sum_{i=1}^n d_i \right)^2}{n}}{n-1}}
\end{equation*}
where
\(d_i\) | \(=\) | the \(i\)th matched-pair difference |
\(n\) | \(=\) | the number of matched-pairs |
Recall that we can also use the AVERAGE and STDEV.S Excel formulas to compute the mean and standard deviation when we have all of the matched-pair differences.
Next, we define the test statistic and confidence interval formulas for dependent (matched-pair) samples:
\begin{equation*}
t_{\overline{x}}=\frac{\overline{d}-(\mu_d)_{H_0}}{\frac{s_d}{\sqrt{n}}}\;\;\;\;\;\;\; \overline{d}\pm t_{\alpha/2}\cdot\frac{s_d}{\sqrt{n}},
\end{equation*}
where \((\mu_d)_{H_0}=\text{ the population mean matched-pair difference from the null hypothesis}.\)