Understanding Sampling Distributions
Understanding Sampling Distributions
Sampling Distribution
Module Code & Module Title Slide Title Slide <2> of 23 SLIDE 2
Learning Outcomes
Module Code & Module Title Slide Title Slide <3> of 23 SLIDE 3
Key Terms you must be able to use
If you have mastered this topic, you should be able to use the following
terms correctly in your in-course assessments and final exam:
➢ Sampling distribution
➢ Population
➢ Sample
➢ Mean
➢ Standard deviation
➢ Proportion
➢ Standard error
➢ Central limit theorem
➢ Statistical inference
Module Code & Module Title Slide Title Slide <#> of 9 SLIDE 5
Sampling Distribution
▪Introduction
➢ Is the probability distribution of all possible sample
means of n items drawn from a population.
➢ Such a distribution exists not only for the mean but for
any point estimate.
➢ Properties
➢ Very close to being normally distributed
➢ The mean of the sampling is the same as the population
mean.
➢ It has a standard deviation which is called the standard
error.
Module Code & Module Title Slide Title Slide <6> of 23 SLIDE 6
▪Standard Error
➢ The standard deviation of the sampling distribution.
➢ It measures the extent to which we expect the means from the
different samples to vary because of the chance error in the
sampling process.
Module Code & Module Title Slide Title Slide <7> of 23 SLIDE 7
Notation used:
Sample Population
Size n N
Mean
Standard deviation s
Variance
Proportion p
Module Code & Module Title Slide Title Slide <8> of 23 SLIDE 8
Required to know how to:
➢ proportion
➢ With finite population size
➢ With infinite population size
Module Code & Module Title Slide Title Slide <9> of 23 SLIDE 9
Standard error of the Population finite Population infinite
Mean
N − n
- Known population
standard deviation n N − 1 n
- Unknown population s N − n s
standard deviation
n N − 1 n
p(1 − p) N − n
Proportion
p (1 − p )
n N − 1 n
Module Code & Module Title Slide Title Slide <11> of 23 SLIDE 11
Standard error of the Population finite Population infinite
Mean
N − n
- Known population
standard deviation n N − 1 n
- Unknown population s N − n s
standard deviation
n N − 1 n
p(1 − p) N − n
Proportion
p (1 − p )
n N − 1 n
Module Code & Module Title Slide Title Slide <13> of 23 SLIDE 13
Standard error of the Population finite Population infinite
Mean
N − n
- Known population
standard deviation n N − 1 n
- Unknown population s N − n s
standard deviation
n N − 1 n
p(1 − p) N − n
Proportion
p (1 − p )
n N − 1 n
Module Code & Module Title Slide Title Slide <15> of 23 SLIDE 15
Standard error of the Population finite Population infinite
Mean
N − n
- Known population
standard deviation n N − 1 n
- Unknown population s N − n s
standard deviation
n N − 1 n
p(1 − p) N − n
Proportion
p (1 − p )
n N − 1 n
Module Code & Module Title Slide Title Slide <17> of 23 SLIDE 17
Standard error of the Population finite Population infinite
Mean
N − n
- Known population
standard deviation n N − 1 n
- Unknown population s N − n s
standard deviation
n N − 1 n
p(1 − p) N − n
Proportion
p (1 − p )
n N − 1 n
Module Code & Module Title Slide Title Slide <19> of 23 SLIDE 19
▪Statistical inference
➢ Statistical inference can be defined as the
process by which conclusions are drawn about
some measure or attributes of a population
based upon analysis of sample data.
➢ Statistical inference can be divided into two
types
➢Estimation
➢Hypothesis testing
Module Code & Module Title Slide Title Slide <20> of 23 SLIDE 20
Learning Outcomes
▪Part B: Estimation
➢ At the end of this section, you should be
able to:
➢ Make a confidence interval estimate of a
population mean.
➢ Make a confidence interval estimate of a
population proportion,
➢ Determine the appropriate sample size for
interval estimation of means and proportions.
Module Code & Module Title Slide Title Slide <21> of 23 SLIDE 21
Key Terms you must be able to use
➢ Confidence intervals
➢ Lower confidence limit
➢ Upper confidence limit
➢ Critical value
➢ Normal distribution
➢ t-distribution
➢ Degree of freedom
➢ Margin of error
▪Introduction
➢ Deals with the estimation of population
characteristics from sample statistics
➢ The distribution of sample means follows a
normal curve.
Module Code & Module Title Slide Title Slide <23> of 23 SLIDE 23
Estimation
• Interval estimator
Mean μ x
Proportion π p
Module Code & Module Title Slide Title Slide <26> of 23 SLIDE 26
• Confidence intervals:
➢ the mean of your estimate plus and minus the variation in that
estimate.
➢ range of values that you expect your estimate to fall between a
certain percentage of the time if you run your experiment again or
re-sample the population in the same way
➢ Is expressed as a % whereby a population mean lies between an
upper and lower interval.
Module Code & Module Title Slide Title Slide <#> of 9 SLIDE 28
Graphically, the actual location of the population
mean, 𝜇
1-𝛼
LCL UCL
𝛼ൗ 𝛼ൗ
2 2
Population Population
Mean Proportion
σ Known σ Unknown
Module Code & Module Title Slide Title Slide <30> of 23 SLIDE 30
▪Confidence interval for (σ known)
➢ Assumptions
➢ Population standard deviation σ is known
➢ Population is normally distributed
➢ If population is not normal, use large sample
➢ Confidence interval estimate
σ
x z α/2
n
Module Code & Module Title Slide Title Slide <31> of 23 SLIDE 31
➢ Commonly used confidence levels are 90%, 95%, and 99%
Confidence
Confidence Level 𝒁𝜶ൗ
Coefficient, 𝟏 − 𝜶 𝟐
Module Code & Module Title Slide Title Slide <#> of 9 SLIDE 32
Example 4.5
Module Code & Module Title Slide Title Slide <33> of 23 SLIDE 33
➢95% confidence interval:
σ
x z /2
n
= 2.20 .2068
Module Code & Module Title Slide Title Slide <34> of 23 SLIDE 34
➢ Interpretation
➢ We are 95% confident that the true mean resistance is between 1.9932 and
2.4068 ohms
➢ Although the true mean may or may not be in this interval, 95% of intervals
formed in this manner will contain the true mean
➢ An incorrect interpretation is that there is 95% probability that this interval
contains the true population mean.
(This interval either does or does not contain the true mean, there is no probability for a
single interval)
Module Code & Module Title Slide Title Slide <35> of 23 SLIDE 35
Example 4.7
Module Code & Module Title Slide Title Slide <36> of 23 SLIDE 36
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
Module Code & Module Title Slide Title Slide <37> of 23 SLIDE 37
▪ Confidence interval for μ (σ Unknown)
➢ If the population standard deviation σ is unknown, we can
substitute the sample standard deviation, s
➢ This introduces extra uncertainty, since s is variable from
sample to sample
➢ So we use the t distribution instead of the normal
distribution
Module Code & Module Title Slide Title Slide <38> of 23 SLIDE 38
➢Assumptions
➢Population standard deviation is unknown
➢Population is normally distributed
➢If population is not normal, use large sample
➢Use Student’s t Distribution
➢Confidence Interval Estimate
s
x t /2
n
Module Code & Module Title Slide Title Slide <39> of 23 SLIDE 39
➢ The t is a family of distributions
➢ The t value depends on degrees of freedom
(d.f.)
➢ Number of observations that are free to vary
after sample mean has been calculated
d.f. = n - 1
Module Code & Module Title Slide Title Slide <40> of 23 SLIDE 40
Example 4.8
➢ A random sample of n = 25 has x = 50 and
s = 8. Form a 95% confidence interval for μ.
Module Code & Module Title Slide Title Slide <41> of 23 SLIDE 41
➢ Approximation for Large samples
➢ Since t approaches z as the sample size increases,
an approximation is sometimes used when n 30:
Technically Approximation
correct for large n
s s
x t /2 x z /2
n n
Module Code & Module Title Slide Title Slide <42> of 23 SLIDE 42
➢Student’s t-distribution
➢ Note: t z as n increases
Module Code & Module Title Slide Title Slide <43> of 23 SLIDE 43
Example 4.9
A random sample of 120 measurements taken from a normal population gave the
following data:
n = 120, , s = 1.44 x = 1008
Find
(a) a 97% confidence interval
(b) a 99% confidence interval
Module Code & Module Title Slide Title Slide <44> of 23 SLIDE 44
➢ Margin of Error (e): the amount added and
subtracted to the point estimate to form the
confidence interval
Example: Margin of error for estimating μ, σ known:
σ σ
x z /2 e = z /2
n n
Module Code & Module Title Slide Title Slide <45> of 23 SLIDE 45
➢ Determining Sample Size
➢ The required sample size can be found to reach a
desired margin of error (e) and level of confidence (1 - )
➢ Required sample size, σ known:
2
σ z /2 σ
2 2
z
n= /2
=
e
2
e
Module Code & Module Title Slide Title Slide <46> of 23 SLIDE 46
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
Module Code & Module Title Slide Title Slide <47> of 23 SLIDE 47
▪ Confidence Intervals for the Population
Proportion, p
➢ An interval estimate for the population proportion ( π)
can be calculated by adding an allowance for
uncertainty to the sample proportion ( p )
Module Code & Module Title Slide Title Slide <48> of 23 SLIDE 48
▪ Confidence intervals endpoints
➢Upper and lower confidence limits for the
population proportion are calculated with
the formula
p (1 − p )
p Z
2
n
where
➢z is the standard normal value for the level of
confidence desired
➢p is the sample proportion
➢n is the sample size
Module Code & Module Title Slide Title Slide <49> of 23 SLIDE 49
Example 4.12
➢ Example:
➢ A random sample of 100 people shows that 25 are
left-handed.
➢ Form a 95% confidence interval for the true
proportion of left-handers
Module Code & Module Title Slide Title Slide <50> of 23 SLIDE 50
1. p = 25/100 = 0.25
0.25(1 − 0.25)
2. SE = = 0.0433
100
Module Code & Module Title Slide Title Slide <51> of 23 SLIDE 51
➢ Interpretation
➢We are 95% confident that the true
percentage of left-handers in the population
is between 16.51% and 33.49%.
Module Code & Module Title Slide Title Slide <52> of 23 SLIDE 52
▪ Changing the sample size
➢Increases in the sample size reduce the
width of the confidence interval.
➢ Example:
➢If the sample size in the above example is doubled
to 200, and if 50 are left-handed in the sample,
then the interval is still centered at .25, but the
width shrinks to
.19 …… .31
Module Code & Module Title Slide Title Slide <53> of 23 SLIDE 53
➢ Finding the required sample size for proportion
problems
Module Code & Module Title Slide Title Slide <#> of 23 SLIDE 54
Example 4.13
Module Code & Module Title Slide Title Slide <55> of 23 SLIDE 55
For 95% confidence, use Z = 1.96
e = .03
p = .12, so use this to estimate p
So use n = 451
Module Code & Module Title Slide Title Slide <#> of 23 SLIDE 56
What we will cover next
▪ Hypothesis Testing