T-Tests Notes
Scales of Measurement and Statistical Tools
The scale of measurement of a dependent variable (Nominal, Ordinal, Interval, and Ratio) is a clue for selecting the appropriate statistical tool.
Types of t-tests
One Sample t-test: Determines if a sample mean differs significantly from a hypothesized value.
Independent Samples t-test: Determines if the means of two independent groups differ significantly.
Paired Samples t-test: Determines if the mean of one group differs across repeated tests.
One Sample t-test
Hypotheses:
Null Hypothesis (): , where is the population mean.
Alternative Hypothesis ():
Null Probability Distribution
Variable Type: Interval/Ratio Dependent Variable (x)
= sample mean
= population mean under the null hypothesis
= sample standard deviation
N = sample size
Degrees of Freedom (df): (Think independence)
Applying the One Sample t-test
Example 1:
,
Example 2:
,
Critical values at t(7) = +/- 2.365 for
Effect Size: Cohen's d
Cohen's d is reported to estimate effect size.
It distills a raw mean difference into standard deviation (SD) units.
Formula: , where s is the sample standard deviation.
Example:
Confidence Interval
Confidence Intervals (e.g., 95% CI) combine sample data and the critical test statistic for .
If the same study were run 100 times, the true population mean would be within the computed interval 95 times.
Example:
for working memory capacity.
t(7) critical value = +/- 2.365
95% CI =
Assumptions
Normality: The population distribution is assumed to be normal (bell-shaped and centered at the null hypothesized value).
This assumption can be tested.
If violated, a non-parametric version of the t-test can be used.
The t-test is robust to violations of this assumption.
Independence: Observations are independently sampled.
This assumption cannot be formally tested.
If violated, the outcome of the t-test is invalid.
Independent Samples t-test
Null Probability Distribution
Variable Type: Interval/Ratio Dependent Variables ( & )
= sample mean for group 1
= sample mean for group 2
SE = pooled standard error
= sample size group 1
= sample size group 2
Degrees of Freedom (df): (Think independence)
Assumptions
Normality: The population distribution is assumed to be normal (i.e., bell shaped and centered at the null hypothesized value).
We can test this assumption.
If this assumption is violated we can use a non-parametric version of the t-test.
The t-test is robust to violations of this assumption
Independence: Observations are independently sampled.
This assumption cannot be formally tested.
If this assumption is violated then the outcome of the t-test is invalid.
Homogeneity of Variance: The population standard deviation is equal between the two groups.
This assumption can be tested.
If this assumption is violated, there are solutions (parametric and non-parametric).
Paired Samples t-test
Hypotheses:
Null Hypothesis (): , where is the population mean of difference scores.
Alternative Hypothesis ():
Null Probability Distribution
Variable Type: Interval/Ratio Dependent Variable (Difference scores)
= sample mean of difference scores
= standard error of difference scores
N = sample size of difference scores
Degrees of Freedom (df): (Think independence)
Assumptions
Normality: The population distribution of the difference scores is normal (bell-shaped and centered at the null hypothesized value).
Can test this assumption.
If violated, use a non-parametric alternative.
T-test is robust to violations of this assumption.
Independence: Measurable observations are independently sampled.
Cannot formally test this assumption.
If violated, the outcome is invalid.
No Significant Outliers in the Difference Scores: Outliers can distort results, especially in small samples.
Test by looking at a frequency distribution of the difference scores.
Test formally by computing z-scores for the difference scores, ensuring all z-scores fall between +/- Z = 2. (i.e., -2 < z < 2)