Student’s t-test
POLS 3316: Statistics for Political Scientists
2023-11-06
\(X^2\) and t-test are simple enough to work out with a calculator, so a small data version of each will be on the final
\(X^2\) (Chi squared): Categorical variables with counts
\(X^2\) test of goodness of fit - tells whether the sample data is representative of the population
\(X^2\) test of indendependence (we dit this) - tells us if two categorical variables are related or not
Such as the sugar content of barley malt for use in brewing beet…
pairwise comparison: what are the pairs?
- one sample: comparing one group against a standard value
- two-sample or independent t-test: compares two groups from different populations
- paired t-test: compares a single group as in before and after comparison
One or two tails
- Two tailed test: tells if they are different, either greater or less
- One tailed test: tells if one group is specifically greater or less, bot not either
Other points:
- degrees of freedom = n - 1
- When t-test degrees of freedom > 30, it converges on the z-score
- t-test is more conservative than z-score
t-distribution
t vs z dist
Continuous variables
normal distribution
- Central Limit Theorem can get us to normal distribution
known population standard deviation
- "known" ~ accepted estimate of the population standard deviation from LLN and CLT
Use if: if the population standard deviation is known or reliably estimated and sample size > 30
Group 1: (12.2, 14.6, 13.4, 11.2, 12.7, 10.4, 15.8, 13.9, 9.5, 14.2) Group 2: (13.5, 15.2, 13.6, 12.8, 13.7, 11.3, 16.5, 13.4, 8.7, 14.6)
More on reading t-tables plus 1- and 2- tailed tables here:
https://www.statisticshowto.com/tables/t-distribution-table/
Author: Tom Hanna
Website: tomhanna.me
License: This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
POLS3316, Fall 2023, Instructor: Tom Hanna