Mod 5 Hypo1fin
Mod 5 Hypo1fin
Hypothesis Testing
Xavier-
Ateneo
Mathematics
Department
Lesson Objectives
LO1 LO3
Formulate null and alternative hypotheses for use the test statistic, and critical value
applications involving a single population approaches to test the null hypothesis.
mean;
LO2 LO4
Correctly formulate a decision rule for Perform one-sample t-test using MS Excel
testing a null hypothesis.
01
Introduction
Hypothesis Testing
Introduction
Null hypothesis
𝜇 ≤ 𝜇0 𝜇 > 𝜇0
𝜇 ≥ 𝜇0 𝜇 < 𝜇0
Example 1 Null Hypothesis
Our null hypothesis states that the
population has a mean equal to 14
milligrams. (H0: μ = 14 mg )
A. Ho: 𝜇 = 24 , 𝐻1: 𝜇 ≥ 24
B. Ho: 𝜇 ≤ 24 , 𝐻1: 𝜇 > 24
C. Ho: 𝜇 < 24 , 𝐻1: 𝜇 ≥ 24
D. Ho: 𝜇 ≥ 24 , 𝐻1: 𝜇 < 24
Exercise
An electric company claims that an electric iron consumes 5
2 kilowatt per hour but a group of housewives believe that it is not
true. Which the correct alternative hypothesis?
The degrees of freedom relate to the number of observations that are free to vary.
Test of
Hypothesis
for Single
Population
Mean
Critical value(s) and critical regions(s) when using z-test
Note!!! Failing to reject the null hypothesis does not necessarily mean that it is true, only
that we do not have enough to reject it.
Solution
Example 1 Let 𝜇= mean lifetime of light bulbs in hours
Rejection region(s)
Since it is a two-tailed test based on
H1 : 750
hours, the rejection regions are in both tails
of the Z distribution, given by
Thus, H0 is rejected if
Z −Z or Z Z
2 2 Z −1.96 or Z 1.96
Z − Z 0.025 or Z Z 0.025
Rejection region(s)
Since it is a one-tailed test based on
𝐻1 : 𝜇 > 11 sec
, the rejection region is in the right tail of the
t distribution, given by
t t Thus, H0 is rejected if
Steps:
1. Encode the AGE data in a column. Add a DUMMY data with at
least two zeroes.
2. Click Data – Data Analysis – t-test: Two Samples Assuming
Unequal Variances
H 0 : = 20 yrs.old H 0 : − 0 = 20 yrs.old
One Sample t test in Excel
Note: t test for one sample is not available in Excel 2007 but we can trick a “fool
Excel” to do it :))
Steps:
3.Enter the following:
Variable 1 Range: Highlight Age Data
Variable 2 Range: Highlight Dummy
Hypothesized Mean Difference: 20
Check Labels.
Alpha: 0.05
Output Range: select any cell where
you want to display the output
4. Click OK.
One Sample t test in Excel
Edited Table
t-Test: Two-Sample Assuming Unequal Variances t-Test: One-Sample
AGE
Decision/Conclusion: Reject Ho. There is enough evidence to
Mean 23.5 infer that the mean age of call center agents in CdeO is
Variance 33.2058824 significantly greater than 20 years old.
Observations 18
Hypothesized Mean 20
df 17
t Stat 2.57689537 greater than t Critical One-tail 1.7396
P(T<=t) one-tail 0.00979665 p-value is less than 0.05
t Critical one-tail 1.73960673
P(T<=t) two-tail 0.0195933
t Critical two-tail 2.10981558
Seatwork F1
Thanks!
Do you have any questions?
[email protected]
09164853817