Hypothesis Testting - One Sample Test
Hypothesis Testting - One Sample Test
Hypothesis Testing:
One Sample Tests
The Hypothesis
§ A hypothesis is a claim (assumption) about a
population parameter:
§ population mean
§ population proportion
Actual Situation
Population
Sample
The Hypothesis Testing
Process
§ Suppose the sample mean age was X = 20.
§ This is significantly lower than the claimed mean
population age of 50.
§ If the null hypothesis were true, the probability of
getting such a different sample mean would be very
small, so you reject the null hypothesis .
§ In other words, getting a sample mean of 20 is so
unlikely if the population mean was 50, you
conclude that the population mean must not be 50.
The Hypothesis Testing
Process
Sampling
Distribution of X
X
20 μ = 50
If H0 is true ... then you reject
If it is unlikely that you
the null hypothesis
would get a sample
that μ = 50.
mean of this value ... ... if in fact this were
the population mean…
The Test Statistic and
Critical Values
§ If the sample mean is close to the assumed
population mean, the null hypothesis is not
rejected.
§ If the sample mean is far from the assumed
population mean, the null hypothesis is
rejected.
§ How far is “far enough” to reject H0?
§ The critical value of a test statistic creates a
“line in the sand” for decision making.
The Test Statistic and
Critical Values
Distribution of the test statistic
Region of Region of
Rejection Rejection
Critical Values
Commonly used alpha levels
H0: μ ≥ 50
Lower-tail test
H1: μ < 50
0
Solving Hypothesis – Testing
Problems (Traditional Method)
§ Step1 state the hypotheses and identify the
claim
§ Step 2 Find the critical value(s) from the
appropriate table
§ Step 3 Compute the test value
§ Step 4 Make the decision.
§ Step 5 Summarize the result
Solving Hypothesis – Testing
Problems (P-Value Method)
§ Step1 state the hypotheses and identify the
claim
§ Step 2 Compute the test value.
§ Step 3 Find the P-value.
§ Step 4 Make the decision.
§ Step 5 Summarize the result
§ Decision Rule When Using a P-value
§ If p < alpha, reject Ho
§ If p > alpha, do not reject Ho
Hypothesis Testing: σ Known
= .05/2 = .05/2
X = 2.84 is translated to a Z
score of Z = -2.0 /2 = .025 /2 = .025
p-value
=.0228 + .0228 = .0456 -1.96 0 1.96 Z
-2.0 2.0
Hypothesis Testing: σ Known
p-Value Approach
§ Compare the p-value with
§ If p-value < , reject H0
§ If p-value , do not reject H0
2.6832 ≤ μ ≤ 2.9968
Critical value
Hypothesis Testing: σ Known
Upper Tail Test Example
A phone industry manager thinks that customer
monthly cell phone bills have increased, and now
average more than $52 per month. The company
wishes to test this claim. Past company records
indicate that the standard deviation is about $10.
1- = .90
= .10
0 1.28
Z = .88
Reject H0 P( X 53.1)
= .10
53.1 52.0
P Z
10/ 64
0
Do not reject
1.28
Reject P(Z 0.88) 1 .8106
H0 H0
Z = .88 .1894
H0: μ = 168
H1: μ ¹ 168
Hypothesis Testing:
σ Unknown Example
H0: μ = 168
Determine the regions of rejection
H1: μ ≠ 168
§ α = 0.05
§ n = 25 α/2=.025 α/2=.025
§ is unknown, so
use a t statistic
Reject H0 Reject H0
§ Critical Value: -t n-1,α/2
Do not reject H0 t n-1,α/2
0
t24 = ± 2.0639 -2.0639 2.0639
Hypothesis Testing:
σ Unknown Example
a/2=.025 a/2=.025
-t n-1,α/2 t n-1,α/2
0 1.46
-2.0639 2.0639
Do not reject H0: not sufficient evidence
that true mean cost is different from $168
Hypothesis Testing:
Connection to Confidence Intervals
166.14 ≤ μ ≤ 178.86
p
Z
(1 )
n
Hypothesis Testing
Proportions Example
A marketing company claims that it receives
8% responses from its mailing. To test this
claim, a random sample of 500 were
surveyed with 30 responses. Test at the
= .05 significance level.
First, check:
n π = (500)(.08) = 40
n(1-π) = (500)(.92) = 460
Hypothesis Testing
Proportions Example
0 z
-1.96 1.96
Hypothesis Testing
Proportions Example
Test Statistic: Decision:
p .06 .08 Do not reject H0 at
Z 1.648
(1 ) .08(1 .08) = .05
n 500 Conclusion:
There isn’t sufficient
evidence to reject the
.025 .025
company’s claim of
0 z 8% response rate.
-1.96 1.96
-1.646