























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























The three trendsIntroduction The central limit theoremSummary
Patrick Breheny
October 1
The three trendsIntroduction The central limit theoremSummary 10,000 coin flips Expectation and variance of sums
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
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
−
−
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
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
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
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
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
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
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
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
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:
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
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?
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