ES031 M3 HypothesisTestingSingleSample
ES031 M3 HypothesisTestingSingleSample
MODULE 3
HYPOTHESIS TESTING
ONE SAMPLE
Prepared by: Engr. Kristan Ian D. Cabaña
OUTLINE
HYPOTHESIS TESTING
STARTING A HYPOTHESIS
“H subzero” or “H naught”
A null hypothesis H0 is a statistical hypothesis that contains a statement
of equality such as £, =, or ³.
“H sub-a”
An alternative hypothesis Ha is the complement of the null hypothesis.
It is a statement that must be true if H0 is false and contains a
statement of inequality such as >, ¹, or <.
To write the null and alternative hypotheses, translate the claim made
about the population parameter from a verbal statement to a
mathematical statement.
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE #1
ILLUSTRATIVE EXAMPLE #2
ILLUSTRATIVE EXAMPLE #3
ILLUSTRATIVE EXAMPLE #3
Ha: µ > 10 hours The average time teen sleeps is longer than
10 hours.
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE #3
The school board claims that at least 60% of students bring a phone
to school. A teacher believes this number is too high and randomly
samples 25 students to test at a level of significance of 0.02.
KEY POINTS
• The null hypothesis H0 represents the status quo or the current belief in a situation.
• The alternative hypothesis H1 is the opposite of the null hypothesis and represents a
research claim or specific inference you would like to prove.
• If you reject the null hypothesis, you have statistical proof that the alternative
hypothesis is correct.
• If you do not reject the null hypothesis, then you have failed to prove the alternative
hypothesis. The failure to prove the alternative hypothesis, however, does not mean
that that you have proven the null hypothesis.
• The null hypothesis H0 always refers to a specified value of the population parameter
(such as µ), not a sample statistic (such as X).
• The statement of the null hypothesis always contains an equal sign regarding the
specified value of the population parameter.
• The statement of the alternative hypothesis never contains an equal sign regarding
the specified value of the population parameter.
HYPOTHESIS TESTING
MODULE 5
KEY POINTS
NULL HYPOTHESIS
The goal of the researcher is to “disprove or
nullify” the Null Hypothesis through testing
a new claim (Alternative Hypothesis) hence
why its named that way.
HYPOTHESIS TESTING
MODULE 5
The region of rejection consists of the values of the test statistic that are
unlikely to occur if the null hypothesis is true. These values are more
likely to occur if the null hypothesis is false. Therefore, if a value of the
test statistic falls into this rejection region, you reject the null hypothesis
because that value is unlikely if the null hypothesis is true.
Critical Value divides the nonrejection region from the rejection region.
The size of the rejection region is directly related to the risks involved in
using only a sample evidence to make decisions about a population
parameter.
HYPOTHESIS TESTING
MODULE 5
TYPES OF ERRORS
TYPES OF ERRORS
Level of Significance (α). It is the maximum allowable probability of committing a Type I error.
Confidence Coefficient (1 – α). It is the complement of the probability of a Type I error. When
multiplied by 100%, the confidence coefficient yields the confidence level that was studied when
constructing confidence intervals.
Power of a Test (1 – β). It is the complement of the probability of a Type II error. It is the probability
that you will reject the null hypothesis when in fact it is false and should be rejected.
H0: The man is not capable of pregnancy. H0: The woman is pregnant.
ILLUSTRATIVE EXAMPLE
Statesville college claims that 94% of their graduates find employment
within six months of graduation. What will a type I or type II error be?
H0: p = 0.94 (Claim)
Ha: p ¹ 0.94
A type I error is rejecting the null when it is true.
The population proportion is actually 0.94, but is
rejected. (We believe it is not 0.94.)
A type II error is failing to reject the null when it is false.
The population proportion is not 0.94, but is not rejected.
(We believe it is 0.94.)
HYPOTHESIS TESTING
MODULE 5
STATISTICAL TESTS
After stating the null and alternative hypotheses and specifying the
level of significance, a random sample is taken from the population
and sample statistics are calculated.
The statistic that is compared with the parameter in the null
hypothesis is called the test statistic.
Population Test Standardized test
parameter statistic statistic
µ x z (n ³ 30)
t (n < 30)
p p̂ z
s2 s2 X2
HYPOTHESIS TESTING
MODULE 5
P-VALUES
H0 : µ ³ k
Ha : µ < k
P is the area to
the left of the
test statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
HYPOTHESIS TESTING
MODULE 5
H0 : µ £ k
Ha : µ > k
P is the area to
the right of the
test statistic.
z
-3 -2 -1 0 1 2 3
Test
statistic
HYPOTHESIS TESTING
MODULE 5
z
-3 -2 -1 0 1 2 3
Test Test
statistic statistic
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
For each claim, state H0 and Ha. Then determine whether the
hypothesis test is a left-tailed, right-tailed, or two-tailed test.
MAKING DECISION
Decision Rule Based on P-value
To use a P-value to make a conclusion in a hypothesis test, compare the
P-value with a.
1. If P £ a, then reject H0.
2. If P > a, then fail to reject H0.
Claim
Decision Claim is H0 Claim is Ha
There is enough evidence to There is enough evidence to
Reject H0 reject the claim. support the claim.
There is not enough evidence There is not enough evidence
Do not reject H0 to reject the claim. to support the claim.
HYPOTHESIS TESTING
MODULE 5
1. State the claim mathematically and verbally. Identify the null and
alternative hypotheses.
2. Specify the level of significance, type of test and sample size.
3. Select the appropriate test statistic and identify the critical value.
4. Determine the rejection region. Create a sketch of the distribution
model.
5. Calculate the standardized test statistic. Add it to your sketch.
6. State the statistical decision.
7. State the managerial conclusion.
TESTS ON THE MEAN OF A
NORMAL DISTRIBUTION
VARIANCE IS KNOWN
HYPOTHESIS TESTING
MODULE 5
𝑋# − 𝜇 𝜎
𝑍=𝜎 𝜎"! =
' 𝑛 𝑛
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
ILLUSTRATIVE EXAMPLE
STEP 1: State the null and alternative hypotheses.
H0: µ ≤ 1000 charges
(The rechargeable batteries have a mean life of at most 1000 charges.)
Ha: µ > 1000 charges
(The rechargeable batteries have a mean life of more than 1000 charges.)
STEP 2: Choose the level of significance, type of test, and sample size.
Level of significance, α = 0.01 ; Right-Tailed Test; n = 100 batteries
STEP 3: Identify the critical value of the test statistic.
Test Statistic, 𝑍! = +2.33
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 4: Determine the rejection region.
𝑋( = 1002 𝑐ℎ𝑎𝑟𝑔𝑒𝑠 (
)*+ -../*-...
𝜎 = 14 𝑍!"#!$#"%&' = ! = #$ = 1.4286
𝑛 = 100 𝑏𝑎𝑡𝑡𝑒𝑟𝑖𝑒𝑠 , " , #%%
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 6: State the Decision Rule.
ILLUSTRATIVE EXAMPLE
𝑋# − 𝜇
𝑡= 𝑠
' 𝑛
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
ILLUSTRATIVE EXAMPLE
STEP 1: State the null and alternative hypotheses.
H0: µ = 8 minutes
(The mean length of a phone call is 8 minutes.)
Ha: µ ¹ 8 minutes
(The mean length of a phone call is not 8 minutes.)
STEP 2: Choose the level of significance, type of test, and sample size.
Level of significance, α = 0.05 ; Two-Tailed Test; n = 18 phone calls
STEP 3: Identify the critical value of the test statistic.
Degree of Freedom, df = 18 – 1 = 17; Test Statistic, 𝑡!⁄" = ± 2.110
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 4: Determine the rejection region.
𝑋( = 7.8 𝑚𝑖𝑛𝑢𝑡𝑒𝑠 (
)*+ 0.2*2
𝑠 = 0.5 𝑚𝑖𝑛𝑢𝑡𝑒𝑠 𝑡!"#!$#"%&' = & = %.( = −1.6971
𝑛 = 18 𝑝ℎ𝑜𝑛𝑒 𝑐𝑎𝑙𝑙𝑠 , " , #)
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 6: State the Decision Rule.
ILLUSTRATIVE EXAMPLE
#
#
(𝑛 − 1)𝑠
𝑋 =
𝜎#
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
ILLUSTRATIVE EXAMPLE
STEP 1: State the null and alternative hypotheses.
H0: 𝝈𝟐 ≤ 0.01
(The variance of fill volume is at most 0.01.)
Ha: 𝝈𝟐 > 0.01
(The variance of fill volume is greater than 0.01.)
STEP 2: Choose the level of significance, type of test, and sample size.
Level of significance, α = 0.05 ; Right-Tailed Test; n= 20 bottles
STEP 3: Identify the critical value of the test statistic.
Degree of Freedom, df = 20 – 1 = 19; Test Statistic, 𝑋 # ! = 30.14
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 4: Determine the rejection region.
Rejection Region
X2
30.14
/
𝑠 # = 0.0153
/
(𝑛 − 1)𝑠 (20 − 1)(0.0153)
𝑛 = 20 𝑏𝑜𝑡𝑡𝑙𝑒𝑠 𝑋 = /
= = 29.07
𝜎 0.01
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 6: State the Decision Rule.
ILLUSTRATIVE EXAMPLE
𝑝̂ − 𝑝 𝑝𝑞
𝑍= 𝜎%$ =
𝜎%$ 𝑛
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
ILLUSTRATIVE EXAMPLE
STEP 1: State the null and alternative hypotheses.
H0: p = 0.94
(The population proportion of the graduates that are employed within six
months of graduation is 94%.)
Ha: p ≠ 0.94
(The population proportion of the graduates that are employed within six
months of graduation is not 94%.)
STEP 2: Choose the level of significance, type of test, and sample size.
Level of significance, α = 0.10 ; Two-Tailed Test
STEP 3: Identify the critical value of the test statistic.
Test Statistic, 𝑍∝⁄" = +1.65
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 4: Determine the rejection region.
3
4*4 ..60*..67
𝑧!"#!$#"%&' = = = 2.8247
5+
* (%.-$)(%.%/),
(%%
HYPOTHESIS TESTING
MODULE 5
ILLUSTRATIVE EXAMPLE
STEP 6: State the Decision Rule.
ILLUSTRATIVE EXAMPLE