Docsity

Random Samples, Lecture Notes - Mathematics, Study notes of Probability and Statistics

Toggle sidebar
bg1
Lecture Notes 4
1 Random Samples
Let X1, . . . , Xn∼F. A statistic is any function T=g(X1, . . . , Xn). Recall that the sample
mean is
Xn=1
n
n
X
i=1
Xi
and sample variance is
S2
n=1
n−1
n
X
i=1
(Xi−Xn)2.
Let µ=E(Xi) and σ2=Var(Xi). Recall that
E(Xn) = µ, Var(Xn) = σ2
n,E(S2
n) = σ2.
Theorem 1 If X1, . . . , Xn∼N(µ, σ 2)then Xn∼N(µ, σ2/n).
Proof. We know that
MXi(s) = eµs+σ2s2/2.
So,
MXn(t) = E(etXn) = E(et
nPn
i=1 Xi)
= (EetXi/n)n= (MXi(t/n))n=e(µt/n)+σ2t2/(2n2)n
= exp (µt +
σ2
nt2
2)
which is the mgf of a N(µ, σ2/n).
Example 2 (Example 5.2.10). Let Z1, . . . , Zn∼Cauchy(0,1). Then Zn∼Cauchy(0,1).
Lemma 3 If X1, . . . , Xn∼N(µ, σ 2)then
Tn=Xn−µ
S/√n∼tn−1≈N(0,1).
Let X(1), . . . , X(n)denoted the ordered values:
X(1) ≤X(2) ≤ ··· ≤ X(n).
Then X(1), . . . , X(n)are called the order statistics.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Random Samples, Lecture Notes - Mathematics and more Study notes Probability and Statistics in PDF only on Docsity!

Lecture Notes 4

1 Random Samples

Let X 1 ,... , Xn ∼ F. A statistic is any function T = g(X 1 ,... , Xn). Recall that the sample mean is

Xn =

n

∑^ n

i=

Xi

and sample variance is

S n^2 =

n − 1

∑^ n

i=

(Xi − Xn)^2.

Let μ = E(Xi) and σ^2 = Var(Xi). Recall that

E(Xn) = μ, Var(Xn) =

σ^2 n

, E(S n^2 ) = σ^2.

Theorem 1 If X 1 ,... , Xn ∼ N (μ, σ^2 ) then Xn ∼ N (μ, σ^2 /n).

Proof. We know that MXi (s) = eμs+σ

(^2) s (^2) / 2 .

So,

MXn (t) = E(etXn^ ) = E(e

tn^ Pni=1 Xi )

= (EetXi/n)n^ = (MXi (t/n))n^ =

e(μt/n)+σ

(^2) t (^2) /(2n (^2) )^ )n

= exp

μt +

σ^2 n t

2 2

which is the mgf of a N (μ, σ^2 /n). 

Example 2 (Example 5.2.10). Let Z 1 ,... , Zn ∼ Cauchy(0, 1). Then Zn ∼ Cauchy(0, 1).

Lemma 3 If X 1 ,... , Xn ∼ N (μ, σ^2 ) then

Tn =

Xn − μ S/

n

∼ tn− 1 ≈ N (0, 1).

Let X(1),... , X(n) denoted the ordered values:

X(1) ≤ X(2) ≤ · · · ≤ X(n).

Then X(1),... , X(n) are called the order statistics.

2 Convergence

Let X 1 , X 2 ,... be a sequence of random variables and let X be another random variable. Let Fn denote the cdf of Xn and let F denote the cdf of X.

  1. Xn converges almost surely to X, written Xn a.s. → X, if, for every  > 0,

P( lim n→∞

|Xn − X| < ) = 1. (1)

  1. Xn converges to X in probability, written Xn P → X, if, for every  > 0,

P(|Xn − X| > ) → 0 (2)

as n → ∞. In other words, Xn − X = oP (1).

  1. Xn converges to X in quadratic mean (also called convergence in L 2 ), written Xn qm → X, if E(Xn − X)^2 → 0 (3) as n → ∞.
  2. Xn converges to X in distribution, written Xn X, if

lim n→∞ Fn(t) = F (t) (4)

at all t for which F is continuous.

Convergence to a Constant. A random variable X has a point mass distribution if there exists a constant c such that P(X = c) = 1. The distribution for X is denoted by δc

and we write X ∼ δc. If Xn P → δc then we also write Xn P → c. Similarly for the other types of convergence.

Theorem 4 Xn as → X if and only if, for every  > 0 ,

lim n→∞ P(sup m≥n

|Xm − X| ≤ ) = 1.

Example 5 (Example 5.5.8). This example shows that convergence in probability does not imply almost sure convergence. Let S = [0, 1]. Let P be uniform on [0, 1]. We draw S ∼ P. Let X(s) = s and let

X 1 = s + I0,1, X 2 = s + I0, 1 /2, X 3 = s + I1/ 2 ,1 X 4 = s + I0, 1 /3, X 5 = s + I1/ 3 , 2 /3, X 6 = s + I2/ 3 ,1

etc. Then Xn P → X. But, for each s, Xn(s) does not converge to X(s). Hence, Xn does not converge almost surely to X.

Also,

F (x − ) = P(X ≤ x − ) = P(X ≤ x − , Xn ≤ x) + P(X ≤ x − , Xn > x) ≤ Fn(x) + P(|Xn − X| > ).

Hence,

F (x − ) − P(|Xn − X| > ) ≤ Fn(x) ≤ F (x + ) + P(|Xn − X| > ).

Take the limit as n → ∞ to conclude that

F (x − ) ≤ lim inf n→∞ Fn(x) ≤ lim sup n→∞

Fn(x) ≤ F (x + ).

This holds for all  > 0. Take the limit as  → 0 and use the fact that F is continuous at x and conclude that limn Fn(x) = F (x).

Proof of (c). Fix  > 0. Then,

P(|Xn − c| > ) = P(Xn < c − ) + P(Xn > c + ) ≤ P(Xn ≤ c − ) + P(Xn > c + ) = Fn(c − ) + 1 − Fn(c + ) → F (c − ) + 1 − F (c + ) = 0 + 1 − 1 = 0.

Proof of (d). This follows from Theorem 4.

Let us now show that the reverse implications do not hold.

Convergence in probability does not imply convergence in quadratic mean. Let U ∼ Unif(0, 1) and let Xn =

nI(0, 1 /n)(U ). Then P(|Xn| > ) = P(

nI(0, 1 /n)(U ) > ) = P(0 ≤ U < 1 /n) =

1 /n → 0. Hence, Xn P → 0. But E(X n^2 ) = n

∫ (^1) /n 0 du^ = 1 for all^ n^ so^ Xn^ does not converge in quadratic mean.

Convergence in distribution does not imply convergence in probability. Let X ∼ N (0, 1). Let Xn = −X for n = 1, 2 , 3 ,.. .; hence Xn ∼ N (0, 1). Xn has the same distribution function as X for all n so, trivially, limn Fn(x) = F (x) for all x. Therefore, Xn X. But P(|Xn − X| > ) = P(| 2 X| > ) = P(|X| > /2) 6 = 0. So Xn does not converge to X in probability. 

The relationships between the types of convergence can be summarized as follows:

q.m.

a.s. → prob → distribution

Example 8 One might conjecture that if Xn →P b, then E(Xn) → b. This is not true. Let Xn be a random variable defined by P(Xn = n^2 ) = 1/n and P(Xn = 0) = 1 − (1/n).

Now, P(|Xn| < ) = P(Xn = 0) = 1 − (1/n) → 1. Hence, Xn P → 0. However, E(Xn) = [n^2 × (1/n)] + [0 × (1 − (1/n))] = n. Thus, E(Xn) → ∞.

Example 9 Let X 1 ,... , Xn ∼ Uniform(0, 1). Let X(n) = maxi Xi. First we claim that

X(n) →^ P 1. This follows since

P(|X(n) − 1 | > ) = P(X(n) ≤ 1 − ) =

i

P(Xi ≤ 1 − ) = (1 − )n^ → 0.

Also P(n(1 − X(n)) ≤ t) = P(X(n) ≤ 1 − (t/n)) = (1 − t/n)n^ → e−t.

So n(1 − X(n)) Exp(1).

Some convergence properties are preserved under transformations.

Theorem 10 Let Xn, X, Yn, Y be random variables. Let g be a continuous function.

(a) If Xn P → X and Yn P → Y , then Xn + Yn P → X + Y. (b) If Xn

qm → X and Yn

qm → Y , then Xn + Yn

qm → X + Y. (c) If Xn X and Yn c, then Xn + Yn X + c. (d) If Xn P → X and Yn P → Y , then XnYn P → XY. (e) If Xn X and Yn c, then XnYn cX. (f ) If Xn →P X, then g(Xn) →P g(X). (g) If Xn X, then g(Xn) g(X).

  • Parts (c) and (e) are know as Slutzky’s theorem
  • Parts (f) and (g) are known as The Continuous Mapping Theorem.
  • It is worth noting that Xn X and Yn Y does not in general imply that Xn +Yn X + Y.

3 The Law of Large Numbers

The law of large numbers (LLN) says that the mean of a large sample is close to the mean of the distribution. For example, the proportion of heads of a large number of tosses of a fair coin is expected to be close to 1/2. We now make this more precise. Let X 1 , X 2 ,... be an iid sample, let μ = E(X 1 ) and σ^2 = Var(X 1 ). Recall that the sample mean is defined as Xn = n−^1

∑n i=1 Xi^ and that^ E(Xn) =^ μ^ and^ Var(Xn) =^ σ

(^2) /n.

A consequence of the CLT is that

Xn − μ = OP

n

In addition to Zn N (0, 1), there are several forms of notation to denote the fact that the distribution of Zn is converging to a Normal. They all mean the same thing. Here they are:

Zn ≈ N (0, 1)

Xn ≈ N

μ,

σ^2 n

Xn − μ ≈ N

σ^2 n

n(Xn − μ) ≈ N

0 , σ^2

n(Xn − μ) σ

≈ N (0, 1).

Recall that if X is a random variable, its moment generating function (mgf) is ψX (t) = EetX^. Assume in what follows that the mgf is finite in a neighborhood around t = 0.

Lemma 14 Let Z 1 , Z 2 ,... be a sequence of random variables. Let ψn be the mgf of Zn. Let Z be another random variable and denote its mgf by ψ. If ψn(t) → ψ(t) for all t in some open interval around 0, then Zn Z.

Proof of the central limit theorem. Let Yi = (Xi − μ)/σ. Then, Zn = n−^1 /^2

i Yi. Let ψ(t) be the mgf of Yi. The mgf of

i Yi^ is (ψ(t))

n (^) and mgf of Z n is [ψ(t/

n)]n^ ≡ ξn(t). Now ψ′(0) = E(Y 1 ) = 0, ψ′′(0) = E(Y 12 ) = Var(Y 1 ) = 1. So,

ψ(t) = ψ(0) + tψ′(0) +

t^2 2!

ψ′′(0) +

t^3 3!

ψ′′′(0) + · · ·

t^2 2

t^3 3!

ψ′′′(0) + · · ·

t^2 2

t^3 3!

ψ′′′(0) + · · ·

Now,

ξn(t) =

[

ψ

t √ n

)]n

[

t^2 2 n

t^3 3!n^3 /^2

ψ′′′(0) + · · ·

]n

[

t^2 2 +^

t^3 3!n^1 /^2 ψ

n

]n

→ et

(^2) / 2

which is the mgf of a N(0,1). The result follows from Lemma 14. In the last step we used the fact that if an → a then (^) (

1 +

an n

)n → ea. 

The central limit theorem tells us that Zn =

n(Xn − μ)/σ is approximately N(0,1). However, we rarely know σ. We can estimate σ^2 from X 1 ,... , Xn by

S n^2 =

n − 1

∑^ n

i=

(Xi − Xn)^2.

This raises the following question: if we replace σ with Sn, is the central limit theorem still true? The answer is yes.

Theorem 15 Assume the same conditions as the CLT. Then,

Tn =

n(Xn − μ) Sn

N (0, 1).

Proof. We have that Tn = ZnWn

where

Zn =

n(Xn − μ) σ

and Wn =

σ Sn

Now Zn N (0, 1) and Wn →P 1. The result follows from Slutzky’s theorem. 

There is also a multivariate version of the central limit theorem. Recall that X = (X 1 ,... , Xk)T^ has a multivariate Normal distribution with mean vector μ and covariance matrix Σ if

f (x) =

(2π)k/^2 |Σ|^1 /^2

exp

(x − μ)T^ Σ−^1 (x − μ)

In this case we write X ∼ N (μ, Σ).

Theorem 16 (Multivariate central limit theorem) Let X 1 ,... , Xn be iid random vec- tors where Xi = (X 1 i,... , Xki)T^ with mean μ = (μ 1 ,... , μk)T^ and covariance matrix Σ. Let X = (X 1 ,... , Xk)T^ where Xj = n−^1

∑n i=1 Xji. Then, √ n(X − μ) N (0, Σ).

and define Yn = X 1 X 2. Thus, Yn = g(X 1 , X 2 ) where g(s 1 , s 2 ) = s 1 s 2. By the central limit theorem, √ n

X 1 − μ 1 X 2 − μ 2

N (0, Σ).

Now

∇g(s) =

∂g ∂s 1 ∂g ∂s 2

s 2 s 1

and so

∇Tμ Σ∇μ = (μ 2 μ 1 )

σ 11 σ 12 σ 12 σ 22

μ 2 μ 1

= μ^22 σ 11 + 2μ 1 μ 2 σ 12 + μ^21 σ 22.

Therefore, √ n(X 1 X 2 − μ 1 μ 2 ) N

0 , μ^22 σ 11 + 2μ 1 μ 2 σ 12 + μ^21 σ 22