T-tests Flashcards
T-tests are used
to test whether the means in two groups are diff from each other
Assumptions of T-tests
- data in each group is normally distributed
- SD os constant across groups
- data points are independent of each other
what sort of data
continous
inferential
unequal variance
a version of t-test which assumes unequal variance, instead of equal
-for example if we collect data and the SD is different for both groups, then we would use this test
paired t-test
paired data e.g. blood pressure before and after taking statins for the same people. These data are no longer independent and therefore we use a paired t-test
three types of t-test
- unpaired assuming unequal variance
- unpaired data assuming equal variance
- paired t-test
t-test example
-we want to know if statins lower bp
1) define population- all those at risk of CV disease
2)study and hypothesis: recruit 500 people at risk of CV event and give half statins, then measure blood pressure. We hfypoheise that those who have taken statins will have a lower BP
3) null hypothesis: statins do not lower bp
4)analyse data:
No statins:174
statins: 154.
Here the difference between means is 20. Our null hypothesis is a difference of 0. When a T-test is applied p=0.02, therefore we have good evidence to show that statins do lower BP