Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Week 3 - 1
Estimation Process
Sample
Week 3 - 2
Point Estimate
Week 3 - 3
Interval Estimates
Lower Upper
Confidence Confidence
Point Estimate Limit
Limit
Width of
confidence interval
Week 3 - 4
Point Estimates
Mean μ X
Proportion p ps
Week 3 - 5
Confidence Interval
Week 3 - 6
Confidence Level
Week 3 - 7
Accuracy
Week 3 - 8
General Formula
Week 3 - 9
Confidence Interval for μ
(σ Known)
Assumptions
Population standard deviation σ is known
1 0.95
α α
0.025 0.025
2 2
/2 1 /2
x
Intervals μx μ
extend from x1
σ x2 (1-) x 100%
XZ of intervals
n
to constructed
σ contain μ;
XZ
n () x 100% do
not.
Confidence Intervals
Week 3 - 13
Example
Week 3 - 14
Example
Solution:
σ
X Z
n
2.20 1.96 (0.35/ 11)
2.20 .2068
(1.9932 , 2.4068)
Week 3 - 15
Interpretation
Assumptions
Population standard deviation is unknown
Population is Normally Distributed
If population is not normal, use large sample
Use Student’s t Distribution
Confidence Interval Estimate:
S
(where t is the critical value of the t distribution
with n-1 d.f. and an area of α/2 in each tail)
X t
2
, n -1 n
Week 3 - 18
Student’s t Distribution
d.f. = n - 1
Week 3 - 19
Degrees of Freedom (df)
Idea: Number of observations that are free to vary
after sample mean has been calculated
Example: Suppose the mean of 3 numbers is 8.0
Standard
Normal
(t with df = )
t (df = 13)
t-distributions are bell-shaped
and symmetric, but have
‘fatter’ tails than the normal t (df = 5)
0 t
Week 3 - 21
Student’s t Table
Confidence t t t Z
Level (10 d.f.) (20 d.f.) (30 d.f.) ____
Note: t Z as n increases
Week 3 - 23
Example
Week 3 - 24
Confidence Intervals
Confidence
Intervals
Population Population
Mean
Proportion
σ Known σ Unknown
Week 3 - 25
Confidence Intervals for the
Population Proportion (p)
Week 3 - 26
Confidence Intervals for the
Population Proportion (p)
(continued)
ps(1 ps)
ps Z
where n
Z is the standard normal value for the level of
confidence desired
p is the sample proportion
n is the sample size
Week 3 - 28
Example
Week 3 - 29
Example
(continued)
A random sample of 100 people shows that
25 are left-handed. Form a 95% confidence
interval for the true proportion of left-
handers. ps Z ps(1 ps )
n
(0.25)(0.7 5)
25/100 1.96
100
0.25 1.96 (0.0433)
(0.1651 , 0.3349)
Week 3 - 30
Interpretation
We are 95% confident that the true
percentage of left-handers in the population
is between
16.51% and 33.49%.
Determining
Sample Size
Week 3 - 32
Sampling Error
Week 3 - 33
Determining Sample Size
Determining
Sample Size
For the
Mean Sampling Error
(Margin of Error)
σ σ
XZ eZ
n n
Week 3 - 34
Determining Sample Size
(continued)
Determining
Sample Size
For the
Mean
σ Z σ
2 2
eZ Now solve
for n to get n 2
n e
Week 3 - 35
Determining Sample Size
(continued)
Week 3 - 36
Required Sample Size Example
Z σ2 2
(1.645) (45) 2 2
n 2
2
219.19
e 5
Week 3 - 37
If σ is unknown
Week 3 - 38
Determining Sample Size
Determining
Sample Size
For the
Proportion
Determining
Sample Size
For the
Proportion
Week 3 - 41
Required Sample Size Example
Week 3 - 42
Required Sample Size Example
(continued)
Solution:
For 95% confidence, use Z = 1.96
e = 0.03
ps = 0.12, so use this to estimate p
A hypothesis is a claim
(assumption) about a
population parameter:
Population Mean
Example: The mean monthly cell phone bill of
this city is μ = RM 42
Population Proportion
Example: The proportion of adults in this city
with cell phones is p = 0.68
Week 4 -
Null Hypothesis, H0
Week 4 -
Null Hypothesis, H0
proven guilty
Refers to the status quo
Always contains “=” , “≤” or “” sign
May or may not be rejected
Week 4 -
Alternative Hypothesis, H1
Week 4 -
Hypothesis Testing Process
Claim: the
Population
Mean age is 50.
Population
(Null Hypothesis: H0: μ = 50 )
Now select a
Random Sample
Is X 20 likely if μ = 50?
If not likely, Suppose
the sample
REJECT mean age Sample
Null Hypothesis is 20: X = 20
Week 3 - 48
Reason for Rejecting H0
Sampling Distribution of X
X
20 μ = 50
If H0 is true
... then we reject
If it is unlikely that
the null
we would get a
... if in fact this were hypothesis that μ
sample mean of
this value ... the population mean… = 50.
Week 3 - 49
Level of Significance,
Week 3 - 51
Level of Significance
and the Rejection Region
Level of significance = Represents
Critical Value
H0: μ = 3 /2 /2
H1: μ ≠ 3 Rejection
Two-tail test 0 Region is
shaded
H0: μ ≤ 3
H1: μ > 3 Upper-tail test 0
H0: μ ≥ 3
H1: μ < 3
Lower-tail test 0
Week 3 - 52
Errors in Making Decisions
Type I Error
Reject a true null hypothesis, Ho
Week 3 - 53
Errors in Making Decisions
Type II Error
Fail to reject a false null hypothesis,
Ho
The probability of Type II Error is β
Week 3 - 54
Outcomes and Probabilities
Actual Situation
Decision H0 True H0 False
Do Not
No error Type II Error
Reject
Key: (1 - ) (β)
Outcome H0
(Probability) Reject Type I Error No Error
H0 () (1-β)
Week 3 - 55
Type I & II Error Relationship
Week 3 - 56
Factors Affecting Type II Error
β when
β when σ
β when n
Week 3 - 57
Hypothesis Tests for the Mean
Hypothesis
Tests for
Known Unknown
Week 3 - 58
Z Test of Hypothesis for the Mean (σ
Known)
Convert sample statistic ( X ) to a Z test statistic
Hypothesis
Tests for
σ Known σ Unknown
X μ
Z
σ
n
Week 3 - 59
Critical Value Approach to Testing
H0: μ = 3
There are two
H1: μ ≠ 3
cutoff values
(critical values),
defining the /2 /2
regions of
rejection
3 X
Reject H0 Do not reject H0 Reject H0
-Z 0 +Z Z
Week 3 - 64
Hypothesis Testing Example(continued)
5. Determine the appropriate technique
σ is known so this is a Z test
= 0.05/2 = 0.05/2
Week 3 - 66
Hypothesis Testing Example(continued)
9-10. Reach a decision and interpret the result
= 0.05/2 = 0.05/2
Week 3 - 69
p-Value Example
p-value
=0.0228 +0.0228 = 0.0456 -1.96 0 1.96 Z
-2.0 2.0
Week 3 - 70
p-Value Example (continued)
Compare the p-value with
If p-value < , reject H0
If p-value , do not reject H0
0.8 0.8
2.84 - (1.96) to 2.84 (1.96)
100 100
2.6832 ≤ μ ≤ 2.9968
Week 3 - 73
Lower-Tail Tests
H0: μ ≥ 3
There is only one H1 : μ < 3
critical value, since
the rejection area is
in only one tail
μ X
Critical value
Week 3 - 74
Upper-Tail Tests
H0: μ ≤ 3
There is only one
H1: μ > 3
critical value, since
the rejection area is
in only one tail
X μ
Critical value
Week 3 - 75
Example: Upper-Tail Z Test
for Mean ( Known)
A phone industry manager thinks that customer
monthly cell phone bill have increased, and
now average over RM52 per month. The
company wishes to test this claim. (Assume
= 10 is known)
Form hypothesis test:
H0: μ ≤ 52 the average is not over RM52 per month
H1: μ > 52 the average is greater than RM52 per month
(i.e., sufficient evidence exists to support the
manager’s claim)
Week 3 - 76
Example: Find Rejection Region
(continued)
Suppose that = 0.10 is chosen for this test
=0.10
= 0.10
Reject H0
P(X 53.1)
= 0.10
53.1 52.0
P Z
0 10/ 64
Do not reject H0
1.28
Reject H0
P(Z 0.88) 1 0.8106
Z = 0.88 0.1894
σ Known σ Unknown
X μ
t n-1
S
n
Week 3 - 81
Example: Two-Tail Test
( Unknown)
The average cost of a
hotel room in New York
is said to be $168 per
night. A random sample
of 25 hotels resulted in
H0: μ = 168
X = $172.50 and H1: μ ¹ 168
S = $15.40. Test at the
= 0.05 level.
Week 3 -
(Assume the population distribution is normal) 82
Example Solution:
Two-Tail Test
H0: μ = 168 /2=0.025 /2=0.025
H1: μ ¹ 168
a = 0.05 Reject H0 Do not reject H0 Reject H0
-t n-1,α/2 t n-1,α/2
0
n = 25 -2.0639 2.0639
1.46
is unknown, so X μ 172.50 168
t n1 1.46
use a t statistic S 15.40
n 25
Critical Value:
t24 = ± 2.0639 Do not reject H0: not sufficient evidence that true
mean cost is different than $168
Week 3 - 83
Connection to Confidence Intervals
For X = 172.5, S = 15.40 and n = 25, the 95%
confidence interval is:
166.14 ≤ μ ≤ 178.86
The sampling
distribution of ps Hypothesis
is approximately Tests for p
normal, so the test
statistic is a Z np 5 np < 5
value: and or
ps p n(1-p) 5 n(1-p) < 5
Z
p(1 p) Not discussed
n in this chapter
Week 3 - 87
Z Test for Proportion
in Terms of Number of Successes
An equivalent
form to the last Hypothesis
slide, but in terms Tests for X
of the number of
successes, X: X5 X<5
and or
n-X 5
X np n-X < 5
Z
np(1 p) Not discussed
in this chapter
Week 3 - 88
Example: Z Test for Proportion
A marketing company
claims that it receives
8% responses from its
mailing. To test this
claim, a random sample
of 500 were surveyed Check:
with 25 responses. Test n p = (500)(0.08) = 40
at the = 0.05
n(1-p) = (500)(0.92) = 460
significance level.
Week 3 - 89
Z Test for Proportion: Solution
Z = -2.47 Z = 2.47
Analyze
– Compare Means
– One-Sample T Test
- Test Variable(s): IQ
Week 3 - 93