Week 8a - Interval Estimation
Week 8a - Interval Estimation
Week 8a - Interval Estimation
and
INTERVAL ESTIMATION
APRIL ANDREA M. VALERA
2016
Statistical Inference
StatisticalInference is a procedure
whereby, on the basis of observed data in
a particular sample, we generalize and
draw conclusions about the population
from which the sample is drawn.
Statistical Inference
Object of Explain
study: Parameters
Population , , etc
Infer
Recourse:
a sample Collect data; compute Statistics
x , s, etc
Example: Time Survey Report
1. Point estimate:
Point estimate
for textbooks
2. Interval estimate:
Point estimate + / - Margin of error
Point estimate
Margin of error Margin of error
Interval estimate
Margin of Error and the Interval Estimate
Point estimate
Point estimate
for textbooks
74.22
interval estimate
How confident do we want to be that the interval estimate
contains the population mean, ?
Level of Confidence
The level of confidence c is the probability that the
interval estimate contains the population parameter.
C z-score of C
90% 1.645
95% 1.96
99% 2.575
Margin of Error
The difference between the point estimate and the actual population
parameter value is called the sampling error.
When is estimated, the sampling error is the difference x . Since
is usually unknown, the maximum value for the error can be calculated
using the level of confidence.
Given a level of confidence, the margin of error (sometimes called the
maximum error of estimate or error tolerance) E is the greatest possible
distance between the point estimate and the value of the parameter it
is estimating.
Margin of Error
E z c x z c
n
When n 30, the sample
standard deviation, s,
can be used for .
Example:
A random sample of 32 textbook prices
(rounded to the nearest dollar) is taken from a
local college bookstore.
34 34 38 45 45 45 45 54
56 65 65 66 67 67 68 74
79 86 87 87 87 88 90 90
94 95 96 98 98 101 110 121
Margin of Error
Example:
A random sample of 32 textbook prices is taken from a local
college bookstore. The mean of the sample is x = 74.22,
and the sample standard deviation is s = 23.44.
Use a 95% confidence level and find the margin of error for
the mean price of all textbooks in the bookstore.
E zc 1.96
23.44 Since n 30, s can be
substituted for .
n 32
8.12
We are 95% confident that the margin of error for the
population mean (all the textbooks in the bookstore) is
about $8.12.
Confidence Intervals for
xE xE
The probability that the confidence interval
contains is c.
Example ( Known):
Example continued:
Construct a 95% confidence interval for the mean
price of all textbooks in the bookstore.
x = 74.22 s = 23.44 E = 8.12
Left endpoint = ? Right endpoint = ?
x =
74.22
x E 74.22 8.12 x E 74.22 8.12
= 66.1 = 82.34
With 95% confidence we can say that the cost for all textbooks
in the bookstore is between $66.10 and $82.34.
Confidence
Intervals for
( Known)
Interval Estimate of
Known
x z /2
n
where: X-bar is the sample mean
1 - is the confidence coefficient
z/2 is the z value providing an area of
/2 in the upper tail of the standard
normal probability distribution
is the population standard deviation
n is the sample size
Finding Confidence Intervals for
Finding a Confidence Interval for a Population Mean
(n 30 or known with a normally distributed population)
In Words In Symbols
1. Find the sample statistics n and x . x
x
n
2. Specify , if known. Otherwise, if n 30, ( x x )2
find the sample standard deviation s and s
n 1
use it as an estimate for .
3. Find the critical value zc that corresponds Use the Standard
Normal Table.
to the given level of confidence.
E zc
4. Find the margin of error E. n
Left endpoint: x E
5. Find the left and right endpoints Right endpoint: x E
and form the confidence interval. Interval: x E x E
Confidence Intervals for ( Known)
Example:
A random sample of 25 students had a grade
point average with a mean of 2.86. Past studies
have shown that the standard deviation is 0.15
and the population is normally distributed.
Construct a 90% confidence interval for the
population mean grade point average.
Confidence Intervals for ( Known)
E z c 1.645 0.15
n 25
n = 25 x = 2.86 = 0.15
zc = 1.645 0.05
x E 2.86 0.05 2.81 < < 2.91
t distribution
(10 degrees
of freedom)
z, t
0
t Distribution
For more than 100 degrees of freedom, the standard Standard normal
normal z value provides a good approximation to z values
the t value.
The standard normal z values can be found in the
infinite degrees row of the t distribution table.
Interval Estimate of
Unknown
s
x t /2
n
where: X-bar is the sample mean
1 - is the confidence coefficient
t/2 is the t value providing an area of
/2 in the upper tail of a t distribution
with n-1 degrees of freedom
s is the sample standard deviation
n is the sample size
Example ( Unknown):
55 t = 2.131
2.131 n = 16
16 s = 55
We are 95% confident that the mean rent per month for
the population of efficiency apartments within a half-mile
of campus is between $720.70 and $779.30.
Finding Confidence Intervals for
Constructing a Confidence Interval for the Mean:
t-Distribution
In Words In Symbols
1. Identify the sample statistics n, x, x
x ( x x )2
n s
and s. n 1
If: Yes
Can the No If:
is known population standard is unknown
s given and n deviation s be assumed s given but n
is more than 30 known ? is LESS than 30
Use the sample
standard deviation
s Known s to estimate
Case
Use Use
s Unknown s
x z /2 Case x t /2
n n
Known or Unknown?
Problem 1: Problem 2:
In order to ensure efficient usage of a We have the following data from 10
server, it is necessary to estimate the randomly selected CS students:
mean number of concurrent users. X = $249 and S = $30. Assume that the
According to records, the sample amount spent on books by CS students
mean and sample standard devia- is normally distributed. Compute a 95%
tion of number of concurrent users at confidence interval for .
100 randomly selected times is 37.7
and 9.2, respectively.
Construct a 90% confidence interval
for the mean number of concurrent
users.
Sample Problem
Problem 1: Z Problem 2: T
Mean = 37.7 Mean = 249
Std. Dev = 9.2 Std. Dev = 30
n = 100 n = 10
Confidence Level = 90% Confidence Level = 95%
Critical Value = 1.645 Critical Value = 2.262
Sample Problem
Problem 1: Z Problem 2: T
Mean - E < < Mean + E Mean - E < < Mean + E
37.7 1.51 < < 37.7 + 1.51 249 - 21.46 < < 249 + 21.46