Beruflich Dokumente
Kultur Dokumente
H 0 : µ ≥ µ0 H 0 : µ ≤ µ0 H 0 : µ = µ0
H a : µ < µ0 H a : µ > µ0 H a : µ ≠ µ0
One-tailed One-tailed Two-tailed
(lower-tail) (upper-tail)
Null and Alternative Hypotheses
A major west coast city provides one of the most
comprehensive emergency medical services in the
world. Operating in a multiple hospital system
with approximately 20 mobile medical units, the
service goal is to respond to medical emergencies
with a mean time of 12 minutes or less.
The director of medical services wants to
formulate a hypothesis test that could use a sample
of emergency response times to determine whether
or not the service goal of 12 minutes or less is being
achieved.
Null and Alternative Hypotheses
p-Value Approach
Step 4. Use the value of the test statistic to compute the
p-value.
Step 5. Reject H0 if p-value < a.
Steps of Hypothesis Testing
H0: µ < 12
Ha: µ > 12
α = .05
x − µ 13.25 − 12
z= = = 2.47
σ / n 3.2/ 40
One-Tailed Tests About a Population Mean:
σ Known
p –Value Approach
H0 : µ = 6
Ha: µ ≠ 6
α = .03
x − µ0 6.1 − 6
z= = = 2.74
σ / n .2 / 30
Two-Tailed Tests About a Population Mean:
σ Known
p –Value Approach
H0: µ < 65
Ha: µ > 65
α = .05
x − µ 0 66.2 − 65
t= = = 2.286
s / n 4.2 / 64
One-Tailed Test About a Population Mean:
σ Unknown
p –Value Approach
Test Statistic
p − p0
z=
σp
where:
p0 (1 − p0 )
σp =
n
H 0 : p = .5
H a : p ≠ .5
α = .05
p0 (1 − p0 ) .5(1 − .5)
σp = = = .045644
n 120
p − p0 (67 /120) − .5
z= = = 1.28
σp .045644
Two-Tailed Test About a
Population Proportion
p−Value Approach
Because 1.278 > -1.96 and < 1.96, we cannot reject H0.
Part II
Two Populations
Inferences About the Difference Between
Two Population Means: σ 1 and σ 2 Known
• Interval Estimation of µ 1 – µ 2
• Hypothesis Tests About µ 1 – µ 2
Sampling Distribution of x1 − x2
Expected Value
E ( x1 − x2 ) = µ 1 − µ 2
σ12 σ 22
σ x1 − x2 = +
n1 n2
σ12 σ 22
x1 − x2 ± zα / 2 +
n1 n2
where:
1 - α is the confidence coefficient
Hypothesis Tests About µ 1 − µ 2:
σ 1 and σ 2 Known
Hypotheses
H0 : µ1 − µ2 ≥ D0 H0 : µ1 − µ2 ≤ D0 H0 : µ1 − µ2 = D0
Ha: µ1 − µ2 < D0 Ha : µ1 − µ2 > D0 Ha : µ1 − µ2 ≠ D0
Left-tailed Right-tailed Two-tailed
Test Statistic
( x1 − x2 ) − D0
z=
σ 12 σ 22
+
n1 n2
Hypothesis Tests About µ 1 − µ 2:
σ 1 and σ 2 Known
Example: Par, Inc.
Can we conclude, using α = .01, that the
mean driving distance of Par, Inc. golf balls is
greater than the mean driving distance of Rap, Ltd.
golf balls?
Hypothesis Tests About µ 1 − µ 2:
σ 1 and σ 2 Known
p –Value and Critical Value Approaches
( x 1 − x 2 ) − D0
z=
σ 12 σ 22
+
n1 n2
(235 − 218) − 0 17
z= = = 6.49
(15) 2 (20 ) 2 2.62
+
120 80
Hypothesis Tests About µ 1 − µ 2:
σ 1 and σ 2 Known
p –Value Approach
(X − X )− (µ − µ )
1 2 1 2
t=
S (n − 1) + S (n − 1)
2 2
1 1 2 2 1 1
+
n +n −2
1 2 n n 1 2
Confidence Interval
(X − X )± t S (
2
1n − 1) + S (n
1
2
2 2
− 1) 1
+
1
1 2
n +n −2 1 2 n n
1 2
where df = n + n − 2
1 2
Inferences About the Difference Between
Two Population Means: Matched Samples
With a matched-sample design each sampled item
provides a pair of data values.
This design often leads to a smaller sampling error
than the independent-sample design because
variation between sampled items is eliminated as a
source of sampling error.
Inferences About the Difference Between
Two Population Means: Matched Samples
Example: Express Deliveries
A Chicago-based firm has documents that must
be quickly distributed to district offices throughout
the U.S. The firm must decide between two delivery
services, UPX (United Parcel Express) and INTEX
(International Express), to transport its documents.
Inferences About the Difference Between
Two Population Means: Matched Samples
Example: Express Deliveries
In testing the delivery times of the two services,
the firm sent two reports to a random sample of its
district offices with one report carried by UPX and
the other report carried by INTEX. Do the data on
the next slide indicate a difference in mean delivery
times for the two services? Use a .05 level of
significance.
Inferences About the Difference Between
Two Population Means: Matched Samples
∑ di ( 7 + 6+... +5)
d = = = 2. 7
n 10
2
∑ ( di − d ) 76.1
sd = = = 2. 9
n −1 9
d − µd 2.7 − 0
t= = = 2.94
sd n 2.9 10
Inferences About the Difference Between
Two Population Means: Matched Samples
p –Value Approach
4. Compute the p –value.
• Interval Estimation of p1 - p2
• Hypothesis Tests About p1 - p2
Sampling Distribution of p1 − p2
Expected Value
E ( p1 − p2 ) = p1 − p2
p1 (1 − p1 ) p2 (1 − p2 )
σ p1 − p2 = +
n1 n2
Interval Estimate
p1 (1− p1 ) p2 (1− p2 )
p1 − p2 ± zα / 2 +
n1 n2
Hypothesis Tests about p1 - p2
Hypotheses
We focus on tests involving no difference between
the two population proportions (i.e. p1 = p2)
1 1
σ p −p = p(1 − p) +
n1 n2
1 2
n1 p1 + n2 p2
p=
n1 + n2
Hypothesis Tests about p1 - p2
Test Statistic
( p1 − p2 )
z=
1 1
p (1 − p ) +
n
1 n 2
Hypothesis Tests about p1 - p2
p –Value Approach
4. Compute the p –value.
With 2 degrees
of freedom
With 5 degrees
of freedom
With 10 degrees
of freedom
(n −1)s2
0 σ2
Chi-Square Distribution
2
We will use the notation χtoα2 denote the value for the
chi-square distribution that provides an area of α to
2
the right of the stated χvalue.
α
2 ( n − 1)s 2 2
χ .975 ≤ ≤ χ .025
σ2
.025
.025
95% of the
possible χ2 values
χ2
2 2
0 χ .975 χ .025
Interval Estimation of σ 2
( n − 1) s 2 2 ( n − 1) s 2
2
≤σ ≤
χα /2 χ (21−α / 2)
(n −1)s2 (n −1)s2
2
≤σ ≤
χα /2 χ(12−α /2)
Interval Estimation of σ 2
Example: Buyer’s Digest (A)
Buyer’s Digest rates thermostats manufactured
for home temperature control. In a recent test,
10 thermostats manufactured by ThermoRite
were selected and placed in a test room that was
maintained at a temperature of 68oF. The
temperature readings of the ten thermostats are
shown on the next slide.
Interval Estimation of σ 2
Thermostat 1 2 3 4 5 6 7 8 9 10
Temperature 67.4 67.8 68.2 69.3 69.5 67.0 68.1 68.6 67.9 67.2
Interval Estimation of σ 2
2
Our χ .975 value
Interval Estimation of σ 2
( n − 1)s 2 2
2.700 ≤ ≤ χ .025
σ2
.025
Area in
Upper Tail
= .975
χ2
0 2.700
Interval Estimation of σ 2
2
Our χ .025 value
Interval Estimation of σ 2
( n − 1)s 2
2.700 ≤ 2
≤ 19.023
σ
χ2
0 2.700 19.023
Interval Estimation of 2 σ
• Sample variance s2 provides a point estimate of σ 2.
2 ∑ ( xi − x ) 2 6. 3
s = = =. 70
n −1 9
A 95% confidence interval for the population variance is
given by:
(10 − 1). 70 2 (10 − 1). 70
≤σ ≤
19. 02 2. 70
•Test Statistic
( n − 1) s 2
χ2 =
σ 20
Hypothesis Testing
About a Population Variance
Left-Tailed Test (continued)
•Rejection Rule
Critical value approach: Reject H0 if χ 2 ≤ χ(12 −α )
•Test Statistic
( n − 1) s 2
χ2 =
σ 20
Hypothesis Testing
About a Population Variance
Right-Tailed Test (continued)
•Rejection Rule
Critical value approach: Reject H0 if χ2 ≥ χα2
•Test Statistic
( n − 1) s 2
χ2 =
σ 20
Hypothesis Testing
About a Population Variance
Two-Tailed Test (continued)
•Rejection Rule
Critical value approach:
Reject H0 if χ 2 ≤ χ (12 −α /2 ) or χ 2 ≥ χα2 /2
p-Value approach:
Thermostat 1 2 3 4 5 6 7 8 9 10
Temperature 67.4 67.8 68.2 69.3 69.5 67.0 68.1 68.6 67.9 67.2
Hypothesis Testing
About a Population Variance
H 0 : σ 2 ≤ 0.5
• Hypotheses
H a : σ 2 > 0.5
Rejection Rule
( n − 1)s 2 9s2
χ2 = =
σ2 .5
Area in Upper
Tail = .10
χ2
0 14.684
Reject H0
Hypothesis Testing
About a Population Variance
•Test Statistic
s12
F=
s22
Hypothesis Testing About the
Variances of Two Populations
One-Tailed Test (continued)
•Rejection Rule
Critical value approach: Reject H0 if F > Fα
•Test Statistic
2
s
F= 1
s22
Hypothesis Testing About the
Variances of Two Populations
Two-Tailed Test (continued)
•Rejection Rule
Critical value approach: Reject H0 if F > Fα/2
Thermostat 1 2 3 4 5 6 7 8 9 10
Temperature 67.4 67.8 68.2 69.3 69.5 67.0 68.1 68.6 67.9 67.2
TempKing Sample
Thermostat 1 2 3 4 5 6 7 8 9 10
Temperature 67.7 66.4 69.2 70.1 69.5 69.7 68.1 66.6 67.3 67.5
Hypothesis Testing About the
Variances of Two Populations
• Hypotheses
H 0 : σ 12 = σ 22 (TempKing and ThermoRite thermostats
have the same temperature variance)
H a : σ 12 ≠ σ 22 (Their variances are not equal)
Rejection Rule
The F distribution table (on next slide) shows that with
with α = .10, 9 d.f. (numerator), and 9 d.f. (denominator),
F.05 = 3.18.
Reject H0 if F > 3.18
Hypothesis Testing About the
Variances of Two Populations
Selected Values from the F Distribution Table
Denominator Area in Numerator Degrees of Freedom
Degrees Upper
of Freedom Tail 7 8 9 10 15
8 .10 2.62 2.59 2.56 2.54 2.46
.05 3.50 3.44 3.39 3.35 3.22
.025 4.53 4.43 4.36 4.30 4.10
.01 6.18 6.03 5.91 5.81 5.52