Testing Hypothesis
Testing Hypothesis
Acceptance
region Rejection
Rejection
Rejection Acceptance region region
region region
1/n1 + 1/n2
Z-test
•
Uses of z –test
- the sample is larger ( n ≥ 30 )
-Population standard deviation is
known
-When we want to test the significant
difference of sample data
-Advisable for one or two sample
cases or treatment
-z – test requires normality of
distribution
Z-test
•
T- test
•The sample size is small ( n ≤ 30 )
•Sample standard deviation is known
•Data follows a normal distribution
•When we want to test the significant
differences.
•Advisable for one or two sample cases or
treatments
ANOVA
Analysis of Variance
• Is a technique in inferential statistics designed to test whether or not
more than two samples ( or groups ) are significantly different from
each other.
• T-test is used to test non significance of difference between samples
, taking them one pair at a time for ANOVA simultaneous testing all
samples at a single time.
• T- test formula are applied as many time as there are pairs among
samples , ANOVA applies only once
Test on large Sample Mean
•A manufacturer claims that the average lifetime
of his lightbulbs is 3 years or 36 months. The
standard deviation is 8 months. Fifty bulbs are
selected, and the average lifetime is found to be
32 months. Should the manufacturer’s
statement be rejected at α = 0.01 ?
Solution
Step 1. State the hypothesis
Ho : µ = 36 months
Ha : µ ≠ 36 months
Step 2. Level of significance α = 0.01
Step 3. Determine the test to be used:
z - test
Step 3. Find the critical value
two tailed , critical value = ± 2.575
Step 4. Compute the test statistics
Step 4 con’t.
•
5. Make a decision
• the test statistic = -3.54 is less than the critical
value = - 2.575 and it falls in the rejection region
in the left tail. Therefore reject Ho and conclude
that the average lifetime of the lightbulbs is not
equal to 36 months.
Example2. of z - test
A researcher reports that the average salary of
sales managers in the province is more than
Php 39,500 per month. A sample of 30 sales
managers has a mean salary of Php 42 ,100. At =
5% , test the claim that sales mangers earn more
than PHP 39,500 per month. The standard
deviation is Php 5,200.00
Solution
Step 1. State the hypothesis
Ho : µ ≤ P 39,500
Ha : µ > P 39,500
Step 2. level of significance α = 5 % or 0.05
Step 3. Critical Value = 1.645
one – tailed ( directional )
Con’t. Example 2
•
Cont. Example 2
Step 5. Make a decision
Since the computed test value = 2.74 , is more
than the critical value = 1.645 , the decision is “
Reject the Null hypothesis “ , that the salary of
the sales managers in the province is more than
P 39,500.00.
Exercises : Problem 1
•A supplier sells rope. He claims that
the rope have a mean strength of 34
lbs. and a variance of 64 lbs. A
random sample of 32 ropes selected
from a shipment yields a mean
strength of 31 lbs. Are you going to
reject he claim of the supplier at .05
level?
Exercises: Problem 1
• A researcher wishes to find out whether or not there
is significant difference between the monthly
allowances of morning and afternoon students in his
school. By random sampling, he took a sample of 239
students in the morning session. These students
were found out to have a mean monthly allowance
of Php 142.00. The searcher also took a sample of
209 students in he afternoon session. They were
found to have a mean monthly allowance of Php
148.00 . The total population of students in that
school has standard deviation of Php 40.00. Is there
significant between the two samples.
Solution
• Ho : There is no significant between the samples.
( X 1 = X2 )
• Ha: There is significant between the samples)
( X 1 ≠ X2 )
level of Significance : .01
• Z – test- since the population standard
deviation is given
• Critical value : two – tailed z ± 2.58
Z = X1 – X2______
σ 1/ n + 1/n
• Z = 142 – 148
40 √ 1/239 + 1/209
• = - 6_________
40 √ .0042 + .0048
= -6 / 40 ( .095 )
= - 1.579
The computed value / - 1.596 / is less than the tabular value 2.58.
Accept the null hypothesis.
There is no significant difference between two samples.