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 (20)

STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation
 
The Standard Normal Distribution
The Standard Normal DistributionThe Standard Normal Distribution
The Standard Normal Distribution
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
T distribution
T distributionT distribution
T distribution
 
Calculating p value
Calculating p valueCalculating p value
Calculating p value
 
Ch4 Confidence Interval
Ch4 Confidence IntervalCh4 Confidence Interval
Ch4 Confidence Interval
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T Distribution
 
Sampling Distribution
Sampling DistributionSampling Distribution
Sampling Distribution
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
P value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsP value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errors
 
Inferential statistics-estimation
Inferential statistics-estimationInferential statistics-estimation
Inferential statistics-estimation
 
Lecture2 hypothesis testing
Lecture2 hypothesis testingLecture2 hypothesis testing
Lecture2 hypothesis testing
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Odds ratio and confidence interval
Odds ratio and confidence intervalOdds ratio and confidence interval
Odds ratio and confidence interval
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
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
 
T distribution | Statistics
T distribution | StatisticsT distribution | Statistics
T distribution | Statistics
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introduction
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 

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
 
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
 
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 (18)

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)
 
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
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
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...
 
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
 
JM Statr session 13, Jan 11
JM Statr session 13, Jan 11JM Statr session 13, Jan 11
JM Statr session 13, Jan 11Ruru Chowdhury
 

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
 
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
 
JM Statr session 13, Jan 11
JM Statr session 13, Jan 11JM Statr session 13, Jan 11
JM Statr session 13, Jan 11
 

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

🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...
🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...
🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...dilpreetentertainmen
 
Kochi call girls Mallu escort girls available 7877702510
Kochi call girls Mallu escort girls available 7877702510Kochi call girls Mallu escort girls available 7877702510
Kochi call girls Mallu escort girls available 7877702510Vipesco
 
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real MeetVip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real MeetAhmedabad Call Girls
 
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetvisakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Chandigarh
 
Call Girl in Indore 8827247818 {Low Price}👉 Meghna Indore Call Girls * DXZ...
Call Girl in Indore 8827247818 {Low Price}👉   Meghna Indore Call Girls  * DXZ...Call Girl in Indore 8827247818 {Low Price}👉   Meghna Indore Call Girls  * DXZ...
Call Girl in Indore 8827247818 {Low Price}👉 Meghna Indore Call Girls * DXZ...mahaiklolahd
 
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...Sheetaleventcompany
 
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali PunjabCall Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali PunjabSheetaleventcompany
 
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort ServiceSexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Servicejaanseema653
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Sheetaleventcompany
 
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Service
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort ServiceSexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Service
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Servicejaanseema653
 
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...mahaiklolahd
 
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...Escorts In Kolkata
 
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in Lahore
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in LahoreBest Lahore Escorts 😮‍💨03250114445 || VIP escorts in Lahore
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in LahoreDeny Daniel
 
Escorts Lahore || 🔞 03274100048 || Escort service in Lahore
Escorts Lahore || 🔞 03274100048 || Escort service in LahoreEscorts Lahore || 🔞 03274100048 || Escort service in Lahore
Escorts Lahore || 🔞 03274100048 || Escort service in LahoreDeny Daniel
 
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Service
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort ServiceSexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Service
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Servicejaanseema653
 
9316020077📞Majorda Beach Call Girls Numbers, Call Girls Whatsapp Numbers Ma...
9316020077📞Majorda Beach Call Girls  Numbers, Call Girls  Whatsapp Numbers Ma...9316020077📞Majorda Beach Call Girls  Numbers, Call Girls  Whatsapp Numbers Ma...
9316020077📞Majorda Beach Call Girls Numbers, Call Girls Whatsapp Numbers Ma...Goa cutee sexy top girl
 
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlKolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlonly4webmaster01
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Chandigarh
 
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real Service
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real ServiceAECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real Service
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real ServiceAhmedabad Call Girls
 

Recently uploaded (20)

Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call GirlsPunjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
Punjab Call Girls Contact Number +919053,900,678 Punjab Call Girls
 
🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...
🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...
🍑👄Ludhiana Escorts Service☎️98157-77685🍑👄 Call Girl service in Ludhiana☎️Ludh...
 
Kochi call girls Mallu escort girls available 7877702510
Kochi call girls Mallu escort girls available 7877702510Kochi call girls Mallu escort girls available 7877702510
Kochi call girls Mallu escort girls available 7877702510
 
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real MeetVip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
Vip Call Girls Makarba 👙 6367187148 👙 Genuine WhatsApp Number for Real Meet
 
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetvisakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
visakhapatnam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Call Girl in Indore 8827247818 {Low Price}👉 Meghna Indore Call Girls * DXZ...
Call Girl in Indore 8827247818 {Low Price}👉   Meghna Indore Call Girls  * DXZ...Call Girl in Indore 8827247818 {Low Price}👉   Meghna Indore Call Girls  * DXZ...
Call Girl in Indore 8827247818 {Low Price}👉 Meghna Indore Call Girls * DXZ...
 
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
Gorgeous Call Girls In Pune {9xx000xx09} ❤️VVIP ANKITA Call Girl in Pune Maha...
 
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali PunjabCall Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
Call Girls Service Mohali {7435815124} ❤️VVIP PALAK Call Girl in Mohali Punjab
 
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort ServiceSexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
Sexy Call Girl Dharmapuri Arshi 💚9058824046💚 Dharmapuri Escort Service
 
Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024Top 20 Famous Indian Female Pornstars Name List 2024
Top 20 Famous Indian Female Pornstars Name List 2024
 
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Service
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort ServiceSexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Service
Sexy Call Girl Villupuram Arshi 💚9058824046💚 Villupuram Escort Service
 
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
Call Girl in Bangalore 9632137771 {LowPrice} ❤️ (Navya) Bangalore Call Girls ...
 
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
Ludhiana Call Girls Service Just Call 6367187148 Top Class Call Girl Service ...
 
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in Lahore
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in LahoreBest Lahore Escorts 😮‍💨03250114445 || VIP escorts in Lahore
Best Lahore Escorts 😮‍💨03250114445 || VIP escorts in Lahore
 
Escorts Lahore || 🔞 03274100048 || Escort service in Lahore
Escorts Lahore || 🔞 03274100048 || Escort service in LahoreEscorts Lahore || 🔞 03274100048 || Escort service in Lahore
Escorts Lahore || 🔞 03274100048 || Escort service in Lahore
 
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Service
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort ServiceSexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Service
Sexy Call Girl Palani Arshi 💚9058824046💚 Palani Escort Service
 
9316020077📞Majorda Beach Call Girls Numbers, Call Girls Whatsapp Numbers Ma...
9316020077📞Majorda Beach Call Girls  Numbers, Call Girls  Whatsapp Numbers Ma...9316020077📞Majorda Beach Call Girls  Numbers, Call Girls  Whatsapp Numbers Ma...
9316020077📞Majorda Beach Call Girls Numbers, Call Girls Whatsapp Numbers Ma...
 
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girlKolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
Kolkata Call Girls Miss Inaaya ❤️ at @30% discount Everyday Call girl
 
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetErnakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Ernakulam Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real Service
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real ServiceAECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real Service
AECS Layout Escorts (Bangalore) 9352852248 Women seeking Men Real Service
 

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