Chapter 2 & 3-Review of Probability and Statistics
Chapter 2 & 3-Review of Probability and Statistics
Chapter 2 & 3-Review of Probability and Statistics
Chapters 2 and 3
Review of Probability and
Statistics
Percentile
Blank Standard 50%
Average Deviation 10% 25% 40% (median) 60% 75% 90%
Student– 19.6 1.9 17.3 18.6 19.3 19.7 20.1 20.9 21.9
teacher ratio
Test score 654.2 19.1 630.4 640.0 649.1 654.5 659.4 666.7 679.1
= 657.4 − 650.0
= 7.4
ഥ𝒔 − 𝒀
𝒀 ഥ𝒍 ഥ𝒔 − 𝒀
𝒀 ഥ𝒍
𝒕= =
𝑺𝑬(𝒀ഥ𝒔 − 𝒀
ഥ𝒍)
𝒔𝟐𝒔 𝒔𝟐𝒍
+
𝒏𝒔 𝒏𝒍
Where:
- s and l refer to “small” and “large” STR (student-teacher ratio) districts
- 𝑆𝐸(𝑌ത𝑠 − 𝑌ത𝑙 ) is the “standard error” of 𝑌ത𝑠 − 𝑌ത𝑙
1
- 𝑠𝑠2 = σ𝑛𝑖=1
𝑠
(𝑌𝑖 − 𝑌ത𝑠 )2 (𝑒𝑡𝑐. )
𝑛𝑠 −1
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
2. Hypothesis testing (2 of 2)
Compute the difference-in-means t-statistic:
Size Ῡ s2 n
small 657.4 19.4 238
large 650.0 17.9 182
Ys − Yl 657.4 − 650.0 7.4
t= = = = 4.05
ss2
+ sl2 19.42
+ 17.92 1.83
ns nl 238 182
(Ῡs – Ῡl ) ± t* × SE(Ῡs – Ῡl )
= 7.4 ± 1.96 × 1.83 = (3.8, 11.0)
→ We are sure at 95% that the difference between the means of the
two groups will fall between 3.8 and 11.0
Two equivalent statements:
1. The 95% confidence interval for Δ doesn’t include 0
2. The hypothesis that Δ = 0 is rejected at the 5% level
➔ There is a difference between the means of the two groups
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
What comes next…
• The mechanics of estimation, hypothesis testing, and confidence
intervals should be familiar
• These concepts extend directly to regression and its variants
• Before turning to regression, however, we will review some of
the underlying theory of estimation, hypothesis testing, and
confidence intervals:
– Why do these procedures work, and why use these rather than others?
– We will review the intellectual foundations of statistics and econometrics
Population
• The group or collection of all possible entities of interest (school
districts)
• We will think of populations as infinitely large (∞ is an
approximation to “very big”)
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
(a) Population, random variable... and
distribution
Sample
• A portion or part of the population, used to represent the
population in a research study
• The goal is to use the results obtained from the sample to help
answer questions about the population
Sample space
• The set of all possible outcomes
𝑬 𝒀 = 𝝁𝒚 = 𝒚𝟏 𝒑𝟏 + 𝒚𝟐 𝒑𝟐 + ⋯ + 𝒚𝒌 𝒑𝒌 = 𝒚𝒊 𝒑𝒊
𝒊=𝟏
𝐸 𝑀 = 0.35
The units of the standard deviation are the same as the units of Y
E (Y − Y )
3
skewness =
3
Y
E (Y − Y )
4
kurtosis =
4
Y
So is the correlation…
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
The correlation coefficient is defined in
terms of the covariance:
cov( X , Z ) XZ
corr( X , Z ) = = = rXZ
var( X ) var( Z ) X Z
• –1 ≤ corr(X,Z) ≤ 1
• corr(X,Z) = 1 mean perfect positive linear association
• corr(X,Z) = –1 means perfect negative linear association
• corr(X,Z) = 0 means no linear association
Suppose that half the time you write your term paper in the
school library, which has a new wireless network (A = 1);
otherwise, you write it in your room, which has an old wireless
network (A = 0)
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
(c) Conditional distributions and
conditional means (Example)
• In general:
𝐏𝐫(𝒀 = 𝒚, 𝑿 = 𝒙)
𝐏𝐫 𝒀 = 𝒚|𝑿 = 𝒙 =
𝐏𝐫(𝑿 = 𝒙)
𝑬 𝒀|𝑿 = 𝒙 = 𝒚𝒊 × 𝑷𝒓(𝒀 = 𝒚𝒊 |𝑿 = 𝒙)
𝒊=𝟏
Y2
var(Y ) =
n
Implications:
1. Ῡ is an unbiased estimator of μY (that is, E(Ῡ ) = μY)
2. var(Ῡ ) is inversely proportional to n
1. the spread of the sampling distribution is proportional to 1/ n
2. Thus the sampling uncertainty associated with Y is proportional
to 1/ n (larger samples, less uncertainty, but square-root law)
ഥ is called
The standard deviation of the sampling distribution 𝒀
the standard error of the mean and is denoted 𝝈𝒀ഥ
𝝈𝒀ഥ < 𝝈𝒀 : As the sample gets larger, we do not expect as much
spread in the sample means because larger observations will
offset smaller observations
Copyright © 2019 Pearson Education Ltd. All Rights Reserved.
Things we want to know about the sampling
distribution:
• What is the mean of Ῡ ?
– If E(Ῡ ) = 𝜇𝑌 ,then Ῡ is an unbiased estimator of μ
Hypothesis Testing
The hypothesis testing problem (for the mean): make a provisional
decision based on the evidence at hand whether a null hypothesis is
true, or instead that some alternative hypothesis is true. That is, test
– H0: E(Y ) = μY,0 vs. H1: E(Y ) > μY,0 (1-sided, >)
– H0: E(Y ) = μY,0 vs. H1: E(Y ) < μY,0 (1-sided, <)
– H0: E(Y ) = μY,0 vs. H1: E(Y ) ≠ μY,0 (2-sided)
Rejection
Right-tail test:
area (𝛼) 𝐻0 : 𝐸 𝑌 = 𝜇𝑌
𝐻1 : 𝐸 𝑌 > 𝜇𝑌
Two-tail
Confidence Intervals
• A 95% confidence interval for μY is an interval that contains the true
value of μY in 95% of repeated samples
• Digression: What is random here? The values of Y1,...,Yn and thus any
functions of them – including the confidence interval. The confidence
interval will differ from one sample to the next. The population
parameter, μY, is not random; we just don’t know it