-Test
- Unlike $z$-test, -test does NOT require population standard deviation.
- Because we estimate the standard error, there is more uncertainty in the family of distributions.
- Sample variance is an unbiased statistic, we use it to estimate population variance — this step introduced extra error.
- Using sample variance, we estimate the standard error
Choosing a Test
Design of the experiment determines which test to use.
- One-sample test
- Comparing sample mean to a reference value
- Raw scores used in analysis ().
- Paired samples test: When two measurements from same person or matched pairs, difference scores used ().
Independent samples test
- Two unrelated groups — knowing the score in one group provides no information about any particular score in the other group.
- Each participant contributes one score to one group.
- Difference between sample means used ().
- Because we’re comparing two means and two samples, the standard error must reflect sampling variability in both means — .
The pooled variance defined as
Therefore
Welch’s Test
When pooling sample variances, We assumed homogeneity of variances, i.e. assumed the population variances are equal. More accurately, we have Welch’s test.
We also adjusts the df using the Satterthwaite approximation.
\mathrm{df} = \frac {\left(\frac s^2_1 n_1 + \frac s^2_2 n_2\right)} { \frac 1 {n_1 - 1} \left(\frac s^2_1 n_1\right)^2 \frac 1 {n_2 - 1} \left(\frac s^2_2 n_2\right)^2 }In practice, Welch’s test is a reasonable default.
Paired Design
Observations are paired if the same participants complete both conditions, or are measured at two times, or the participants are deliberately matched in two conditions.
In this case, we analyze difference score, defined as . The statistic is .
In most cases, , thus it simplifies to , and .
Paired designs can produce a smaller standard error, since stable individual differences will cancel out.
Distribution
- Assume the sampling distribution is a distribution.
- Depends on degree of freedom,
- As df increases, and . Smaller df leads to thicker tails.
Confidence Interval
- Aside from , a point estimate, we’re interested in the margin of error.
- We choose a level of confidence, usually 95% for .
- Here is the two-tailed critical value associated with our df and level of confidence.
- The confidence interval shows a range of values compatible with our data.
- If the confidence interval for a -test does not contain the null value, we reject the null.
Interpretation of a 95% confidence interval
If you were to repeatedly collect samples and compute a confidence interval for each mean estimate, 95% of them would contain the true population mean.
Therefore, 95% refers to the long run success rate of the method.