Two Sample Problems - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Two Sample Problems

Description:

Title: Hypothesis Testing Author: s0ren Last modified by: Chr. Robert Jacobsen Created Date: 9/15/2005 8:21:33 AM Document presentation format: On-screen Show (4:3) – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 26
Provided by: s0r9
Category:

less

Transcript and Presenter's Notes

Title: Two Sample Problems


1
Two Sample Problems
  • Lecture 4

2
Examples 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.

3
Todays tests
  • Compare means
  • Independent samples (also called two samples in
    the book).
  • Paired samples.
  • Compare variances for independent samples.
  • Compare proportions.

4
An example
An embarasing Measurement
5
Embarasing Measurement
It seems to be bigger after than before!!!
6
NICE AND NORMAL !!!
7
95 CI for mean before and after
The observations in living color
8
Another look at the data
All the differences are bigger than zero
9
Look at the differences
10
How about testing if the mean difference is
significantly bigger than zero?
11
Result of One Sample T-test on Differences
Mean bigger than 2 SE
Mean actually 6.113 SE, therefore p 0.000
12
Equivalently
The Compare Means menu is sufficient for alot of
different tests
13
(No Transcript)
14
Blah blah we want to see a TEST!
15
Output
95 CI for difference
Mean difference
P-value
Test statistic
16
Conclusion
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!!
17
Two-Sample T-test (unpaired)
Data normal ? Equal variances?
18
Time Categorical variable
Age e.g. Age gt 40
19
Two-Sample Output
P-value for equal means
Equal variances
95 CI
20
K-Sample
Data normal (in each group) ? Equal variances?
21
Equal variances?
If NOT!!!
22
K-Sample Output
P-value
23
A Small Trick (Post Hoc)
24
OK 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
Write a Comment
User Comments (0)
About PowerShow.com