Understanding Sampling Distributions
Understanding Sampling Distributions
Content
1. The Concept of a Sampling Distribution
2
Statistic and Sampling Distributions
Section 5.1 3
Parameters of a
Population Distribution
➢Probability distribution (Chapter 4)
• Mathematical models for the population
• Random variables defined on sample space Ω
• Sample space contains all possible outcomes
4
Parameters of a
Population Distribution
➢ Parameter (population level)
• Numerical quantities that describe probability distributions.
• It is based on all the observations in the population (either
unknown or given by the assumption)
5
Parameters of a
Population Distribution
➢Parameters (discrete distribution)
• Bernoulli: ( )
• Binomial: ( , )
• ……
6
𝐵
𝑒
𝑟
𝑝
𝐵
𝑖
𝑛
𝑛
𝑝
Parameters of a
Population Distribution
➢Parameters (continuous distribution)
2
• Normal: ( , )
• Uniform: U( , )
• ……
7
𝑁
𝜇
𝜎
𝑎
𝑏
Parameters of a
Population Distribution
➢Parameters (any distribution)
• Not limited to parameter that shows up in the
definition
• – mean, – variance, ……
8
𝜇𝜎
Sample Statistics
➢Sample Statistic
• A number computed from a sample
• Is used to make inference about the parameters
of a population
9
Common Statistics & Parameters
Sample Statistic Population Parameter
Mean X µ
Standard
Deviation S σ
Variance S2 σ2
➢ A sample statistic is
a random variable
• E.g., sample mean
+…+
¯ = 1
• : independently and
identically distributed
random variable from
the same population
𝑛
𝑋
12
𝑖
𝑛
𝑋
𝑋
𝑋
Distribution of a Sample Statistics
➢ Sampling distribution:
• Probability distribution of
sample statistics
• Sampling distribution of
sample mean:
✓ List of all possible
✓ [ ¯ , ( ¯ )] pairs
13
𝑝
𝑋
𝑋
𝑃
𝑋
Example: Coin-Tossing = 2
➢ Toss a fair coin once
➢Let be the number of heads observed.
➢A sample of = 2 tosses.
➢ Find the sampling distribution of the sample mean ¯ .
Steps:
• List all the possible values of ¯
• Find the probability of ¯ taking a value
𝑛
𝑋
𝑋
𝑋
𝑋𝑛
Example: Coin-Tossing = 2
{0
1 h h
➢ For = for 1 ≤ ≤ 5
h 1−
1
Sample Mean: ¯ =
➢ ∑
=1
➢ Sampling Distribution ?
𝑖
𝑛
𝑡
𝑎
𝑖
𝑙
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑖
𝑖
𝑋
𝑋
𝑋
𝑛
17
𝑒
𝑎
𝑑
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑝
𝑛
𝑖
𝑛
Example: Coin-Tossing = 5
{0
1 h h
➢ For = for 1 ≤ ≤ 5
h 1−
1
Sample Mean: ¯ =
➢ ∑
=1
∑
Sample Sum: S = ~ ( = 5, )
➢
=1
x_bar p(x_bar)
0 (when (1-p)^5
0.2 (when C(1,5) p (1-p)^4
0.4 (when C(2,5) p^2 (1-p)^3
0.6 (when C(3,5) p^3 (1-p)^2
0.8 (when C(4,5) p^4 (1-p)
𝑖
𝑖
𝑛
𝑡
𝑎
𝑖
𝑙
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑖
𝑖
𝑖
𝑛
𝑋
𝑋
𝑋
𝐵
𝑋
𝑖
𝑛
𝑛
𝑝
1 (when p^5 18
𝑒
𝑎
𝑑
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑖
𝑛
𝑛
x_bar p(x_bar)
0 (when (1-p)^5
0.2 (when C(1,5) p (1-p)^4
0.4 (when C(2,5) p^2 (1-p)^3
0.6 (when C(3,5) p^3 (1-p)^2
0.8 (when C(4,5) p^4 (1-p)
1 (when p^5
➢ = {0
1 h h
⇒ ( )=
h 1−
𝑎
𝑙
𝑙
𝑥
𝑡
𝑎
𝑖
𝑙
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
➢ ( ¯ )= ( )
𝑖
𝑋
19
𝑖
𝑖
𝐸
𝑋
𝑥
𝑝
𝑥
𝑝
𝐸
𝐸
𝑋
𝑋
𝐸
𝑋
𝑝
𝑒
𝑎
𝑑
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
x_bar p(x_bar)
0 (when (1-p)^5
0.2 (when C(1,5) p (1-p)^4
0.4 (when C(2,5) p^2 (1-p)^3
0.6 (when C(3,5) p^3 (1-p)^2
0.8 (when C(4,5) p^4 (1-p)
1 (when p^5
➢ Variance/Standard Deviation of sample mean:
(1 − )
Var( ¯ ) = ( ¯ − ( )) ( ¯ ) =
2
¯
∑
¯
(1 − )
¯ = (¯)= (¯ ) = =
{0
1 h h
➢ =
h 1−
⇒ = (1 − )
( )
( ¯ )=
𝑛
➢
𝑛
𝑎
𝑙
𝑙
𝑥
𝑛
𝑡
𝑎
𝑖
𝑙
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑛
𝑋
𝑖
𝑖
𝜎
𝑠
𝑑
𝑋
𝑉
𝑎
𝑟
𝑋
20
𝑋
𝑋
𝑋
𝑥
𝐸
𝑋
𝑝
𝑥
𝜎
𝑝
𝑝
𝑖
𝑝
𝑝
𝜎
𝑠
𝑠
𝑑
𝑑
𝑋
𝑋
𝑒
𝑎
𝑑
𝑤
𝑖
𝑡
𝑝
𝑟
𝑜
𝑏
𝑝
𝑝
𝑝
Sampling Distribution
The sampling distribution of a sample statistic:
(calculated from a sample of n measurements) is
the probability distribution of the sample statistic.
21
Developing a
Sampling Distribution
➢ Assume there is a population …
➢Random variable, D
A B C
is age of individuals
22
𝑋
Developing a
Sampling Distribution
(continued)
P(y)
.3
.2
.1
0
18 20 22 24 y
Uniform Distribution
23
Developing a
Sampling Distribution
Now consider all possible samples of size =2
Sample Means
16 Sample Means
Distribution
1st 2nd Observation
Obs 18 20 22 24 18
19
18 18 19 20 21 20
20 19 20 21 22 21
22
22 20 21 22 23 23
24
24
25 21 22 23 24
Developing a
Sampling Distribution
Sampling Distribution of Sample Means
18 1/16 ( ¯ ) = ∑ ¯ ( ¯ ) = 21
19 2/16 ¯
(¯)= ( ¯ − ( ¯ )) ( ¯ ) = 1.58
2
∑
20 3/16
21 4/16
¯
22 3/16
23 2/16
24 1/16
𝑎
𝑙
𝑙
𝑥
𝑎
𝑙
𝑙
𝑥
27
𝑠
𝑑
𝑋
𝑥
𝐸
𝑋
𝑝
𝑥
𝐸
𝑋
𝑥
𝑝
𝑥
Comparing the Population with its
Sampling Distribution
Sample Means Distribution
Population
=2
µ X = 21 σ X = 2.236 E ( X ) = 21 σ X = 1.58
P(x)
p( X )
.3 .3
.2 .2
.1 .1
0 0
18 20 22 24 X 18 19 20 21 22 23 24
X
¯ =
√2
𝑋
28
𝜎
𝑛
𝑋
𝜎
Simulating a
Sampling Distribution
29
𝑛
Properties of Sampling Distributions
Section 5.2 30
Point Estimator
➢ Population from Distribution with the unknown parameter (e.g., mean of a
normal)
32
𝑿
Unbiased Estimates
34
𝐴𝜃𝐸
𝐸
𝐵𝜃
𝐴
𝐵
𝜃
𝜃
Efficiency of an Estimate
➢ Statistic and are both unbiased
➢ MVUE
Minimum variance
unbiased estimator
35
𝐴𝐵𝐴
2
• Population has unknown mean μ and variance σ
• Draw many independent samples of size n.
1 n
n∑
Define the estimator, e.g. X̄ = Xi → es mate μ
•
i=1
n
1
For sample # 1, compute x̄(1) =
∑
xi
• n i=1
(1)
• x̄ one “observation” of X̄
• different samples give different observation values.
x̄(2), x̄(3) . . .
(1) (2) (3)
• x̄ ,x̄ , x̄ . . . are the data points for random variable X̄
• Sampling distribution: the distribution of X̄
• the collection of all possible X̄ values and their probability.36
ti
Example: Biased and Unbiased Estimators
In an casino game, there are 3 different possible values for X, that
is -5, 0, 5. Below is a probability distribution of X.
The sampling distribution of the sample mean ¯ and the sample
median for random samples of n = 3
𝑋
𝑀
Example: Biased and Unbiased Estimators
…… …… …… ……
E(X̄) = (-5)(1/729) 1 2
μ = − 5 * + 5 * = 0.556
+ (-3.33)(18/729) 9 9
+ (-1.67)(114/729)
+ ( 0)(288/729)
+ ( 1.67)(228/729)
+ ( 3.33)( 72/729)
+ ( 5)( 8/729) = 0.556
𝑋
Example: Biased and Unbiased Estimators (cont)
∫
2 2
∑
• var(X) = (x − E(X)) p(x), = (x − E(X)) f(x)dx
2 2
• var(X) = E(X ) − (E(X))
∫
2 2
•
E(X ) = x f(x)dx
43