SlideShare a Scribd company logo
1 of 44
CONFIDENCE INTERVALS
STAT 118 BIOSTATISTICS
Lecture 10
Dept. of Medical Laboratories
College of Applied Medical Sciences
Qassim University
March 2016
2
Outline
1. Confidence Intervals for the Mean (Large Samples)
2. Sample size
3. Confidence Intervals for the Mean (Small Samples)
3
1. Confidence Intervals for the Mean of
Large Samples
• Objectives:
 Find a point estimate and a margin of error
 Construct and interpret confidence intervals for the
population mean
 Determine the minimum sample size required
when estimating μ (Sample Size Calculation)
Point Estimate for Population μ
Point Estimate
• A single value estimate for a population parameter
• Most unbiased point estimate of the population mean
μ is the sample mean x
Estimate Population
Parameter…
with Sample
Statistic
Mean: μ x
4
Example: Point Estimate for Population μ
A social networking website allows its users to add
friends, send messages, and update their personal
profiles. The following represents a random sample of
the number of friends for 40 users of the website. Find a
point estimate of the population mean, µ. (Source:
Facebook)
140 105 130 97 80 165 232 110 214 201 122
98 65 88 154 133 121 82 130 211 153 114
58 77 51 247 236 109 126 132 125 149 122
74 59 218 192 90 117 105
5
Solution: Point Estimate for Population μ
The sample mean of the data is
x 
x

5232
 130.8
n 40
Your point estimate for the mean number of friends for
all users of the website is 130.8 friends.
6
How confident do we want to be that the interval estimate
contains the population mean μ?
Interval Estimate
Interval estimate
• An interval, or range of values, used to estimate a
population parameter.
Point estimate
x 130.8
125 130 135 140
Interval estimate
Right endpoint
146.5
)
145 150
Left endpoint
115.1
(
115 120
7
Level of Confidence
Level of confidence c
• The probability that the interval estimate contains the
population parameter.
z
z = 0–zc zc
Critical values
½(1 – c)
c is the area under the
standard normal curve
between the critical values.
½(1 – c)
The remaining area in the tails is 1 – c .
c
Use the Standard
Normal Table to find the
corresponding z-scores.
8
zc
Level of Confidence
z
zc
The corresponding z-scores are ±1.645.
• If the level of confidence is 90%, this means that we
are 90% confident that the interval contains the
population mean μ.
c = 0.90
½(1 – c) = 0.05½(1 – c) = 0.05
–zc = –1.645 z = 0 zc = 1.645
9
Sampling Error
Sampling error
• The difference between the point estimate and the
actual population parameter value.
• For μ:
 the sampling error is the difference x – μ
 μ is generally unknown
x varies from sample to sample
10
Margin of Error
Margin of error
• The greatest possible distance between the point
estimate and the value of the parameter it is
estimating for a given level of confidence, c.
• Denoted by E.
• Sometimes called the maximum error of estimate or
error tolerance.
n
σE  zcσ x  zc
When n ≥ 30, the sample
standard deviation, s, can
be used for σ.
11
12
Example: Finding the Margin of Error
Use the social networking website data and a
95% confidence level to find the margin of
error for the mean number of friends for all
users of the website. Assume the sample
standard deviation is about 53.0.
zc
Solution: Finding the Margin of Error
z
zcz = 0
• First find the critical values
0.95
0.0250.025
–zc = –1.96
95% of the area under the standard normal curve falls
within 1.96 standard deviations of the mean. (You
can approximate the distribution of the sample means
with a normal curve by the Central Limit Theorem,
because n = 40 ≥ 30.)
zc = 1.96
13
Solution: Finding the Margin of Error
40
14
c c
s
n n

E  z  z
1.96
53.0
You don’t know σ, but
since n ≥ 30, you can
use s in place of σ.
16.4
You are 95% confident that the margin of error for the
population mean is about 16.4 friends.
Confidence Intervals for the Population
Mean
A c-confidence interval for the population mean μ
•
• The probability that the confidence interval contains μ
is c.
n
15

x  E    x  E where E  zc
Constructing Confidence Intervals for μ
Finding a Confidence Interval for a Population Mean
(n ≥ 30 or σ known with a normally distributed population)
In Words In Symbols
n
x  x
s  (x x)2
n1
1. Find the sample statistics n and
x.
2. Specify σ, if known.
Otherwise, if n ≥ 30, find the
sample standard deviation s and
use it as an estimate for σ.
16
Constructing Confidence Intervals for μ
3. Find the critical value zc that
corresponds to the given
level of confidence.
4. Find the margin of error E.
5. Find the left and right
endpoints and form the
confidence interval.
Use the Standard
Normal Table or
technology.
n
E  zc
Left endpoint: x  E
Right endpoint: x  E
Interval:
x  E    x  E
17
In Words In Symbols
Example: Constructing a Confidence
Interval
Construct a 95% confidence interval for the mean
number of friends for all users of the website.
Solution: Recall x 130.8 and E ≈ 16.4
114.4 < μ < 147.2
Left Endpoint:
x  E
130.816.4
114.4
18
Right Endpoint:
x  E
130.816.4
147.2
Solution: Constructing a Confidence
Interval
114.4 < μ < 147.2
•
With 95% confidence, you can say that the population
mean number of friends is between 114.4 and 147.2.
19
Example: Constructing a Confidence
Interval σ Known
A college admissions director wishes to estimate the
mean age of all students currently enrolled. In a random
sample of 20 students, the mean age is found to be 22.9
years. From past studies, the standard deviation is
known to be 1.5 years, and the population is normally
distributed. Construct a 90% confidence interval of the
population mean age.
20
zc
Solution: Constructing a Confidence
Interval σ Known
• First find the critical values
z
zc
c = 0.90
½(1 – c) = 0.05½(1 – c) = 0.05
–zc = –1.645 z = 0 zc = 1.645
21
zc = 1.645
• Margin of error:
Solution: Constructing a Confidence
Interval σ Known
20
c
n

E  z  1.645
1.5
 0.6
• Confidence
interval: Left
Endpoint:
x  E
 22.9 0.6
 22.3
Right Endpoint:
x  E
 22.9 0.6
 23.5
22.3 < μ < 23.5
22
Solution: Constructing a Confidence
Interval σ Known
22.3 < μ < 23.5
•
23
22.9
)
22.3
(
23.5
With 90% confidence, you can say that the mean age
of all the students is between 22.3 and 23.5 years.
Point estimate
xx E x  E
24
Interpreting the Results
• μ is a fixed number. It is either in the confidence
interval or not.
• Incorrect: “There is a 90% probability that the actual
mean is in the interval (22.3, 23.5).”
• Correct: “If a large number of samples is collected
and a confidence interval is created for each sample,
approximately 90% of these intervals will contain μ.
Interpreting the Results
The horizontal segments
represent 90% confidence
intervals for different
samples of the same size.
In the long run, 9 of every
10 such intervals will
contain μ. μ
25
2. Sample Size
• If σ is unknown, you can estimate it using s, provided
you have a preliminary sample with at least 30
members.
• Given a c-confidence level and a margin of error E,
the minimum sample size n needed to estimate the
population mean µ is
2
26
E
n 
 zc 
 
 
27
Example: Sample Size
You want to estimate the mean number of friends for all
users of the website. How many users must be included
in the sample if you want to be 95% confident that the
sample mean is within seven friends of the population
mean?
Assume the sample standard deviation is about 53.0.
zc
Solution: Sample Size
• First find the critical values
zc = 1.96
z
zc
0.95
0.0250.025
–zc = –1.96 z = 0 zc = 1.96
28
Solution: Sample Size
zc = 1.96 σ ≈ s ≈ 53.0 E = 7
2
29
2
E 7
 220.23n  zc   1.9653.0 
   
   
When necessary, round up to obtain a whole number.
You should include at least 221 users in your sample.
30
3. Confidence Intervals for the Mean
(Small Samples)
• Objectives:
 Interpret the t-distribution and use a t-distribution
table
 Construct confidence intervals when n < 30, the
population is normally distributed, and σ is
unknown
The t-Distribution
• When the population standard deviation is unknown,
the sample size is less than 30, and the random
variable x is approximately normally distributed, it
follows a t-distribution.
t  x  
s
n
• Critical values of t are denoted by tc.
31
Properties of the t-Distribution
1. The t-distribution is bell shaped and symmetric
about the mean.
2. The t-distribution is a family of curves, each
determined by a parameter called the degrees of
freedom. The degrees of freedom are the number
of free choices left after a sample statistic such as x
is calculated. When you use a t-distribution to
estimate a population mean, the degrees of freedom
are equal to one less than the sample size.
 d.f. = n – 1 Degrees of freedom
32
Properties of the t-Distribution
3. The total area under a t-curve is 1 or 100%.
4. The mean, median, and mode of the t-distribution are
equal to zero.
5. As the degrees of freedom increase, the t-distribution
approaches the normal distribution. After 30 d.f., the t-
distribution is very close to the standard normal z-
distribution.
t
0
Standard normal curve
The tails in the t-
distribution are “thicker”
than those in the standard
normal distribution.
d.f. = 2
d.f. = 5
33
Example: Critical Values of t
tc = 2.145
Find the critical value tc for a 95% confidence level
when the sample size is 15.
Solution: d.f. = n – 1 = 15 – 1 = 14
Table 5: t-Distribution
34
Solution: Critical Values of t
t
–tc = –2.145 tc = 2.145
95% of the area under the t-distribution curve with 14
degrees of freedom lies between t = ±2.145.
c = 0.95
35
Confidence Intervals for the Population
Mean
A c-confidence interval for the population mean μ
•
• The probability that the confidence interval contains μ
is c.
s
36
n
x  E    x  E where E  tc
Confidence Intervals and t-Distributions
2. Identify the degrees of
freedom, the level of
confidence c, and the
critical value tc.
3. Find the margin of error E.
n
x  x
s  (x x)2
n1
n
E  tc
s
d.f. = n – 1
1. Identify the sample
statistics n, x , ands.
37
In Words In Symbols
Confidence Intervals and t-Distributions
4. Find the left and right
endpoints and form the
confidence interval.
Left endpoint: x E
Right endpoint: x  E
Interval:
x  E    x  E
38
In Words In Symbols
Example: Constructing a Confidence
Interval
You randomly select 16 coffee shops and measure the
temperature of the coffee sold at each. The sample mean
temperature is 162.0ºF with a sample standard deviation
of 10.0ºF. Find the 95% confidence interval for the
population mean temperature. Assume the temperatures
are approximately normally distributed.
Solution:
Use the t-distribution (n < 30, σ is unknown,
temperatures are approximately normally distributed).
39
Solution: Constructing a Confidence
Interval
• n =16, x = 162.0 s = 10.0 c = 0.95
• df = n – 1 = 16 – 1 = 15
• Critical Value Table 5: t-Distribution
40
tc = 2.131
Solution: Constructing a Confidence
Interval
• Margin of error:
16
c
n
E  t  2.131 10  5.3s
• Confidence
interval: Left
Endpoint:
x  E
1625.3
156.7
Right Endpoint:
x  E
1625.3
167.3
156.7 < μ < 167.3
41
Solution: Constructing a Confidence
Interval
• 156.7 < μ < 167.3
•
42
162.0
)
156.7
(
167.3
With 95% confidence, you can say that the population
mean temperature of coffee sold is between 156.7ºF
and 167.3ºF.
Point estimate
xx E x  E
No
Normal or t-Distribution?
Is n ≥ 30?
Is the population normally,
or approximately normally,
distributed? Cannot use the normal
distribution or the t-distribution.
Yes
Is σ known?
No
If σ is unknown, use s instead.
c
n
Use the normal distribution with
E  z σ
Yes
No
c
n
E  z .
Use the normal distribution with
σ
Yes
and n – 1 degrees of freedom.
c
43
Use the t-distribution with
E  t
s
n
Example: Normal or t-Distribution?
You randomly select 25 newly constructed houses. The
sample mean construction cost is $181,000 and the
population standard deviation is $28,000. Assuming
construction costs are normally distributed, should you
use the normal distribution, the t-distribution, or neither
to construct a 95% confidence interval for the
population mean construction cost?
Solution:
Use the normal distribution (the population is
normally distributed and the population standard
deviation is known)
44

More Related Content

What's hot

Confidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewConfidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewRizwan S A
 
regression and correlation
regression and correlationregression and correlation
regression and correlationPriya Sharma
 
Central limit theorem
Central limit theoremCentral limit theorem
Central limit theoremNadeem Uddin
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeRose Jenkins
 
Probability Density Functions
Probability Density FunctionsProbability Density Functions
Probability Density Functionsguestb86588
 
One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Testshoffma5
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testingjundumaug1
 
multiple regression
multiple regressionmultiple regression
multiple regressionPriya Sharma
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statisticsewhite00
 
Chap06 sampling and sampling distributions
Chap06 sampling and sampling distributionsChap06 sampling and sampling distributions
Chap06 sampling and sampling distributionsJudianto Nugroho
 
Introduction to Hypothesis Testing
Introduction to Hypothesis TestingIntroduction to Hypothesis Testing
Introduction to Hypothesis Testingjasondroesch
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Vijay Hemmadi
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 

What's hot (20)

Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
Confidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overviewConfidence Intervals: Basic concepts and overview
Confidence Intervals: Basic concepts and overview
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Central limit theorem
Central limit theoremCentral limit theorem
Central limit theorem
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample Size
 
Probability Density Functions
Probability Density FunctionsProbability Density Functions
Probability Density Functions
 
One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Test
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
multiple regression
multiple regressionmultiple regression
multiple regression
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Sample size calculation
Sample size calculationSample size calculation
Sample size calculation
 
Chap06 sampling and sampling distributions
Chap06 sampling and sampling distributionsChap06 sampling and sampling distributions
Chap06 sampling and sampling distributions
 
Introduction to Hypothesis Testing
Introduction to Hypothesis TestingIntroduction to Hypothesis Testing
Introduction to Hypothesis Testing
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis
 
Test of significance
Test of significanceTest of significance
Test of significance
 
T distribution
T distributionT distribution
T distribution
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 

Viewers also liked

Confidence intervals for the mean (large samples)
Confidence intervals for the mean (large samples)Confidence intervals for the mean (large samples)
Confidence intervals for the mean (large samples)LennetteClark
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T DistributionDarren Barton
 
Point Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsPoint Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsUniversity of Salerno
 
Statistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsStatistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsUniversity of North Texas
 
Applications of t, f and chi2 distributions
Applications of t, f and chi2 distributionsApplications of t, f and chi2 distributions
Applications of t, f and chi2 distributionsJMB
 
Spearman’s Rank Correlation Coefficient
Spearman’s Rank Correlation CoefficientSpearman’s Rank Correlation Coefficient
Spearman’s Rank Correlation CoefficientSharlaine Ruth
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statisticsRamachandra Barik
 
Power, Effect Sizes, Confidence Intervals, & Academic Integrity
Power, Effect Sizes, Confidence Intervals, & Academic IntegrityPower, Effect Sizes, Confidence Intervals, & Academic Integrity
Power, Effect Sizes, Confidence Intervals, & Academic IntegrityJames Neill
 
GCSE Geography: How And Why To Use Spearman’s Rank
GCSE Geography: How And Why To Use Spearman’s RankGCSE Geography: How And Why To Use Spearman’s Rank
GCSE Geography: How And Why To Use Spearman’s RankMark Cowan
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentationcae_021
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution jundumaug1
 
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...nszakir
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...nszakir
 
Correlation analysis ppt
Correlation analysis pptCorrelation analysis ppt
Correlation analysis pptAnil Mishra
 
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...Pat Barlow
 

Viewers also liked (19)

Confidence intervals for the mean (large samples)
Confidence intervals for the mean (large samples)Confidence intervals for the mean (large samples)
Confidence intervals for the mean (large samples)
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T Distribution
 
Point Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsPoint Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis tests
 
Statistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsStatistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statistics
 
Applications of t, f and chi2 distributions
Applications of t, f and chi2 distributionsApplications of t, f and chi2 distributions
Applications of t, f and chi2 distributions
 
Spearman Rank
Spearman RankSpearman Rank
Spearman Rank
 
biostatistics basic
biostatistics basic biostatistics basic
biostatistics basic
 
Spearman’s Rank Correlation Coefficient
Spearman’s Rank Correlation CoefficientSpearman’s Rank Correlation Coefficient
Spearman’s Rank Correlation Coefficient
 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
 
Power, Effect Sizes, Confidence Intervals, & Academic Integrity
Power, Effect Sizes, Confidence Intervals, & Academic IntegrityPower, Effect Sizes, Confidence Intervals, & Academic Integrity
Power, Effect Sizes, Confidence Intervals, & Academic Integrity
 
GCSE Geography: How And Why To Use Spearman’s Rank
GCSE Geography: How And Why To Use Spearman’s RankGCSE Geography: How And Why To Use Spearman’s Rank
GCSE Geography: How And Why To Use Spearman’s Rank
 
INTRODUCTION TO BIO STATISTICS
INTRODUCTION TO BIO STATISTICS INTRODUCTION TO BIO STATISTICS
INTRODUCTION TO BIO STATISTICS
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
 
STATISTICS: Normal Distribution
STATISTICS: Normal Distribution STATISTICS: Normal Distribution
STATISTICS: Normal Distribution
 
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
 
Correlation analysis ppt
Correlation analysis pptCorrelation analysis ppt
Correlation analysis ppt
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
 
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
What's Significant? Hypothesis Testing, Effect Size, Confidence Intervals, & ...
 

Similar to L10 confidence intervals

Statistik 1 7 estimasi & ci
Statistik 1 7 estimasi & ciStatistik 1 7 estimasi & ci
Statistik 1 7 estimasi & ciSelvin Hadi
 
Estimating population values ppt @ bec doms
Estimating population values ppt @ bec domsEstimating population values ppt @ bec doms
Estimating population values ppt @ bec domsBabasab Patil
 
Statistical Analysis-Confidence Interval_Session 5.pptx
Statistical Analysis-Confidence Interval_Session 5.pptxStatistical Analysis-Confidence Interval_Session 5.pptx
Statistical Analysis-Confidence Interval_Session 5.pptxmaruco1
 
Lesson04_new
Lesson04_newLesson04_new
Lesson04_newshengvn
 
Lesson04_Static11
Lesson04_Static11Lesson04_Static11
Lesson04_Static11thangv
 
Estimation&amp;ci (assignebt )
Estimation&amp;ci (assignebt )Estimation&amp;ci (assignebt )
Estimation&amp;ci (assignebt )Mmedsc Hahm
 
MTH120_Chapter9
MTH120_Chapter9MTH120_Chapter9
MTH120_Chapter9Sida Say
 
Introduction to the t Statistic
Introduction to the t StatisticIntroduction to the t Statistic
Introduction to the t Statisticjasondroesch
 
Biostatics part 7.pdf
Biostatics part 7.pdfBiostatics part 7.pdf
Biostatics part 7.pdfNatiphBasha
 
Lect w4 Lect w3 estimation
Lect w4 Lect w3 estimationLect w4 Lect w3 estimation
Lect w4 Lect w3 estimationRione Drevale
 
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdf
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdf
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdfEmersonRosal1
 
3. Statistical inference_anesthesia.pptx
3.  Statistical inference_anesthesia.pptx3.  Statistical inference_anesthesia.pptx
3. Statistical inference_anesthesia.pptxAbebe334138
 

Similar to L10 confidence intervals (20)

Les5e ppt 06
Les5e ppt 06Les5e ppt 06
Les5e ppt 06
 
Statistik 1 7 estimasi & ci
Statistik 1 7 estimasi & ciStatistik 1 7 estimasi & ci
Statistik 1 7 estimasi & ci
 
Estimating population values ppt @ bec doms
Estimating population values ppt @ bec domsEstimating population values ppt @ bec doms
Estimating population values ppt @ bec doms
 
Estimating a Population Mean
Estimating a Population Mean  Estimating a Population Mean
Estimating a Population Mean
 
Statistical Analysis-Confidence Interval_Session 5.pptx
Statistical Analysis-Confidence Interval_Session 5.pptxStatistical Analysis-Confidence Interval_Session 5.pptx
Statistical Analysis-Confidence Interval_Session 5.pptx
 
Lesson04_new
Lesson04_newLesson04_new
Lesson04_new
 
Lesson04_Static11
Lesson04_Static11Lesson04_Static11
Lesson04_Static11
 
Estimation&amp;ci (assignebt )
Estimation&amp;ci (assignebt )Estimation&amp;ci (assignebt )
Estimation&amp;ci (assignebt )
 
MTH120_Chapter9
MTH120_Chapter9MTH120_Chapter9
MTH120_Chapter9
 
Introduction to the t Statistic
Introduction to the t StatisticIntroduction to the t Statistic
Introduction to the t Statistic
 
A+.pptx
A+.pptxA+.pptx
A+.pptx
 
Biostatics part 7.pdf
Biostatics part 7.pdfBiostatics part 7.pdf
Biostatics part 7.pdf
 
Lect w4 Lect w3 estimation
Lect w4 Lect w3 estimationLect w4 Lect w3 estimation
Lect w4 Lect w3 estimation
 
Chapter09
Chapter09Chapter09
Chapter09
 
Inferential statistics-estimation
Inferential statistics-estimationInferential statistics-estimation
Inferential statistics-estimation
 
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdf
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdflecture13MWF.pdf
lecture13MWF.pdflecture13MWF.pdflecture13MWF.pdf
 
3. Statistical inference_anesthesia.pptx
3.  Statistical inference_anesthesia.pptx3.  Statistical inference_anesthesia.pptx
3. Statistical inference_anesthesia.pptx
 
estimation
estimationestimation
estimation
 
Estimation
EstimationEstimation
Estimation
 
Chapter9
Chapter9Chapter9
Chapter9
 

More from Layal Fahad

Classification of cocci
Classification of cocciClassification of cocci
Classification of cocciLayal Fahad
 
سيمنار بايو كيم (Rna) (1)2
سيمنار بايو كيم (Rna) (1)2سيمنار بايو كيم (Rna) (1)2
سيمنار بايو كيم (Rna) (1)2Layal Fahad
 
Hematoxylin &amp; eosinstaining
Hematoxylin &amp; eosinstainingHematoxylin &amp; eosinstaining
Hematoxylin &amp; eosinstainingLayal Fahad
 
Decalcification
Decalcification  Decalcification
Decalcification Layal Fahad
 
Special stains lecture 1 (1)
Special stains lecture 1   (1)Special stains lecture 1   (1)
Special stains lecture 1 (1)Layal Fahad
 

More from Layal Fahad (6)

Classification of cocci
Classification of cocciClassification of cocci
Classification of cocci
 
Dna (1)1437
Dna (1)1437Dna (1)1437
Dna (1)1437
 
سيمنار بايو كيم (Rna) (1)2
سيمنار بايو كيم (Rna) (1)2سيمنار بايو كيم (Rna) (1)2
سيمنار بايو كيم (Rna) (1)2
 
Hematoxylin &amp; eosinstaining
Hematoxylin &amp; eosinstainingHematoxylin &amp; eosinstaining
Hematoxylin &amp; eosinstaining
 
Decalcification
Decalcification  Decalcification
Decalcification
 
Special stains lecture 1 (1)
Special stains lecture 1   (1)Special stains lecture 1   (1)
Special stains lecture 1 (1)
 

Recently uploaded

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...ggsonu500
 
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service Mohali
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service MohaliCall Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service Mohali
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service MohaliHigh Profile Call Girls Chandigarh Aarushi
 
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknow
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in LucknowRussian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknow
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknowgragteena
 
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...Vip call girls In Chandigarh
 
Basics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxBasics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxAyush Gupta
 
Call Girls Secunderabad 7001305949 all area service COD available Any Time
Call Girls Secunderabad 7001305949 all area service COD available Any TimeCall Girls Secunderabad 7001305949 all area service COD available Any Time
Call Girls Secunderabad 7001305949 all area service COD available Any Timedelhimodelshub1
 
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...delhimodelshub1
 
Call Girls LB Nagar 7001305949 all area service COD available Any Time
Call Girls LB Nagar 7001305949 all area service COD available Any TimeCall Girls LB Nagar 7001305949 all area service COD available Any Time
Call Girls LB Nagar 7001305949 all area service COD available Any Timedelhimodelshub1
 
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...High Profile Call Girls Chandigarh Aarushi
 
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591adityaroy0215
 
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...Call Girls Noida
 
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberEscorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberCall Girls Service Gurgaon
 
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service GoaRussian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goanarwatsonia7
 
Call Girls Kukatpally 7001305949 all area service COD available Any Time
Call Girls Kukatpally 7001305949 all area service COD available Any TimeCall Girls Kukatpally 7001305949 all area service COD available Any Time
Call Girls Kukatpally 7001305949 all area service COD available Any Timedelhimodelshub1
 
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service HyderabadCall Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabaddelhimodelshub1
 

Recently uploaded (20)

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
 
Model Call Girl in Subhash Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Subhash Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Subhash Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Subhash Nagar Delhi reach out to us at 🔝9953056974🔝
 
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service Mohali
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service MohaliCall Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service Mohali
Call Girls in Mohali Surbhi ❤️🍑 9907093804 👄🫦 Independent Escort Service Mohali
 
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknow
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in LucknowRussian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknow
Russian Escorts Aishbagh Road * 9548273370 Naughty Call Girls Service in Lucknow
 
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service DehradunCall Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
 
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
 
Basics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxBasics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptx
 
Call Girls Secunderabad 7001305949 all area service COD available Any Time
Call Girls Secunderabad 7001305949 all area service COD available Any TimeCall Girls Secunderabad 7001305949 all area service COD available Any Time
Call Girls Secunderabad 7001305949 all area service COD available Any Time
 
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service GuwahatiCall Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
 
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
 
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...
College Call Girls Hyderabad Sakshi 9907093804 Independent Escort Service Hyd...
 
Call Girls LB Nagar 7001305949 all area service COD available Any Time
Call Girls LB Nagar 7001305949 all area service COD available Any TimeCall Girls LB Nagar 7001305949 all area service COD available Any Time
Call Girls LB Nagar 7001305949 all area service COD available Any Time
 
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
 
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
 
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...
pOOJA sexy Call Girls In Sector 49,9999965857 Young Female Escorts Service In...
 
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberEscorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
 
Call Girl Lucknow Gauri 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
Call Girl Lucknow Gauri 🔝 8923113531  🔝 🎶 Independent Escort Service LucknowCall Girl Lucknow Gauri 🔝 8923113531  🔝 🎶 Independent Escort Service Lucknow
Call Girl Lucknow Gauri 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
 
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service GoaRussian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
 
Call Girls Kukatpally 7001305949 all area service COD available Any Time
Call Girls Kukatpally 7001305949 all area service COD available Any TimeCall Girls Kukatpally 7001305949 all area service COD available Any Time
Call Girls Kukatpally 7001305949 all area service COD available Any Time
 
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service HyderabadCall Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
 

L10 confidence intervals

  • 1. CONFIDENCE INTERVALS STAT 118 BIOSTATISTICS Lecture 10 Dept. of Medical Laboratories College of Applied Medical Sciences Qassim University March 2016
  • 2. 2 Outline 1. Confidence Intervals for the Mean (Large Samples) 2. Sample size 3. Confidence Intervals for the Mean (Small Samples)
  • 3. 3 1. Confidence Intervals for the Mean of Large Samples • Objectives:  Find a point estimate and a margin of error  Construct and interpret confidence intervals for the population mean  Determine the minimum sample size required when estimating μ (Sample Size Calculation)
  • 4. Point Estimate for Population μ Point Estimate • A single value estimate for a population parameter • Most unbiased point estimate of the population mean μ is the sample mean x Estimate Population Parameter… with Sample Statistic Mean: μ x 4
  • 5. Example: Point Estimate for Population μ A social networking website allows its users to add friends, send messages, and update their personal profiles. The following represents a random sample of the number of friends for 40 users of the website. Find a point estimate of the population mean, µ. (Source: Facebook) 140 105 130 97 80 165 232 110 214 201 122 98 65 88 154 133 121 82 130 211 153 114 58 77 51 247 236 109 126 132 125 149 122 74 59 218 192 90 117 105 5
  • 6. Solution: Point Estimate for Population μ The sample mean of the data is x  x  5232  130.8 n 40 Your point estimate for the mean number of friends for all users of the website is 130.8 friends. 6
  • 7. How confident do we want to be that the interval estimate contains the population mean μ? Interval Estimate Interval estimate • An interval, or range of values, used to estimate a population parameter. Point estimate x 130.8 125 130 135 140 Interval estimate Right endpoint 146.5 ) 145 150 Left endpoint 115.1 ( 115 120 7
  • 8. Level of Confidence Level of confidence c • The probability that the interval estimate contains the population parameter. z z = 0–zc zc Critical values ½(1 – c) c is the area under the standard normal curve between the critical values. ½(1 – c) The remaining area in the tails is 1 – c . c Use the Standard Normal Table to find the corresponding z-scores. 8
  • 9. zc Level of Confidence z zc The corresponding z-scores are ±1.645. • If the level of confidence is 90%, this means that we are 90% confident that the interval contains the population mean μ. c = 0.90 ½(1 – c) = 0.05½(1 – c) = 0.05 –zc = –1.645 z = 0 zc = 1.645 9
  • 10. Sampling Error Sampling error • The difference between the point estimate and the actual population parameter value. • For μ:  the sampling error is the difference x – μ  μ is generally unknown x varies from sample to sample 10
  • 11. Margin of Error Margin of error • The greatest possible distance between the point estimate and the value of the parameter it is estimating for a given level of confidence, c. • Denoted by E. • Sometimes called the maximum error of estimate or error tolerance. n σE  zcσ x  zc When n ≥ 30, the sample standard deviation, s, can be used for σ. 11
  • 12. 12 Example: Finding the Margin of Error Use the social networking website data and a 95% confidence level to find the margin of error for the mean number of friends for all users of the website. Assume the sample standard deviation is about 53.0.
  • 13. zc Solution: Finding the Margin of Error z zcz = 0 • First find the critical values 0.95 0.0250.025 –zc = –1.96 95% of the area under the standard normal curve falls within 1.96 standard deviations of the mean. (You can approximate the distribution of the sample means with a normal curve by the Central Limit Theorem, because n = 40 ≥ 30.) zc = 1.96 13
  • 14. Solution: Finding the Margin of Error 40 14 c c s n n  E  z  z 1.96 53.0 You don’t know σ, but since n ≥ 30, you can use s in place of σ. 16.4 You are 95% confident that the margin of error for the population mean is about 16.4 friends.
  • 15. Confidence Intervals for the Population Mean A c-confidence interval for the population mean μ • • The probability that the confidence interval contains μ is c. n 15  x  E    x  E where E  zc
  • 16. Constructing Confidence Intervals for μ Finding a Confidence Interval for a Population Mean (n ≥ 30 or σ known with a normally distributed population) In Words In Symbols n x  x s  (x x)2 n1 1. Find the sample statistics n and x. 2. Specify σ, if known. Otherwise, if n ≥ 30, find the sample standard deviation s and use it as an estimate for σ. 16
  • 17. Constructing Confidence Intervals for μ 3. Find the critical value zc that corresponds to the given level of confidence. 4. Find the margin of error E. 5. Find the left and right endpoints and form the confidence interval. Use the Standard Normal Table or technology. n E  zc Left endpoint: x  E Right endpoint: x  E Interval: x  E    x  E 17 In Words In Symbols
  • 18. Example: Constructing a Confidence Interval Construct a 95% confidence interval for the mean number of friends for all users of the website. Solution: Recall x 130.8 and E ≈ 16.4 114.4 < μ < 147.2 Left Endpoint: x  E 130.816.4 114.4 18 Right Endpoint: x  E 130.816.4 147.2
  • 19. Solution: Constructing a Confidence Interval 114.4 < μ < 147.2 • With 95% confidence, you can say that the population mean number of friends is between 114.4 and 147.2. 19
  • 20. Example: Constructing a Confidence Interval σ Known A college admissions director wishes to estimate the mean age of all students currently enrolled. In a random sample of 20 students, the mean age is found to be 22.9 years. From past studies, the standard deviation is known to be 1.5 years, and the population is normally distributed. Construct a 90% confidence interval of the population mean age. 20
  • 21. zc Solution: Constructing a Confidence Interval σ Known • First find the critical values z zc c = 0.90 ½(1 – c) = 0.05½(1 – c) = 0.05 –zc = –1.645 z = 0 zc = 1.645 21 zc = 1.645
  • 22. • Margin of error: Solution: Constructing a Confidence Interval σ Known 20 c n  E  z  1.645 1.5  0.6 • Confidence interval: Left Endpoint: x  E  22.9 0.6  22.3 Right Endpoint: x  E  22.9 0.6  23.5 22.3 < μ < 23.5 22
  • 23. Solution: Constructing a Confidence Interval σ Known 22.3 < μ < 23.5 • 23 22.9 ) 22.3 ( 23.5 With 90% confidence, you can say that the mean age of all the students is between 22.3 and 23.5 years. Point estimate xx E x  E
  • 24. 24 Interpreting the Results • μ is a fixed number. It is either in the confidence interval or not. • Incorrect: “There is a 90% probability that the actual mean is in the interval (22.3, 23.5).” • Correct: “If a large number of samples is collected and a confidence interval is created for each sample, approximately 90% of these intervals will contain μ.
  • 25. Interpreting the Results The horizontal segments represent 90% confidence intervals for different samples of the same size. In the long run, 9 of every 10 such intervals will contain μ. μ 25
  • 26. 2. Sample Size • If σ is unknown, you can estimate it using s, provided you have a preliminary sample with at least 30 members. • Given a c-confidence level and a margin of error E, the minimum sample size n needed to estimate the population mean µ is 2 26 E n   zc     
  • 27. 27 Example: Sample Size You want to estimate the mean number of friends for all users of the website. How many users must be included in the sample if you want to be 95% confident that the sample mean is within seven friends of the population mean? Assume the sample standard deviation is about 53.0.
  • 28. zc Solution: Sample Size • First find the critical values zc = 1.96 z zc 0.95 0.0250.025 –zc = –1.96 z = 0 zc = 1.96 28
  • 29. Solution: Sample Size zc = 1.96 σ ≈ s ≈ 53.0 E = 7 2 29 2 E 7  220.23n  zc   1.9653.0          When necessary, round up to obtain a whole number. You should include at least 221 users in your sample.
  • 30. 30 3. Confidence Intervals for the Mean (Small Samples) • Objectives:  Interpret the t-distribution and use a t-distribution table  Construct confidence intervals when n < 30, the population is normally distributed, and σ is unknown
  • 31. The t-Distribution • When the population standard deviation is unknown, the sample size is less than 30, and the random variable x is approximately normally distributed, it follows a t-distribution. t  x   s n • Critical values of t are denoted by tc. 31
  • 32. Properties of the t-Distribution 1. The t-distribution is bell shaped and symmetric about the mean. 2. The t-distribution is a family of curves, each determined by a parameter called the degrees of freedom. The degrees of freedom are the number of free choices left after a sample statistic such as x is calculated. When you use a t-distribution to estimate a population mean, the degrees of freedom are equal to one less than the sample size.  d.f. = n – 1 Degrees of freedom 32
  • 33. Properties of the t-Distribution 3. The total area under a t-curve is 1 or 100%. 4. The mean, median, and mode of the t-distribution are equal to zero. 5. As the degrees of freedom increase, the t-distribution approaches the normal distribution. After 30 d.f., the t- distribution is very close to the standard normal z- distribution. t 0 Standard normal curve The tails in the t- distribution are “thicker” than those in the standard normal distribution. d.f. = 2 d.f. = 5 33
  • 34. Example: Critical Values of t tc = 2.145 Find the critical value tc for a 95% confidence level when the sample size is 15. Solution: d.f. = n – 1 = 15 – 1 = 14 Table 5: t-Distribution 34
  • 35. Solution: Critical Values of t t –tc = –2.145 tc = 2.145 95% of the area under the t-distribution curve with 14 degrees of freedom lies between t = ±2.145. c = 0.95 35
  • 36. Confidence Intervals for the Population Mean A c-confidence interval for the population mean μ • • The probability that the confidence interval contains μ is c. s 36 n x  E    x  E where E  tc
  • 37. Confidence Intervals and t-Distributions 2. Identify the degrees of freedom, the level of confidence c, and the critical value tc. 3. Find the margin of error E. n x  x s  (x x)2 n1 n E  tc s d.f. = n – 1 1. Identify the sample statistics n, x , ands. 37 In Words In Symbols
  • 38. Confidence Intervals and t-Distributions 4. Find the left and right endpoints and form the confidence interval. Left endpoint: x E Right endpoint: x  E Interval: x  E    x  E 38 In Words In Symbols
  • 39. Example: Constructing a Confidence Interval You randomly select 16 coffee shops and measure the temperature of the coffee sold at each. The sample mean temperature is 162.0ºF with a sample standard deviation of 10.0ºF. Find the 95% confidence interval for the population mean temperature. Assume the temperatures are approximately normally distributed. Solution: Use the t-distribution (n < 30, σ is unknown, temperatures are approximately normally distributed). 39
  • 40. Solution: Constructing a Confidence Interval • n =16, x = 162.0 s = 10.0 c = 0.95 • df = n – 1 = 16 – 1 = 15 • Critical Value Table 5: t-Distribution 40 tc = 2.131
  • 41. Solution: Constructing a Confidence Interval • Margin of error: 16 c n E  t  2.131 10  5.3s • Confidence interval: Left Endpoint: x  E 1625.3 156.7 Right Endpoint: x  E 1625.3 167.3 156.7 < μ < 167.3 41
  • 42. Solution: Constructing a Confidence Interval • 156.7 < μ < 167.3 • 42 162.0 ) 156.7 ( 167.3 With 95% confidence, you can say that the population mean temperature of coffee sold is between 156.7ºF and 167.3ºF. Point estimate xx E x  E
  • 43. No Normal or t-Distribution? Is n ≥ 30? Is the population normally, or approximately normally, distributed? Cannot use the normal distribution or the t-distribution. Yes Is σ known? No If σ is unknown, use s instead. c n Use the normal distribution with E  z σ Yes No c n E  z . Use the normal distribution with σ Yes and n – 1 degrees of freedom. c 43 Use the t-distribution with E  t s n
  • 44. Example: Normal or t-Distribution? You randomly select 25 newly constructed houses. The sample mean construction cost is $181,000 and the population standard deviation is $28,000. Assuming construction costs are normally distributed, should you use the normal distribution, the t-distribution, or neither to construct a 95% confidence interval for the population mean construction cost? Solution: Use the normal distribution (the population is normally distributed and the population standard deviation is known) 44