Docsity

The Central Limit Theorem, Study notes of Law

Partial preview of the text

Download The Central Limit Theorem and more Study notes Law in PDF only on Docsity!

The three trendsIntroduction The central limit theoremSummary

The Central Limit Theorem

Patrick Breheny

October 1

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Kerrich’s experiment

A South African mathematician named John Kerrich was visiting Copenhagen in 1940 when Germany invaded Denmark Kerrich spent the next five years in an interment camp To pass the time, he carried out a series of experiments in probability theory One of them involved flipping a coin 10,000 times

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Kerrich’s results

Number of Number of Heads - tosses (n) heads 0. 5 ·Tosses 10 4 - 100 44 - 500 255 5 1,000 502 2 2,000 1,013 13 3,000 1,510 10 4,000 2,029 29 5,000 2,533 33 6,000 3,009 9 7,000 3,516 16 8,000 4,034 34 9,000 4,538 38 10,000 5,067 67

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Kerrich’s results plotted

−

−

0

50

100

Number of tosses

Number of heads minus half the number of tosses 10 100 400 1000 2000 4000 7000 10000

Instead of getting closer, the numbers of heads and tails are getting farther apart

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Where’s the law of averages?

As the figure indicates, simplistic notions like “we should have about the same number of heads and tails” are inadequate to describe what happens with long-run probabilities We must be more precise about what is happening – in particular, what is getting more predictable as the number of tosses goes up, and what is getting less predictable? Consider instead looking at the percentage of flips that are heads

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Repeating the experiment 50 times, Part II

30

40

50

60

70

Number of tosses

Percentage of heads

10 100 400 1000 2000 4000 7000 10000

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Joint distributions

We can extend the notion of a distribution to include the consideration of multiple variables simultaneously Suppose we have two discrete random variables X and Y. Then the joint probability mass function is a function f : R^2 → R defined by f (x, y) = P (X = x, Y = y) Likewise, suppose we have two discrete random variables X and Y. Then the joint probability density function is a function f : R^2 → R satisfying

P ((X, Y ) ∈ A) =

A

f (x, y) dx dy

for all rectangles A ∈ R^2

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Marginal distributions

Suppose we have two discrete random variables X and Y. Then the pmf

f (x) =

y

f (x, y)

is called the marginal pmf of X Likewise, if X and Y are continuous, we integrate out one variable to obtain the marginal pdf of the other:

f (x) =

f (x, y) dy

The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums

Variance of a sum

Theorem: Let X and Y be independent random variables. Then

Var(X + Y ) = Var(X) + Var(Y )

provided that Var(X) and Var(Y ) exist Note that X and Y must be independent for this to work

The three trendsIntroduction The central limit theoremSummary

Expected valueVariance The distribution of the average

The expected value of the mean

Theorem: Suppose X 1 , X 2 ,... Xn are random variables with the same expected value μ, and let X¯ denote the mean of all n random variables. Then

E( X¯) = μ

In other words, for any value of n, the expected value of the sample mean is expected value of the underlying distribution When an estimator θˆ has the property that E(θˆ) = θ, the estimator is said to be unbiased Thus, the above theorem shows that the sample mean is an unbiased estimator of the population mean

The three trendsIntroduction The central limit theoremSummary

Expected valueVariance The distribution of the average

The variance of the mean

Our previous result showed that the sample mean is always “close” to the expected value, at least in the sense of being centered around it Of course, how close it is also depends on the variance, which is what we now consider Theorem: Suppose X 1 , X 2 ,... Xn are independent random variables with expected value μ and variance σ^2. Letting X¯ denote the mean of all n random variables,

Var( X¯) = σ^2 n Corollary: SD( X¯) = σ/

n

The three trendsIntroduction The central limit theoremSummary

Expected valueVariance The distribution of the average

The square root law

To distinguish between the standard deviation of the data and the standard deviation of an estimator (e.g., the mean), estimator standard deviations are typically referred to as standard errors As the previous slide makes clear, these are not the same, and are related to each other by a very important way, sometimes called the square root law:

SE =

SD

n

This is true for all averages, although as we will see later in the course, must be modified for other types of estimators

The three trendsIntroduction The central limit theoremSummary

Expected valueVariance The distribution of the average

The distribution of the mean

Finally, let’s look at the distribution of the mean by creating histograms of the mean from our 50 simulations

Proportion (Heads)

Frequency

0.2 0.4 0.6 0.

0

5

10

15 n=

Proportion (Heads)

Frequency

0.3 0.4 0.5 0.6 0.

0

5

10

15

n=

Proportion (Heads)

Frequency

0.35 0.45 0.55 0.

0

2

4

6

8

10

12 n=

Proportion (Heads)

Frequency

0.40 0.50 0.

0

2

4

6

8

10

12

14 n=

The three trendsIntroduction The central limit theoremSummary The theorem How good is the CLT approximation?

The central limit theorem (informal)

In summary, there are three very important phenomena going on here concerning the sample average: #1 The expected value is always equal to the population average #2 The standard error is always equal to the population standard deviation divided by the square root of n #3 As n gets larger, its distribution looks more and more like the normal distribution Furthermore, these three properties of the sample average hold for any distribution