Lecture 9- Two Sample Flashcards
Paired vs. 2 Sample Comparisons
Paired– natural correspondence between individual
Comparing means–
what is it? how is it done?
- tests with one categorical and one numerical variable
- GOAL: to compare the mean of a numerical variable for different groups
Paired comparisons allow us to
account for a lot of extraneous variation
2-sample methods are ______ to collect data for
easier
Examples of Paired Designs
- Before and after treatment
- Upstream and downstream of a power plant
- Identical Twins: one with a treatment and one without
- Earwigs in each ear: how to get them out? Compare tweezers to hot oil
Paired Designs
- Data from two groups paired
- Each member of pair shares much in comon with the other, except for tested categorical variable
- There is a one-to-one correspondence between the individuals in the two groups
Paired Comparisons
- We have many pairs
- In each pair, there is one member that has one treatment and another who has another treatment
- (“Treatment” can mean “group”
How do we compare two groups in paired comparisons?
To compare two groups, we use the mean of the difference between the two members of each pair
Paired t test
- Compares the mean of the differences to a value given in the null hypothesis
- For each pair, calculate the difference
- The paired t-test is simply a one-sample t-test on the differences
Example of paired t-test?
Emergency Room Admissions (4/20)
- Counted emergency room admissions in Vancouver on April 20
- Compared to average admissions one week before and after
- Each data point is one year
Hypotheses:
H0 (null): ER admissions are the same on average on 4/20 as on control days
HA: (alternative): ER admissions are different on average on 4/20 compared to control days
Assumptions of paired t test
- Pairs are chosen at random
- The differences have a normal distribution
- It does not assume that the individuals values are normally distributed, only the differences
Comparing the means of two groups
Hypothesis test: 2-sample t-test`
Pooling variance
when you weigh the variances of both samples
Two Sample T test
exact opposite of two sample one test
t= (Ybar_1 - Ybar_2)/SE_[Ybar_1-Ybar_2]
Assumptions of 2-sample t-test
- Both samples are random samples
- Both populations have normal distributions
- The variance of both populations is equal
Ybar ~ normal if sigma is known
(Ybar-M)/s rad sigma ~t is estimated