Hypothesis Testing
Hypothesis Testing
TESTING
Definition:
Null hypothesis
Alternative hypothesis
Reject Type
Type II Error
Error Correct
Correct Decision
Decision
P
P==α α
P(type I error)= α
P(type II error)= β
Critical region - a set of all values of a test-
statistics which would cause the rejection
of a null hypothesis.
1-α 1-α
z=0 𝑧 𝛼 - z=0
1-α
Critical region Critical region
- z=0
95%
Acceptance region
Rejection region For µ= Rejection region
2.5% 2.5 %
Z = -1.96 µ Z = 1.96
(critical Value c) (critical Value c)
A sample one-tailed when α=5%
95%
Acceptance
region
For µ= Rejection region
5%
µ Z= 1.645
(Critical value c)
Non-critical or Non-rejection Region
Conclusion
A statement which indicates the level of evidence (sufficient
or insufficient) at a specified level of significance, and whether
the original claim (the null hypothesis) is rejected or not.
EXERCISE!!!
1. Find the critical value for α=0.01
(right-tailed test)
2. Find the critical value for α=0.01
(left-tailed test)
3. Find the critical value for α=0.01
(two-tailed test)
z test
A statistical test for the mean of a population. It
can be used when n > 30, or when the population
is normally distributed and σ is known.
Steps in Hypothesis Testing
Step 4: establish critical regions z > z >1.645
Step 5: compute the test statistic
n₁=n₂
Two population Means n₁≠n₂
Problem 1:
Take-Home Pay. Who earns more: Married or Unmarried people?
Married Unmarried
Ֆ639.60 Ֆ658.20
s Ֆ60 Ֆ90
n 40 40
Test at α=0.05
:
: Z= -1.1 , Do not reject
Problem 2:
Typing Speed on a pc. Who types faster, Men or Women?
Men Women
65 wpm 68 wpm
s 10 wpm 14 wpm
n 50 60
Test at α=0.01
:
: Z= -1.3 , do not
reject
HYPOTHESIS TESTING OF THE DIFFERENCE IN PROPORTIONS
In a recent elementary statistics survey, the sample
proportion (of women) saying they felt overweight was
37/129=0.287. Note that this leans toward the alternative
hypothesis that the true proportion is less than 40. A study
findsnthatb40% of 12th grade females feel they are
overweight. Is this percent lower for college age females?
z= -2.62
HYPOTHESIS TESTING FOR TWO SAMPLE
PROPORTIONS
Suppose the AC drug Company develops a new drug,
designed to prevent colds. The company states that the
drug is equally effective for men and women. To test this
claim, they choose a simple random sample of 100
women and 200 men from a population of 100,000
volunteers.
At the end of the study, 38% of the women caught a
cold; and 51% of the men caught a cold. Based on these
findings, can we reject the company’s claim that the drug
is equally effective for men and women? Use a 0.05
level of significance.
Happy Ending !!!
God Bless!!!
Decision
Reject Do not reject
µ= µ=
µ= Type I Error Correct
Correct P=α P = 1-α
Hypothesis : µ= Type I Error Type
Correct Correct
II Error
Correct
PP==1α-β PP==1-α
𝛽
Hypothesis
Correct Type II Error
P = 1 -β P=𝛽
• P-Value – a numerical
µ= .
: The average score of the incoming freshmen
µ≠
Solution: 𝜇0 =1 4,000 , s= 4 00 , 𝑛= 10 , 𝛼 =0.05 , ´𝑥 =13,450
Step 1: state the null hypothesis and alternative
hypothesis