Académique Documents
Professionnel Documents
Culture Documents
Sample
Sample
Population Sample
Sample
4
Elements of Testing hypothesis
• Null Hypothesis
• Alternative hypothesis
• Identify level of significance
• Degrees of Freedom
• Test statistic
• Identify p-value / confidence interval
• Conclusion
5
Hypothesis Testing
7
Four possible outcomes of any epidemiologic study:
REALITY
YOUR H0 True H1 True
DECISION (No assoc.) (Yes assoc.)
Do not reject H0 Correct Failing to find a
(not stat. sig.) decision difference when
one exists
Reject H0 Finding a Correct decision
(stat. sig.) difference when
there is none
8
t test independent
To find out whether a new serum would arrest leukaemia. 16 patients who
had all reached an advanced stage of the disease were selected. Eight patients received
the treatment and eight did not. The survival was taken from the time the experiment
was conducted.
x x2 y y2
2.1 4.41 4.2 17.64
3.2 10.24 5.1 26.01
3.0 9.00 5.0 25.00
2.8 7.84 4.6 21.16
2.1 4.41 3.9 15.21
1.2 1.44 4.3 18.49
1.8 3.24 5.2 27.04
1.9 3.61 3.9 15.21
t = 7.43
Look up a
Look up df
The t Test for Correlated Samples
• If you used correlated groups such as matched pairs,
repeated measures, or natural pairs for your design, then
you will need to use the t test for correlated samples.
• Calculating t by hand –
– The formula for the correlated t test is as follows:
D
t= t = 1
t = 1.732
√
∑D2 (∑D)2
√
n 5 (3)2
n(n-1) 3
3(3-1)
Look up a
Look up df
A study was conducted to compare the
effectiveness of two teaching methods in statistics.
The first method is method A and the second is via
method B. A group of 15 students were randomly
chosen to undergo method A and a group of 12
students were taken to undergo method B. Below is
the results of the post test.
47
The Logic and the Process of Analysis
of Variance
48
What if the salesman wanted to compare another
type of car, Pickup Trucks in addition to the
SUV’s and Mid-size vehicles?
Not Significant
Significant
56
A sari-sari store is selling 4 brands of shampoo. The
owner is interested if there is a significant difference in the
average sales for one week. The following data are recorded.
Is there a significant difference between the sales of four
shampoos. Use alpha level of 0.05
57
CF=(∑x1 + ∑x2 + ∑x3 + ∑x4 )2 / n1 + n2 + n3 + n4
CF= (37 + 57 + 26 + 36)2 / 7 + 7 + 7 + 7
CF= 869. 14
TSS = ∑x12 + ∑x22 + ∑x32 + ∑x42 - CF
TSS= 225 + 475 + 110 + 204 - 869. 14
TSS = 144.86
BSS = (∑x1 )2 + ( ∑x2 )2 + ( ∑x3 )2 + ( ∑x4 )2 - CF
n1 n2 n3 n4
BSS = 72.28
58
Analysis of Variance Table
Computed Tabular
Between
Groups (k-1) 3 72.28 24.09
59