Hypothesis Testing: SUBJECT: Statistics and Probability Subject Teacher: Marilou A. Basilio
Hypothesis Testing: SUBJECT: Statistics and Probability Subject Teacher: Marilou A. Basilio
Hypothesis Testing: SUBJECT: Statistics and Probability Subject Teacher: Marilou A. Basilio
Related Terms
– conjecture, supposition,
– speculation, postulation,
– proposition, premise,
– assumption, presumption
– (Ilocano: patta-patta, Tagalog: haka-haka)
What is a statistical hypothesis?
• is an assumption about a population parameter.
This assumption may or may not be true. Use a
test statistic to test whether it is true or not.
Hypothesis:
µ = 8 years
Example:
X= average number of hours
of effectiveness (skin is dry)
- A SH student claims that they spend more than 50 pesos for academic-
related expenses per day?
(to justify an increase in ‘baon’ )
Claim: more than 50 pesos spent for academic-related expenses/day.
- A SH student who claims that he/she only uses his/her phone to play ML
for 3 hours or less on the average per day?
(maybe to counter the statement of his/her Mom that he/she
has low grades because he/she is always playing the entire day)
Claim: 3 hours playing time for ML/day
- In your Entrep classes: You want to test the acceptability of a new YEMA
with crushed PINEAPPLE…
Claim: More than 50 % (proportion) of the population will like it.
Think of your own example… …. What questions
would you like to answer using hypothesis
testing?
5 Steps in Hypothesis Testing
1. State the Null Hypothesis, H0 (stated in terms of equality)
µ = 10
There is NO SIGNIFICANT DIFFERENCE
Three Ways: H1
1. No direction: use ≠ µ ≠ 250 ml
2. Less than, < µ < 250 ml
3. More than, > µ > 250 ml
Identifying the Direction of the Test
And the Rejection Region
Critical/Rejection
H1: µ ≠ 250 ml Region
-non directional – 2 tailed
−𝑡α ,v 𝑡α ,v
2 2
𝑡α,v
Critical/Rejection
H1: µ < 250 ml Region
One tailed – left tailed
−𝑡α,v
Step 3: State the significance Level, α
and Critical Region (or Value)
• α - the probability of rejecting the null hypothesis
given that it is true (a type I error)
• risk of concluding that a difference exists when
there is no actual difference
Example:
Conclusion: Mas mabilis umepekto yung Alaxan FR
kesa yung dating Alaxan. (Alaxan FR is faster in
relieving pain compared to the old Alaxan.
- There is a 5% risk that you are wrong with your
conclusion. (Is this risk acceptable?)
Step 4: Compute the value of the test
statistic (z, t or p)
ഥ −µ
𝑿
• Z= ; σ is known
σ
ഥ −µ
𝑿
• Z= σ ; σ is known and sample is used
𝒏
ഥ −µ
𝑿
• t= 𝒔 ; σ is unknown and sample is used
𝒏
ෝ−𝒑𝟎
𝒑
• z= ; sample is used
ෝ𝒒
𝒑 ෝ
𝒏
Type I and Type II Errors
• α = Type I error
– Example: The product is acceptable but is
rejected
– (Supplier’s Risk)
Business Sector
Null Hypothesis: The product is not defective!
Type I Type II
• Ho is true: Product is • Ho is false: Product is
not defective defective
• Decision: Reject Ho • Decision: Accept Ho
• You rejected the • You accepted the
product when it is product when it is
acceptable defective (consumer’s
(supplier’s risk) risk)
Check your understanding of
Type I and Type II error
Disasters (DRRRM)
Null Hypothesis: Storm will NOT make its landfall in the
Isabela!
• Ho is false: Storm made • Ho is true: Storm did not make
its landfall in Isabela its landfall in Isabela
• Accept Ho: The person
believed in the claim (he • Reject Ho: The person in
believed the storm will Isabela did not believe in the
not make its landfall in claim (he believed the storm
Isabela) and did not will make its landfall in Isabela)
prepare for the worst
case (complacent) and prepared for the worst
case.
Result: (bad decision - Result: (good decision-better safe
disaster) than sorry)
Ex. In 2010 a storm predicted to make landfall between Isabela and Aurora actually made
its landfall in Metro Manila
Legal (ETHICS)
Null Hypothesis, H0: The man is not guilty!
• Ho is true: Man is not guilty • Ho is false: Man is guilty
(innocent).
• Accept Ho: You said the
• Reject Ho: You said the man is man is not guilty
guilty (innocent)
Result:
Result:
• Convicted an innocent person • Let go a guilty person
Consequences of a Wrong Conclusion
Ho: Drug does not have a side effect
Decision: Accept Ho (and sold the product)
Truth: Drug has significant side effects (cancer
causing)
Type II error
Correction of Error: RECALL THE DRUG (remove
in the market a specific batch of the drug)
Example: Losartan (blood pressure)
Consequences of a Wrong Conclusion
BATCH OF REINFORCED STEEL BARS (Rebars)
Type II Error
Consequence: Irreversible loss
(safety concern)
Review
• How do you state a null hypothesis?
• If the alternative hypothesis has no specified
direction, is it a 2-tailed or a 1-tailed test?
• If the given significance level is 0.05 and it is a
2-tailed test, should we use tα, v or tα/2, v ?
• If Ho is true but rejected, what type of error is
committed?
Assignment:
Write it on ½ yellow pad paper to be submitted