Macroeconomics Olivier Blanchard Copia
Macroeconomics Olivier Blanchard Copia
Macroeconomics Olivier Blanchard Copia
Sampling distribution of the sample proportion and of the difference between two sample proportions
Distribution of the sample proportion Distribution of the difference between two sample proportions
q q
pq pX qX pY qY
p̂ = X̄ → N p, n
p̂X − p̂Y = X̄ − Ȳ → N pX − pY , nX
+ nY
CONFIDENCE INTERVALS IN NORMAL POPULATIONS
i=1 (n−1)S 2
σ2
−→ χ2n σ2
∈ χ2n−1
n n
2 2
X X
(xi − µ) (xi − µ) " #
i=1 i=1
(n−1)s2 (n−1)s2
Iσ2 =
χ2n,1− α
; χ2n, α
Iσ2 = χ2n−1;1− α
; χ2n−1; α
2 2 2 2
Confidence interval for a population proportion and the difference between two population proportions
Confidence interval for the proportion Confidence interval for the difference in proportions
q q
pq pX qX pY qY
p̂ = X̄ → N p, n
p̂X − p̂Y = X̄ − Ȳ → N pX − pY , nX
+ nY
q q h q q i
p̂q̂ p̂q̂ nX +nY nX +nY
Ip = p̂ − z1−α/2 n
; p̂ + z1−α/2 n
IpX −pY = (p̂1 − p̂2 ) − z1−α/2 nX nY
p̂(1 − p̂); (p̂1 − p̂2 ) + z1−α/2 nX nY
p̂(1 − p̂)
PnX Pn Y y
xi + i=1 i
where p̂ = i=1
nX +nY
Test for the population mean (Population variance known) Tests for the population mean (Population variance unknown)
X̄−µ0 X̄−µ0
Test Statistic: Zexp = √σ
∈ N (0, 1) Test Statistic: Texp = S
√
∈ tn−1
n n
H0 : µ = µ0 H0 : µ ≤ µ0 H0 : µ ≥ µ0 H0 : µ = µ0 H0 : µ ≤ µ0 H0 : µ ≥ µ0
H1 : µ 6= µ0 H1 : µ > µ0 H1 : µ < µ0 H1 : µ 6= µ0 H1 : µ > µ0 H1 : µ < µ0
Zexp > z1− α2 Texp > tn−1;1− α2
or Zexp > z1−α Zexp < zα = −z1−α or Texp > tn−1;1−α Texp < tn−1;α = −tn−1;1−α
Zexp < z α2 = −z1− α2 Texp < tn−1; α2 = −tn−1;1− α2
Test for the difference between two populations means (Population variances known)
X̄−Ȳ −d0
Test Statistic: Zexp = r 2 2
∈ N (0, 1)
σ σ
X + nY
nX Y
H0 : µX − µY = d0 H0 : µX − µY ≤ d0 H0 : µX − µY ≥ d0
H1 : µX − µY 6= d0 H1 : µX − µY > d0 H1 : µX − µY < d0
Zexp > z1− α2
or Zexp > z1−α Zexp < zα = −z1−α
Zexp < z α2 = −z1− α2
Test for the difference between two populations means (Population variances unknown but equal)
2 +(n −1)S 2
(nX −1)SX
Test Statistic: Texp = q Ȳ −d0
X̄−
∈ tnX +nY −2 , S 02 = Y Y
1 nX +nY −2
S0 nX
+ n1
Y
H0 : µX − µY = d0 H0 : µX − µY ≤ d0 H0 : µX − µY ≥ d0
H1 : µX − µY 6= d0 H1 : µX − µY > d0 H1 : µX − µY < d0
Texp > tnX +nY −2;1− α2
or Texp < tnX +nY −2;α
Texp > tnX +nY −2;1−α
Texp < tnX +nY −2; α2 = −tnX +nY −2;1−α
= −tnX +nY −2;1− α2
7
Test for the difference between two populations means (Population variances unknown and different)
2
s2 s2
X + nY
nX Y
X̄−Ȳ −d0
Test Statistic: Texp = r ∈ tν where ν ' 2 2
2S 2 S s2 s2
X X Y
nX
+ nY nX nY
Y
nX −1
+ nY −1
H0 : µX − µY = d0 H0 : µX − µY ≤ d0 H0 : µX − µY ≥ d0
H1 : µX − µY 6= d0 H1 : µX − µY > d0 H1 : µX − µY < d0
Texp > tν;1− α2
or Texp > tν;1−α Texp < tν;α = −tν;1−α
Texp < tν; α2 = −tν;1− α2
HYPOTHESIS TESTING: TEST FOR PROPORTIONS
HYPOTHESIS TESTING: TEST FOR THE DIFFERENCE BETWEEN TWO POPULATION PROPORTIONS
H0 : pX = pY H0 : pX ≤ pY H0 : pX ≥ pY
H1 : pX 6= pY H1 : pX > pY H1 : pX < pY
Zexp > z1− α2
or Zexp > z1−α Zexp < zα = −z1−α
Zexp < z α2 = −z1− α2
NON-PARAMETRIC HYPOTHESIS TESTING
k
H0 : µ1 = µ2 = . . . = µk 12
X Ri2
KRUSKAL-WALLIS Hexp = n(n+1)
− 3(n + 1) Hexp > hα
H1 : ∃ i 6= j, µi = µj i=1 ni
|R̄i − r
R̄j | ≥ cij where
n(n+1 1 1
H0 : µi = µj cij = zp 12 ni
+ nj
,
DUNN |R̄i − R̄j |
H1 : µi 6= µj P [Z ≥ zp ] = p,
α
p = k(k−1)
2
χ2exp = ki=1 (ni −np i)
P
GOODNESS H0 : F (x) = F0 (x) npi χ2exp ≥ χ21−α
(Pearson’s χ2 test) H1 : F (x) 6= F0 (x) ∈ χ2k−h−1
H0 : X and Y are ni. n.j 2
Pr Ps (nij − )
INDEPENDENCE independent χ2exp = i=1 j=1
n
ni. n.j
n χ2exp ≥ χ21−α
AND HOMOGENEITY H0 : All r samples ∈ χ2(r−1)(s−1)
are homogeneous