STA258 Lecture 15
- Example:
- Two sample t test for difference
- Example:
- Two groups
- Managerial success index
- Higher is better
- Group 1:
- Interaction with outsiders
- Group 2:
- Fewer interactions
- See whether assumptions of problems are satisfied. See if both are normal then.
- Use Boxplots and Q-Q plots to check for normality.
- They should also be independent.
- Spread of Group 1 is almost same as Group 2, so we can assume equal variances.
- We can assume variances are the same if two samples come from the same population.
- We can also say:
- Compute pooled variance:
- DF:
- #tk why the discrepancy?
- p-value:
so we reject and conclude that there is a significant difference between the two groups.
- We have strong evidence to suggest that there is a difference in managerial success index between the two groups.
- What if we have difference variances?
- We can't use the pooled variance anymore.
- This is still a t dist, however df:
- Or
- Example:
- Conservationsists want to see destructino of a rain forest over time
mean unlogged forests mean of logged forests - df:
- p-value:
- Reject
and conclude that there is a significant difference between the two groups. We have evidence to suggest that unlogged forests have a higher mean than logged forests. - #tk flashcard on what
really means, when to reject what, as well as type 1 and 2 errors, and
- #tk flashcard on what
- There is strong evidence that the mean number of species in unlogged plots is greater than the mean number of species in logged plots.
- Example:
- A company sells educational materials.
- They post studies that their directed reading activities improve reading comprehension.
- 3rd grade class of
students take part. - Control class of
students. - Degree of Reading Power test
: treatment group : control group - You can only prove something by rejecting the null hypothesis. You can never prove something by accepting the null hypothesis.
- Q-Q plot for treatment group is normal. Q-Q plot for control group is normal. So we can assume normality.
- #tk why the discrepancy?
- df =
so we can reject and conclude that there is a significant difference between the two groups. We have evidence to suggest that the treatment group has a higher mean than the control group.
- Paired Data
- Condition:
- Data must be paired and Quantitative Data
- Example:
- Students have improved scores from test 1 to 2.
- Student Alpha is not independent from himself. So we pair his test 1 and 2.
- Student Alpha might be independent from Student Beta though.
- To compute the responses to the two treatments in a matched pair design. We need to find the difference between the responses to the two treatments for each respondent. Then we can perform a one sample t test on the differences.
- Condition:
- Example:
- Tires.
- Type a and b
- One of each are randomly mounted on rear wheels of each car.
- Amount of wear was noted:
- p-value:
- We can reject
and conclude that there is a significant difference between the two types of tires. We have evidence to suggest that type A has more wear than type B.