Title: Two Sample Problems
1Two Sample Problems
2Examples of various hypotheses
- Average salary in Copenhagen is larger than in
Bælum - H0 µC µB. HA µC lt µB.
- Sodium content in Furresøen is equal to the
content in Madamsø - H0 µF µM. HA µF ? µM.
- Proportion of Turks in Århus is the same as in
Aalborg - H0 pÅ pA. HA pÅ ? pA.
- Average height of men in Sweden is the same as
in Denmark - H0 µS µD. HA µS ? µD.
- The average temperature is increasing over time
- H0 µtime 1 µtime 2. HA µtime 1 lt µtime 2 if
time 1 time 2.
3Todays tests
- Compare means
- Independent samples (also called two samples in
the book). - Paired samples.
- Compare variances for independent samples.
- Compare proportions.
4An example
An embarasing Measurement
5Embarasing Measurement
It seems to be bigger after than before!!!
6NICE AND NORMAL !!!
795 CI for mean before and after
The observations in living color
8Another look at the data
All the differences are bigger than zero
9Look at the differences
10How about testing if the mean difference is
significantly bigger than zero?
11Result of One Sample T-test on Differences
Mean bigger than 2 SE
Mean actually 6.113 SE, therefore p 0.000
12Equivalently
The Compare Means menu is sufficient for alot of
different tests
13(No Transcript)
14Blah blah we want to see a TEST!
15Output
95 CI for difference
Mean difference
P-value
Test statistic
16Conclusion
If you want to test the difference between BEFORE
and AFTER (or similar designs)
Test if the DIFFERENCE is zero!
And do this with a PAIRED T-TEST!!
17Two-Sample T-test (unpaired)
Data normal ? Equal variances?
18Time Categorical variable
Age e.g. Age gt 40
19Two-Sample Output
P-value for equal means
Equal variances
95 CI
20K-Sample
Data normal (in each group) ? Equal variances?
21Equal variances?
If NOT!!!
22K-Sample Output
P-value
23A Small Trick (Post Hoc)
24OK OK, Ill use another data set
25 RECIPE
Equal means or mean some value
Formulate the hypothesis
Normal, binomial ect.
Formulate the model
Paired, unpaired, more groups
Recognize the design
Normal ? Equal variances?
Check the assumptions
Run the SPSS procedure
Get your p-value