Comparing data Flashcards
Parametric test for comparing paired, continuous data?
Paired t-test
What are the assumptions for the paired t-test
Differences are plausibly normally distributed
Differences are independent of each other
Steps to calculate a p-value from a paired t-test
- Calculate the differences between the values in each group (d)
- Calculate the mean + standard deviation of the means
- Calculate the standard error of the mean difference
- Calculate the test statistic (t)
- Under the null hypothesis, t is distributed as Student’s t, with n-1 degrees of freedom
- Look up this value in tables to find p-value (gives two-tailed p value)
How is the test statistic (t) calculated for paired t-test?
dbar(-0)/SE(dbar)
dbar = mean of the differences
How is the 100% (1-α)% confidence interval for the mean difference in the population calculated?
d(bar)-[txSE(dbar)] to dbar+[txSE(dbar)]
dbar = mean difference
t taken from t distribution table with n-1 degrees of freedom
What is the non-parametric equivalent of the paired t-test? (for assessing paired data)
Wilcoxon (matched pairs) signed rank test
What does the Wilcoxon signed rank test test?
Test of null hypothesis that there is no tendency for the outcome under one set of conditions to be higher or lower than under the comparison set of outcomes
What is the parametric test for independent, continuous data?
Independent samples t-test
What are the assumptions for the independent two sample t-test
Two independent groups
Continuous outcome
Outcome data in both groups is normally distributed
Outcome data in both groups have similar standard deviations
Steps to calculate a p value from the independent two sample t-test
- Calculate the difference between means of groups
- Calculate the pooled standard deviation of the means
- Calculate the standard error of the difference between two means
- Calculate the test statistic (t)
- Compare the test statistic with the t distribution with n1+n2-2 degrees of freedom
- Look up this value in tables to find p-value (gives two-tailed p value)
How is pooled SD for two independent groups calculated?
√[(n1-1)SD1^2+(n2-1)SD2^2]/n1+n2-2
How is standard error of difference between two means calculated for two independent groups?
pooled SDx√(1/n1)+(1/n2)
How is the test statistic (t) calculated for independent samples t test?
d/SE
d = observed difference in means
SE = standard error of difference in means
How is the 100% (1-α)% confidence interval for the difference between means in the population calculated?
(xbar1-xbar2) +/- [txSE(difference)]
What is the non-parametric equivalent of the independent samples t-test?
Mann-Whitney U test