Lecture 4 Flashcards
What are the three types of t tests?
- Pooled (equal) variance
- Unequal variance
- Paired
What is the biggest “driver” of the t test?
Sample size (it’s in the denominator)
What steps do you take to compare two means?
- Test each group for normality
2. Perform a t test (choosing equal, unequal, or paired as appropriate)
How should you test for normality?
- Visually: box plot, histogram, q-q plot
- Numerically: Shapiro-Wilks test or skewness/kurtosis test
- Assess how close the mean and median are to one another
Are t tests robust?
Yes!
What tests can be misleading for testing for normality?
Box plots and histograms when your sample size is low.
What should you be especially wary of when examining q-q plots for normality?
Stacked points
What normality test is best for small samples?
Shapiro-Wilks
How is the null hypothesis portrayed in stata?
W0
What does the 95% CI give you an idea of?
The spread of values around the mean
What can you do if you discover that your data is not normal?
- Transform the data
2. Use a nonparametric test
What transformations would you use for negative skew?
- X^2 (mild)
2. X^3 (extreme)
What transformations would you use for a positive skew?
- sq rt X
- ln(X)
- -1/sq rt X
- -1/X