Professional Documents
Culture Documents
TESTING
Hypothesis Testing- it is a statement with many faceted ideas that
are still to be resolved whether they are true or not
-It is a wise or intellectual guess.
2 Types of Hypothesis
1. Null Hypothesis (Ho) – it always express the idea of non
significant difference.
2. Alternative Hypothesis (Ha) – it is a negation of the null
hypothesis.
Examples of Null Hypothesis:
1. There is no significant difference in the assessment of the
respondents when grouped according to gender.
2. The IQ of the female is not higher than the male.
3. The number of late students is the same each day of the week.
4. The number of patients each day of the week is the same.
5. The academic of the B.S. Tourism is equal to the academic
performance of the A.B. Mass Comm students.
Examples of Alternative Hypothesis:
Types of Errors
Two-sided (non-directional)
If an alternative hypothesis is expressed in a non-equality
statement, it is a non-directional or two-tailed test.
rejection rejection
acceptance
region
5. Compute for the required statistical test. Choose from the following formula
whichever is applicable. (Either z or t-test)
Zc = (x - ) n
-----------------
tc = ( x - ) n /s
*** Accept Null Hypothesis if the computed value is less than the
tabular value.
*** Reject Null Hypothesis if the computed value is greater than
the tabular value.
Population Means
Example
A sports biologist claimed that female
distance runners tend to be taller on the average
than women in general, who have an average
height of 64 inches. To test this claim, a random
sample of 40 female distance runners and their
heights were recorded, giving x = 65.6 inches and
standard deviation of 3.3 inches. Test the claim at
the 5% level of significance. (consider the value
3.3 as an estimate for δ)
Solution:
Given:
µ = 64 n = 40 X = 65.6
δ = 3.3 = 0.05
Step 1:
Ho: µ = 64 (female distance runners have an average height
of 64 inches)
Step 2:
α = 0.05
Solution:
Step 3:
one – tailed test
Step 4:
Z - test (x – µ)√n
Z =
δ
(65.6 – 64)√40
=
3.3
(1.6) (6.32)
=
3.3
10.112
=
3.3
Z = 3.06
Tabular Value of z
Solution:
Tabular value = 1.645
rejection
acceptance region
region
1.645 3.06
Step 6: Conclusion
It does appear that female distance runners tend to be
taller on the average than women in general
Example
A group of researchers want to compare
food values of the male and female employees.
They constructed a questionnaire composed of 15
items. They administered the questionnaire to 75
male employees and obtained a mean of 3.98
while the 40 female employees had a mean of
4.12. If the population standard deviation is 0.27,
what conclusion can the researchers draw about
the food value of the employees? (use α = 0.01
level of significance)
Solution:
Given:
n1 = 75 x1 = 3.98 n2 = 40
x2 = 4.12 δ = 0.27 = 0.01
Step 1:
Ho: there is no significant difference between the food
values of the male and the female
employees.
Ho: x1 = x2
Ha: there is a significant difference between the food
values of the male and the female
employees
Ha: x1 ≠ x2
Solution:
Step 2:
= 0.01
Step 3:
two – tailed test
Step 4:
Z - test 3.98 – 4.12
Z =
√
1 1
0.27 +
x1 – x2 75 40
Z =
√
δ 1+ 1 -0.14
=
n 1 n2 0.0529
Z = -2.65
Solution:
Step 5: Decision
Tabular value = + 2.58
rejection rejection
acceptance
region
-2.65 -2.58 +2.58
Step 6: Conclusion
The researchers can therefore conclude that at 0.01 level
of significance, there is a significant difference between
the food values of the male and the female employees.
Example
Step 3: two-tailed
Step 4: Z - test
Z= P1 – P2 = 0.16
P1q1 + P2q2 .0049
n1 n2
= 0.16
= .56 - . 40
0.07
(.56)(.44) (.40)(.60)
100 + 100
Z = 2.29
= 0.16
.0025 + .0024
Step 5: Decision
tabular value = + 1.96
rejection rejection
acceptance
-1.96 1.96 2.29
Given: = 20
n = 45
x = 25
=3
Solution:
Step 1. Ho : The population mean did not exceed 20. ( 20)
H1: The population mean exceeds 20. ( 20)
Step 2. = 0.05
Step 3. one-tailed test
Step 4. z(.05) = 1.645
Step 5: z = ( x - ) /n /
= ( 25-20) 45 / 3
= 11.18
Step 6: Decision:
/zc / > /z / ; 11.18 > 1.645
Since the absolute value of the computed which is 11.18
is greater than the absolute value of the tabular which I 1.645,
reject null hypothesis and accept alternative hypothesis.
Sample Means
Example:
In order to pass the emission test an
automobile may not show a hydrocarbon level of
more than 220 parts per million (ppm). Officials of
a large car manufacturing company felt that their
cars would average less than 220 ppm. To
investigate this, 17 cars were tested, giving a mean
of 180 ppm with standard deviation of 30 ppm. At
the 10% level of significance, do the officials
appear to be correct?
Solution:
Given: μ = 220
n = 17
x = 180
sd = 30
α = .10
Step 1:
Ho: μ = 220 (the mean amount of hydrocarbons of their cars
is equal to 220 ppm)
Ha: μ < 220 (the mean amount of hydrocarbons of their cars
would be less than 220 ppm)
Step 2: α = .10
Step 3: one-tailed
Step 4: t-test
t = (x – μ) √ n
sd
= (180 – 220) √ 17
30
t = -5.50 = 5.50
Step 5: Decision
degrees of freedom (d.f) = n – 1
= 17 – 1 = 16
tabular value = 1.337
rejection
acceptance
1.337 5.50
Reject Ho, Accept Ha
Step 6: Conclusion
Rejecting Ho implies that the officials belief (μ < 220)
appears to be correct.
Example:
The HR Department Head of a big company stated that
there was a difference in the performance rating of male and
female employees. Independent random samples of males and
females employees gave the following information:
n x sd
males 45 85.4 2.64
female 50 87.9 1.70
Use 95% confidence level to support the HR Dept. head
belief.
Solution:
Step 1:
Ho : xm = xf (There is no significant difference between the
performance rating of male and female
employees.)
Ha : xm ≠ xf (There is a significant difference between the
performance rating of male and female
employees.))
Step 2: α = .05
t= x1 - x2 = - 2.5
√ .155 + .0578
Sd12 sd22
n2 + n2
= -2.5
= 85.4 - 87.9 √ .213
(2.64)2 (1.70)2
+ 50
45 t = -5.42
Step 5: Decision
df = n1 + n2 - 2
= 45 + 50 - 2
= 95 - 2
df = 93
tabular value = 1.986
rejection rejection
acceptance
-1.98 +1.98
Reject Ho, accept Ha
Step 6: Conclusion
There is a sufficient evidence to support the HR
Department Head belief that there is a significant difference in the
performance ratings of male and female employees at 95 %
confidence level.
5. A businessman prospects two possible locations for a new restaurant. A
study was conducted and focused on the pedestrian traffic at both areas.
At each location, of the pedestrian are observed in 1-hour units and, for
each hour, an index of desirable characteristic is compiled. The sample
units are given below.
Mendiola Recto
n = 25 n = 30
x = 245 x = 438
s = 103 s = 79
Test the claim that the characteristic mean indices in Mendiola are less
than the mean indices in Recto, Use 0.05 level of significance level.
Step 1: Ho : =
H1 :
Step 2: = 0.05
Given: = 25.4
n = 30
x = 19.7
s.d. = 0.95
Solution:
Step 1. Ho : The sample mean is not less than 25.4 mg.
(X < 25.4)
H1: The sample mean less than 25.4 mg.
(X < 25.4)
Step 2. = 0.05
Step 3. one-tailed test
Step 4. t-test: df = n-1 = 30-1 = 29
t(.05) = 1.699
Step 5: t = ( x - ) n / s
= ( 19.7-25.4) 30 / 0.95
= -32.86
Step 6: Decision: /tc / > /t / ; 32.86 > 1.699
Since the absolute value of the computed which is 32.31 is
greater than the absolute value of the tabular which is 1.699,
reject the null hypothesis and accept the alternative hypothesis.