Z-and-T-test (SW Statistic)
Z-and-T-test (SW Statistic)
Ho: Ho:
Mean(A) = Mean(B)
Mean(A) = Mean(B)
Ha: Ha:
Mean(A) ≠ Mean(𝐁) Mean(A) > Mean(B)
One-tailed
Ho: There is no significant difference between the
mean score of males and the mean score of females.
Ha: The mean score of males is significantly higher
than the mean score of females.
Z- Test
Used to compare the means of
two independent samples
(Large sample size, 𝑛 ≥ 30)
Statistical Objective
To determine if there is a significant difference
between the proportions of smokers and non
smokers who succeeded in the endurance test.
A researcher has found out that 185 of 250 nonsmokers
tested were able to succeed at an endurance test, whereas
only 116 of 200 smokers tested were successful. Is there a
significant difference between the proportions of smokers
and non-smokers who succeeded in the endurance test?
Use 0.05 level of significance.
STEP 1
Null Hypothesis
Ho: There is no significant difference between the
proportions of smokers and non-smokers who
succeeded in the endurance test.
Alternative Hypothesis
Ha: There is a significant difference between the proportions of
smokers and non-smokers who succeeded in the endurance test.
A researcher has found out that 185 of 250 nonsmokers
tested were able to succeed at an endurance test, whereas
only 116 of 200 smokers tested were successful. Is there a
significant difference between the proportions of smokers
and non-smokers who succeeded in the endurance test?
Use 0.05 level of significance.
STEP 6
Decision Rule: Reject Ho if the computed value
falls in the rejection region
Decision:
Conclusion: There is a significant difference
between the proportions of smokers and non-
smokers who succeeded in the endurance test.
SUMMARY:
A researcher has found out that 185 of 250 nonsmokers tested were able to succeed
at an endurance test, whereas only 116 of 200 smokers tested were successful. Test
if there is a significant difference between the proportions of smokers and non-
smokers who succeeded in the endurance test.
Test at 0.05 level of significance.
Statistical Objective
To determine if the proportion of non smokers who
succeeded at an endurance test is significantly
higher than the proportion of smokers.
A researcher has found out that 185 of 250 nonsmokers
tested were able to succeed at an endurance test, whereas
only 116 of 200 smokers tested were successful. Test if the
proportion of non smokers who succeeded at an endurance
test is significantly higher than the proportion of smokers.
Test at 0.05 level of significance.
STEP 1
Null Hypothesis
Ho: The proportion of non smokers who succeeded at an
endurance test is not significantly higher than the
proportion of smokers.
Alternative Hypothesis
Ha: The proportion of non smokers who succeeded at an
endurance test is significantly higher than the proportion of
smokers.
A researcher has found out that 185 of 250 nonsmokers
tested were able to succeed at an endurance test, whereas
only 116 of 200 smokers tested were successful. Test if the
proportion of non smokers who succeeded at an endurance
test is significantly higher than the proportion of smokers.
Test at 0.05 level of significance.
STEP 6
Decision Rule: Reject Ho if the computed value
falls in the rejection region
Decision:
Conclusion: The proportion of non smokers who
succeeded at an endurance test is significantly
higher than the proportion of smokers.
SUMMARY:
A researcher has found out that 185 of 250 nonsmokers tested were able to succeed
at an endurance test, whereas only 116 of 200 smokers tested were successful. Test
if the proportion of non smokers who succeeded at an endurance test is significantly
higher than the proportion of smokers. Test at 0.05 level of significance.
Statistical Objective
To determine if there is a significant difference
between the mean diastolic blood pressure of the
vegetarians and non vegetarians .
A researcher wants to find out if diet affects the diastolic
blood pressure of the individual.Test if there is a significant
difference between the mean diastolic blood pressure of
the vegetarians and non vegetarians at α = 0.01.
STEP 1
Null Hypothesis
Ho: There is no significant difference between the mean
diastolic blood pressure of the vegetarians and non
vegetarians
Alternative Hypothesis
Ha: There is a significant difference between the mean diastolic
blood pressure of the vegetarians and non vegetarians
A researcher wants to find out if diet affects the diastolic
blood pressure of the individual.Test if there is a significant
difference between the mean diastolic blood pressure of
the vegetarians and non vegetarians at α = 0.01.
STEP 6
Decision Rule: Reject Ho if the computed value
falls in the rejection region
Decision:
Conclusion: There is no significant difference
between the mean diastolic blood pressure of
the vegetarians and non vegetarians.
SUMMARY:
A researcher wants to find out if diet affects the diastolic blood pressure of the
individual.Test if there is a significant difference between the mean diastolic blood
pressure of the vegetarians and non vegetarians at α = 0.01.
Objective:
Alternative Hypothesis
Ha: The mean birth length of male infants is significantly greater
than that of female infants.
A researcher wants to determine if the mean birth length
of male infants is significantly greater than that of female
infants. Test at α = 0.05.
STEP 6
Decision Rule: Reject Ho if the computed value
falls in the rejection region
Decision:
Conclusion: The mean birth length of male
infants is not significantly greater than that of
female infants.
SUMMARY:
A researcher wants to determine if the mean birth length of male infants is
significantly greater than that of female infants. Test at α = 0.05.
Step 1 Ho: The mean birth length of male infants is equal to that of
female infants.
Ha: The mean birth length of male infants is significantly greater
than that of female infants.
Step 2 𝛼 = 5%
Step 3 Test Procedure/Type of Test: t-test; Right-Tailed
Step 4 Critical Value of the Test: t = 1.729
Step 5 Computed value of the Test: z = 0.38
Step 6 Decision: Do not reject Ho.
Conclusion: The mean birth length of male infants is equal to that
of female infants.
Steps in Testing of Hypothesis
(p-value Approach)
1. State the null and alternative hypothesis
2. Set the level of significance
3. Determine the type of test to be used
4. Compute for the value of the test statistic
5. Compute the p-value of the test statistic
6. State your decision and conclusion
Objective:
STEP 1
Null Hypothesis
Ho: The mean number of cigarettes smoked by males is
not significantly more than that of the females.
Alternative Hypothesis
Ha: The mean number of cigarettes smoked by males is
significantly more than that of the females.
A researcher wants to find out if sex affects the smoking
practices.Test if the group of males smoke more number of
cigarettes per day than the group of females. Test at α = 0.05.
SPSS Output
number of sticks
sex Mean N Std. Deviation
male 7.5000 16 2.58
female 3.5000 14 2.59
STEP 6
Decision Rule: Reject Ho if the p-value is less
than or equal to the level of significance.
Decision:
Conclusion: The mean number of cigarettes
smoked by males is significantly more than that of
the females.
SUMMARY:
A researcher wants to find out if sex affects the smoking practices.Test if the group
of males smoke more number of cigarettes per day than the group of females. Test
at α = 0.05.
Step 2 𝛼 = 5%
Step 3 Test Procedure/Type of Test: t-test; Right-Tailed
Step 4 Computed Value of the Test: t = 4.22
Step 5 P-Value of the Test: p-value=0.000
Step 6 Decision: Reject Ho.
Conclusion: The mean number of cigarettes smoked by males is
greater than the mean number of cigarettes smoked by
females.
T -test
Test of significance between
means of two dependent
groups.
Example:
(t-test, dependent samples )
A researcher wants to find out if the
experiment affects the diastolic blood
pressure. Test if the pre experiment systolic
blood pressure is different from the post
experiment systolic blood pressure. Test at
α = 0.05.
Table showing the pre experiment and post
experiment systolic blood pressure
Res. # Pre Post Res. # Pre Post Res. # Pre Post
1 134 134 6 120 126 11 134 138
2 103 106 7 128 130 12 108 111
3 116 110 8 122 118 13 111 115
4 113 115 9 123 125 14 125 125
5 124 122 10 108 110 15 134 130
Respondent Number Pre Experiment SBP Post Experiment SBP
1 134 134
2 103 106
3 116 110
4 113 115
5 124 122
6 120 126
7 128 130
8 122 118
9 123 125
10 108 110
11 134 138
12 108 111
13 111 115
14 125 125
15 134 130
Table showing the mean of pre experimental and
post experimental systolic blood pressure
Mean Standard Sample size
deviation
Pre experimental
systolic blood 120.2 10.1 15
pressure
Post experimental
systolic blood 121.0 9.7 15
pressure
SPSS output
T Test for dependent samples
Group n Mean SD t p
Male 16 8.9 1.2
Female 18 8.5 1.15 -0.123 0.183