Sampling and Sampling Distributions: 7.1 Definitions
Sampling and Sampling Distributions: 7.1 Definitions
Sampling and Sampling Distributions: 7.1 Definitions
7.1 Definitions
• We need to distinguish the distribution of a random variable, say X̄ from the re-
alization of the random variable (ie. we get data and calculate some sample mean
say X̄ = 4.2)
1
2 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-4
Figure 7.1:
7.1. DEFINITIONS 3
Population Sample
a b cd b c
ef gh i jk l m n gi n
o p q rs t u v w o r u
x y z y
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-5
Figure 7.2:
4 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Note on Statistics
• The value of the statistic will change from sample to sample and we can therefore
think of it as a random variable with it’s own probability distribution.
• X̄ is a random variable
• Repeated sampling and calculation of the resulting statistic will give rise to a dis-
tribution of values for that statistic.
7.1. DEFINITIONS 5
Sampling Distributions
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-10
Figure 7.3:
6 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Chapter Outline
Sampling
Distributions
Figure 7.4:
7.2. IMPORTANT THEOREMS RECALLED 7
= a1 μ1 + . . . an μn + b
X
= ai μi + b
and
X
V [Y ] = V [ ai Xi + b] = a21 V [X1 ] + a22 V [X2 ] + · · · + a2n V [Xn ] .
1X
n
X̄ = Xi
n i=1
1X 1X
n n
1
E[X̄] = E( Xi ) = E[Xi ] = (μ + μ + . . . μ) = μ
n i=1 n i=1 n
1X 1 X
n n
V [X̄] = V ( Xi ) = 2 V (Xi )
n i=1 n i=1
1 X 2 σ2
n
= 2 σ = .
n i=1 n
1. The use of the formulas for expected values and variances of sums of random
variables that we saw in chapter 5.
2. The variance of the sample mean is a decreasing function of the sample size.
1 X
n
s2 = (Xi − X̄)2
n − 1 i=1
µ ¶
σ2
X̄ ∼ N μ, .
n
σ 2
Since X̄ ∼ N(μ, n
) we can ask what transformation can give us to a standard normal
X̄ − μ
Z= .
√σ
n
7.5. EQUATION FOR THE STANDARDIZED SAMPLE MEAN 11
( X − μ) ( X − μ)
Z= =
σX σ
n
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-22
Figure 7.5:
12 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Smaller
sample size
μ x
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-26
Figure 7.6:
Answer
X̄ − μ 29.875 − 30
P (X̄ ≤ 29.875) = P ( √ ≤ √ )
σ/ n .1/ 4
29.875 − 30
= P (Z ≤ √ ) = P (Z ≤ −2.50) = .0062.
.1/ 4
Questions: 7.3.
• We have seen that we can obtain the exact sampling distribution for the sample
mean if the individual Xi are all independent normal variates.
Developing a
Sampling Distribution
Random variable, X,
is age of individuals
Values of X:
18, 20, 22, 24 (years)
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-13
Figure 7.7:
7.5. EQUATION FOR THE STANDARDIZED SAMPLE MEAN 15
Developing a
Sampling Distribution
(continued)
μ=
∑X i
P(x)
N
.25
18 + 20 + 22 + 24
= = 21
4
∑ (X − μ) 2 0
i 18 20 22 24 x
σ= = 2.236 A B C D
N
Uniform Distribution
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-14
Figure 7.8:
16 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Developing a
Sampling Distribution
(continued)
Now consider all possible samples of size n = 2
st nd
1 2 Observation
16 Sample
Obs 18 20 22 24
Means
18 18,18 18,20 18,22 18,24
1st 2nd Observation
20 20,18 20,20 20,22 20,24 Obs 18 20 22 24
22 22,18 22,20 22,22 22,24 18 18 19 20 21
24 24,18 24,20 24,22 24,24 20 19 20 21 22
16 possible samples 22 20 21 22 23
(sampling with
replacement)
24 21 22 23 24
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-15
Figure 7.9:
7.5. EQUATION FOR THE STANDARDIZED SAMPLE MEAN 17
Developing a
Sampling Distribution
(continued)
Sampling Distribution of All Sample Means
Figure 7.10:
18 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Then if n is large:
σ2
X̄ ∼ N(μ, ), approximately for large n
n
X̄ − μ
Z= ∼ N (0, 1), approximately for large n
√σ
n
1. This result holds only for large n and we refer to such results as holding asymp-
totically. In this case we say that X̄ is asymptotically normally distributed
Xi ∼ i.i.d(μ, σ2 )
3. Identically implies that E[Xi ] = μ and V [Xi ] = σ 2 for all i. That is the distribution
of each observation (i = 1, ...n) is the same.
7.5. EQUATION FOR THE STANDARDIZED SAMPLE MEAN 19
the sampling
As the n? distribution
sample
becomes
size gets
almost normal
large
regardless of
enough…
shape of
population
x
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-28
Figure 7.11:
20 CHAPTER 7. SAMPLING AND SAMPLING DISTRIBUTIONS
Example
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-31
Figure 7.12:
• The delay time for inspection of baggage at a border station follows a bimodal
distribution with a mean of μ = 8 minutes and a standard deviation of σ = 6
minutes. A sample of n = 64 from a particular minority group has a mean of
X̄ = 10 minutes.
• Is their evidence that this minority group is being detained longer than usual?
• How likely is it that a sample mean of X̄ ≥ 10 if the population mean is 8?
Answer:
• note from the question that this population from which we are sampling is non
normal
• we know this is from the word bimodal since the normal has one mode
7.6. SAMPLING DISTRIBUTION: DIFFERENCES OF SAMPLE MEANS X̄1 −X̄2 21
Example
(continued)
Solution (continued):
⎛ ⎞
⎜ 7.8 - 8 μX -μ 8.2 - 8 ⎟
P(7.8 < μ X < 8.2) = P⎜ < < ⎟
⎜ 3 σ 3 ⎟
⎝ 36 n 36 ⎠
Stati sti cs for Business and E conomi cs, 6e © 2007 Pearson E ducation, I nc. Chap 7-33
Figure 7.13:
• If the Xi are iid, then by applying (or invoke) the central limit theorem:
10 − 8
P (X̄ ≥ 10) ≈ P (Z ≥ √ )
6/ 64
= P (Z ≥ 2.67) = .0038,
approximately.
σ 22
E[X̄2 [= μ2 V [X̄2 ] =
n2
Since X̄1 and X̄2 are independent:
σ 21 σ 22
V [X̄1 − X̄2 ] = V [X̄1 ] + V [X̄2 ] = +
n1 n2
σ 21 σ 22
X̄1 − X̄2 ∼ N(μ1 − μ2 , + ).
n1 n2
If X1,i are i.i.d. with mean μ1 and variance σ 21 , X2,i are i.i.d . with mean μ2 and
variance σ 22 , and X1 and X2 are independent, then using the central limit theorem,
for large n 1 , and n2
σ 21 σ 22
X̄1 − X̄2 ∼ N(μ1 − μ2 , + ) approximately or asymptotically
n1 n2
than the sample mean IQ of LH students if we take a sample of 100 RH students and 120
LH students?
Answer: Let X1,i be the IQ of the ith RH student and X2,i be the IQ of the ith LH
student.
Since n1 and n2 are both large we can apply the central limit theorem,
σ 21 σ 22
X̄1 − X̄2 ∼ N(μ1 − μ2 , + ) approximately
n1 n2
here:
σ 21 σ 22
μ1 − μ2 = 80 − 80 = 0 and + = 25
n1 n2
So that
p̂−p
Z=q . for large n
p(1−p)
n
7.8. SAMPLING DISTRIBUTION OF SAMPLE PROPORTION: P̂1 − P̂2 25
1. Population 1:
X1
X1 = number of successes, n1 = number in sample 1, so p̂1 = .
n1
Recall
E[p̂1 ] = p1
and
π 1 (1 − π 1 )
V [p̂1 ] = .
n1
2. Population 2:
X2 = number of successes
n2 = number in sample 2
X2
p̂2 =
n2
p2 (1 − p2 )
V [p̂2 ]=
n2
p1 (1 − p1 ) p2 (1 − p2 )
p̂1 − p̂2 ∼ N(p1 − p2 , + ) approximately.
n1 n2