Escolar Documentos
Profissional Documentos
Cultura Documentos
where
n
s
s
x
=
Note: we are assuming that the sample means are normally
distributed.
Example: An importer of Herbs and Spices claims that the average
weight of packets of saffron is 20 grams. A random sample of 36
packets is selected. The sample average is calculated to be 19.35
grams. The populations standard deviation is 1.8 grams.
Calculate the 99% confidence interval for the population average
weight.
Step 1: find
3 . 0
36
8 . 1
= = =
n
x
o
o
2 /
, ,
o
o Z x
x
we are given that =19.35 grams
we can calculate
x
x
o
For the critical Z:
= 1% /2 = 0.5%
so Z/2 = 2.5758
Step 2: construct the interval
x
Z x o
o 2 /
19.35 + (2.5758)(0.3)
19.35 + 0.77274
18.5773 to 20.1227
We are 99% sure that the population mean is somewhere
between 18.5773 and 20.1227.
The manufacturer makes the claim that the average weight of a
packet is 20 grams.
Does our confidence interval support this claim?
yes, 20 lies between the upper and lower limits of our
confidence interval
B. One-Sided Confidence Intervals
Sometimes we wish to know the lower limit, above which we are
(1 )(100%) confident the population mean lies.
Sometimes we wish to know the upper limit, below which we are
(1 )(100%) confident the population mean lies.
x
Z x o
o 2 /
x
Z x o
o 2 /
+
Ex: Suppose a property investor claims that the average rental
income per room in student housing is at most $5000 per year. The
average rent paid by a sample of 36 students was calculated to be
$5200. The sample standard deviation is $735.
Calculate a 90% confidence interval for the true mean annual rental
income.
Step 1: find
2 /
, ,
o
Z s x
x
5 . 122
36
735
= = =
n
s
s
x
we are given that =5200
we can calculate
x
x
s
For the critical Z:
= 10% /2 = 5%
so Z/2 = 1.6449
Step 2: construct the interval
x
s Z x
2 / o
5200 + (1.6449)(122.5)
5200 + 201.50
4998.50 to 5401.50
We are 90% sure that the true population mean is somewhere
between $4998.50 and $5401.50.
The investor makes the claim that the average rent is at most
$5000.
Does our confidence interval support this claim?
no, $5000 is $401 below the upper bound of our
confidence interval
II. Confidence Intervals for Proportions
The (1 )(100%) confidence interval for a population proportion
is given by
n
p p
Z p
) 1 (
2 /
o
center of interval margin of error
Example: In a poll of 200 voters, 88 stated that they will vote for
the Green party candidate. Construct a 95% confidence interval
for the true proportion of support for the Green party candidate.
Step 1: find
2 /
, ,
o
Z n p
n = 200
p = 88/200 = 0.44
Z0.025 = 1.96
0351 . 0
200
) 44 . 0 1 ( 44 . 0 ) 1 (
=
n
p p
So, the confidence interval is:
0.44 + (1.96)(0.0351)
0.44 + 0.068796
Meaning, we are 95% confident that the population proportion
is between 0.371204 and 0.508796.
That is, we are 95% sure that between 37.1% and 50.8% of the
voters will vote for the Green party.
The margin of error is 6.88 percentage points.
What would you say about the usefulness of this information?
III. The Precision of Confidence Intervals
The margin of error tells us about the precision of the interval.
n
Z
o
c
o 2 /
=
It depends on Z, , and n.
The population standard deviation is fixed for a given
population.
- The margin of error (width of the interval) will be
greater when the population standard deviation is large.
The greater the level of confidence, the larger Z is and the wider
the interval.
- A more precise interval can be obtained by reducing
the confidence level.
The larger the sample size, the smaller the margin of error.
Sample size has a major effect on the precision of the confidence
interval.
How to calculate the sample size needed that will result in a
confidence interval with a specified precision:
2
2 /
|
.
|
\
|
=
c
o
o
Z
n )) 1 ( (
2
2 /
p p
Z
n
|
.
|
\
|
=
c
o
Example: An importer of Herbs and Spices claims that the
average weight of packets of saffron is 20 grams. The
populations standard deviation is 1.8 grams.
Calculate the sample sized needed to construct a 99% confidence
interval with a margin of error of + 0.5.
2
2 /
|
.
|
\
|
=
c
o
o
Z
n
986 . 85
5 . 0
) 8 . 1 )( 5758 . 2 (
2
=
|
.
|
\
|
For 99%, Z/2 = 2.5758
A sample size of 86 would allow us to construct a 99%
confidence interval with a margin of error of 0.5.
Example: In a poll of 200 voters, 88 stated that they will vote
for the Green party candidate.
Calculate the sample sized needed to construct a 95% confidence
interval with a margin of error of + 0.01.
For 95%, Z/2 = 1.96
p=88/200 = 0.44
A sample size of 9466 would allow us to construct a 95%
confidence interval with a margin of error of 0.01.
)) 1 ( (
2
2 /
p p
Z
n
|
.
|
\
|
=
c
o
7 . 9465 )) 44 . 0 1 ( 44 . 0 (
01 . 0
96 . 1
2
=
|
.
|
\
|
IV. Confidence Intervals for Differences between Means and
Proportions
Ex: Is the average commuting time by bus faster than by car?
Ex: Is the percentage of people likely to vote for candidate A
larger than the percentage of people likely to vote for candidate B?
The distribution for the difference between two normal
independent random variables is normal with a mean equal to the
difference of the means and the variance equal to the sum of the
variances.
If and |
|
.
|
\
|
1
2
1
1 1
, ~
n
N X
o
|
|
.
|
\
|
2
2
2
2 2
, ~
n
N X
o
\
|
+
2
2
2
1
2
1
2 1 2 1
, ~
n n
N X X
o o
The confidence interval for differences between population
means is:
point estimate + (critical value)(standard error)
The (1 )(100%) confidence interval for 1 2:
2
2
2
1
2
1
2 / 2 1
n n
Z x x
o o
o
+
2
2
2
1
2
1
2 / 2 1
n
s
n
s
Z x x +
o
Or, if the standard deviation is unknown:
(for large n)
For sample proportions that are normally distributed, the
difference between the proportions will also be normally
distributed.
If and
|
|
.
|
\
|
=
1
1 1
2
1 1 1 1
) 1 (
, ~
n
N p
p p
t t
o t
then
|
|
.
|
\
|
+
= =
2
2 2
1
1 1
2
2 1 2 1 2 1 2 1
) 1 ( ) 1 (
, ~
n n
N p p
p p p p
t t t t
o t t
|
|
.
|
\
|
=
2
2 2
2
2 2 2 2
) 1 (
, ~
n
N p
p p
t t
o t
The confidence interval for differences between population
proportions is:
point estimate + (critical value)(standard error)
The (1 )(100%) confidence interval for p1 p2:
2
2 2
1
1 1
2 / 2 1
) 1 ( ) 1 (
n
p p
n
p p
Z p p
+
o
How to interpret:
Let the confidence interval for the difference between means be
A < 1 2 < B
Case 1: If A and B are both positive, then we can be (1-)(100%)
confident that 1 is greater than 2 by an amount ranging from A to
B.
Case 2: If A and B are both negative, then we can be (1-)(100%)
confident that 1 is less than 2 by an amount ranging from A to B.
Case 3: If A and B have different signs, then the interval contains
1 2 = 0. We can be (1-)(100%) confident that A is equal to B.
Example: Designers of rowing equipment investigate the
difference between the mean weights (kg)of male and female
rowing teams. Random samples of male and female rowers are
selected.
Calculate the 95% confidence interval for the difference in mean
weights between male and female rowers.
Note: we dont know the population mean or standard deviation
2
2
2
1
2
1
2 / 2 1
n
s
n
s
Z x x +
o
Well need the difference in means, Z, s, and n.
difference in means = 60.5 52.6 = 7.9
Z/2=1.96
n1 = 42 n2 = 30
s1 = 6.8 s2 = 4.5
30
5 . 4
42
8 . 6
96 . 1 9 . 7
2 2
+
7.9 + 1.96(1.3326)
7.9 + 2.6119
We are 95% confident that the difference between the mean
weights of male and female rowers is between 5.2881kg and
10.5119kg.
Both the lower and upper limits are positive.
1 > 2
The average weight for male rowers is greater than the
average weight for female rowers.
Lower Limit: 1 > 2 by 5.2881
Upper Limit: 1 > 2 by 10.5991
We are 95% confident that the mean weight of male rowers
exceeds the mean weight of female rowers by 5.2881kg to
10.5991kg.
We cannot assume that the weight of any individual male rower
exceeds the weight of any individual female rower.
variance for individual variance for means
2
o
n
x
2
2
o
o =
Example: Here are the results for polls taken in 2 locations.
Calculate the 90% confidence interval for the difference in
proportions who will vote for the Green party in area A and Area
B.
2
2 2
1
1 1
2 / 2 1
) 1 ( ) 1 (
n
p p
n
p p
Z p p
+
o
Well need p, the difference in p, Z, and n.
p1 = 88/200 = 0.44 p2 = 54/160 = 0.3375
difference in proportions = 0.44 0.3375 = 0.1025
n1 = 200 n2 = 160
Z/2=1.6449
160
) 3375 . 0 1 ( 3375 . 0
200
) 44 . 0 1 ( 44 . 0
6449 . 1 1025 . 0
+
0.1025 + 1.6449(0.0513)
0.1025 + 0.0843
We are 90% confident that the difference between the two
proportions is between 0.0182 and 0.1868.
Both the lower and upper limits are positive.
1 > 2
The proportion of voters supporting the Green party in area
A exceeds the proportion of voters supporting the Green
party in area B.
Lower Limit: 1 > 2 by 0.0182
Upper Limit: 1 > 2 by 0.1868
We are 90% confident that 1 > 2.
Concepts:
Interpreting confidence intervals and their precision
Skills:
Construct a 90%, 95% and 99% confidence interval for means
and proportions
Calculate the sample size needed in order to construct a
confidence interval of a specified margin of error
- means and proportions
Construct a 90%, 95% and 99% confidence interval for the
difference between means or proportions.