Student's T-Test
We are going to learn about a common inferential statistic called the Student’s T-Test (it was published under the psedonym ‘Student’). It is a so-called parametric test, because it assumes your data follows a normal distribution.
Watch the video and then answer the questions below.
Thirty four-minute video
You can also view this video on YouTube
Key Points
- The t-test calculates the T statistic
- The T statistic can be converted to a p-value by comparing it to the t-distribution
- The t-test assumes our data is normally distributed
- T-tests can compare only up to two groups
One-sample and paired t-test
If we want to compare a group mean against a known value (e.g the population mean
We use the t-test (as opposed to the z-test) when we don’t know the population standard deviation
Two-sample t-test
If we want to compare a differences between group means (
Where
Questions
1. Check your understanding
1. Pick the appropriate statistical test formula
Expression | ||||||
---|---|---|---|---|---|---|
1. | I compare the average height of two groups | |||||
2. | I compare a group’s performance in a puzzle against a theoretical mean that assumes completely random behaviour | |||||
3. | I assess the IQ of a group assuming |
|||||
4. | I investigate if drinking coffee increases a participant’s heart rate compared to a resting value | |||||
5. | I run a counterbalanced game enjoyment study. Each participant plays two games and rates each of them. I want to see if one game is more enjoyable than the other |
2. Calculate the t statistic
I collect 10 sensor readings each from 2 sensors. I want to see if there is a difference between the means of their readings.
Group 1 | Group 2 |
---|---|
0.4 | 6.3 |
3.6 | -1.2 |
3.3 | -11.3 |
1.5 | -6.3 |
-1.7 | -5 |
0.1 | -3.4 |
4.2 | 2.4 |
-1.8 | 14.7 |
1.9 | -2.9 |
-3.6 | 9.9 |
We should use a:
We get a t statistic of:
(2 decimal places)
Here there are 20 data points. Because we “spend” 2 of them to calculate the mean for each group we are left with 18 degrees of freedom (df). We do a 2 tailed test against an t
and df
in a table of t-statistics for different alpha values. If our t value is larger than the one listed for our t
and df
we have significance.
Is our result significant?
Summary
In this section we have learned about sampling from a population and threats to validity involved. Once you’ve completed the questions, you can move on to the inferential statistics challenges.
- Previous
- Next