SlideShare a Scribd company logo
1 of 29
Download to read offline
Stat310           Central limit theorem


                             Hadley Wickham
Thursday, 19 March 2009
1. Exam
                2. Recap
                3. Sums of normals cont.
                4. Chi-square distribution
                5. Central limit theorem



Thursday, 19 March 2009
Exam
                    Too soon?
                    Alternatives:
                          Take home over recess
                          Extra big homework
                          Add on to final (i.e. worth 30% instead of 20%)



Thursday, 19 March 2009
Recap

                    If X ~ Normal(50, 25), what is:
                    P(X < 50) ?
                    P(40 < X < 55) ?
                    P(X < x) = 0.8 ?




Thursday, 19 March 2009
Sums of normals

                    Let Xi ~   Normal(μi, σi 2),   independent
                    Y = c1X1 + c2X2 + … + cnXn
                    What is the distribution of Y?
                    (What is the mean and variance of Y?)
                    How can we work it out?



Thursday, 19 March 2009
Example

                    If Z1, Z2, Z3 are independent standard
                    normals, what is the distribution of:
                    Z1 - Z3
                    Z1 + Z2 + Z3
                    (Z1 + Z2 + Z3)/3



Thursday, 19 March 2009
Data
                    If X1, X2, …, Xn are iid N(μ, σ2)
                    What is the distribution of the sample
                    average?
                    What is the distribution of the sample
                    variance?
                    How are they related?


Thursday, 19 March 2009
Another special
                             distribution
                    If X ~ Normal(μ, σ2), and
                    V = (X - μ)2 / σ2 = Z2
                    Then
                    V ~ χ2(1)




Thursday, 19 March 2009
Chi-squared

                    Skipped over it in Chapter 3
                    Special case of the gamma distribution,
                    when θ = 2 and α = r / 2 (r an integer)
                    Mean = r, Variance = 2r
                    r is called degrees of freedom



Thursday, 19 March 2009
http://en.wikipedia.org/wiki/Chi-square_distribution




Thursday, 19 March 2009
Sums

                    Let Z1, Z2, …, Zn be iid N(0, 1)
                    W=    Z12   + Z2 + … + Zn
                                   2         2


                    Then
                    W ~ χ2(n)




Thursday, 19 March 2009
Intro to CLT



Thursday, 19 March 2009
Casino simulation
                    Crude simulation of a game a casino.
                    Wheel of fortune - costs $10 to play, and
                    winnings are distributed like a binomial
                    with p = 0.2.
                    What do you average winnings look like if
                    you play it many times?



Thursday, 19 March 2009
3.0




    2.8




    2.6
 mean




    2.4




    2.2




                          50   100   150   200
                               n
Thursday, 19 March 2009
4.0




    3.5




    3.0
 mean




    2.5




    2.0


                          50   100   150   200
                               n
Thursday, 19 March 2009
2.4




    2.2




    2.0
 mean




    1.8




    1.6




                          50   100   150   200
                               n
Thursday, 19 March 2009
Thursday, 19 March 2009
Thursday, 19 March 2009
n=1
     250




     200




     150
 count




     100




         50




          0

                 0        2      4   6    8
                              mean
Thursday, 19 March 2009
n=2

     200




     150
 count




     100




         50




          0

                 0        1   2          3   4    5
                                  mean
Thursday, 19 March 2009
n=3

     150




     100
 count




         50




          0

                 0        1   2          3   4
                                  mean
Thursday, 19 March 2009
n=4
     150




     100
 count




         50




          0

                 0        1   2      3   4
                              mean
Thursday, 19 March 2009
n=5
     140



     120



     100



         80
 count




         60



         40



         20



          0

                    0.5   1.0   1.5   2.0     2.5   3.0   3.5    4.0
                                       mean
Thursday, 19 March 2009
120
                                                     n=10

     100




         80
 count




         60




         40




         20




          0

                      1.0   1.5    2.0   2.5   3.0
                                  mean
Thursday, 19 March 2009
140                                      n=20

     120



     100



         80
 count




         60



         40



         20



          0

                          1.5     2.0   2.5
                                mean
Thursday, 19 March 2009
n=100
     150




     100
 count




         50




          0

                          1.6   1.8          2.0   2.2      2.4
                                      mean
Thursday, 19 March 2009
250                                                             n=200

     200




     150
 count




     100




         50




          0

                          1.7   1.8   1.9          2.0   2.1   2.2      2.3
                                            mean
Thursday, 19 March 2009
Mathematically
                          If X1, X2, …, Xn, are iid, and

                               X¯n − µ
                          Wn =    √
                               σ/ n
                                      then

             lim Wn = Z ∼ Normal(0, 1)
        n→∞
Thursday, 19 March 2009
I know of scarcely anything so apt to impress the
       imagination as the wonderful form of cosmic order
       expressed by the “Law of Frequency of Error”. ... It
       reigns with serenity and in complete self-effacement,
       amidst the wildest confusion. The huger the mob, and
       the greater the apparent anarchy, the more perfect is
       its sway. It is the supreme law of Unreason. Whenever
       a large sample of chaotic elements are taken in hand
       and marshaled in the order of their magnitude, an
       unsuspected and most beautiful form of regularity
       proves to have been latent all along.
       — Sir Francis Galton (Natural Inheritance, 1889)


Thursday, 19 March 2009

More Related Content

What's hot

What's hot (9)

True, Iffy, False 1
True, Iffy, False 1True, Iffy, False 1
True, Iffy, False 1
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Prime numbers ok1296542459
Prime numbers  ok1296542459Prime numbers  ok1296542459
Prime numbers ok1296542459
 
日本無人島開発
  日本無人島開発  日本無人島開発
日本無人島開発
 
Vedic maths
Vedic mathsVedic maths
Vedic maths
 
3 chap
3 chap3 chap
3 chap
 
Statistics assignment 8
Statistics assignment 8Statistics assignment 8
Statistics assignment 8
 
Statistics assignment 2.2
Statistics assignment 2.2Statistics assignment 2.2
Statistics assignment 2.2
 

Viewers also liked

มโนทัศน์เทคโนโลยีการศึกษา
มโนทัศน์เทคโนโลยีการศึกษามโนทัศน์เทคโนโลยีการศึกษา
มโนทัศน์เทคโนโลยีการศึกษาgeorge-tb
 
MTH120_Chapter6
MTH120_Chapter6MTH120_Chapter6
MTH120_Chapter6Sida Say
 
MTH120_Chapter5
MTH120_Chapter5MTH120_Chapter5
MTH120_Chapter5Sida Say
 
MTH120_Chapter11
MTH120_Chapter11MTH120_Chapter11
MTH120_Chapter11Sida Say
 
MTH120_Chapter7
MTH120_Chapter7MTH120_Chapter7
MTH120_Chapter7Sida Say
 
MTH120_Chapter2
MTH120_Chapter2MTH120_Chapter2
MTH120_Chapter2Sida Say
 
MTH120_Chapter9
MTH120_Chapter9MTH120_Chapter9
MTH120_Chapter9Sida Say
 

Viewers also liked (9)

มโนทัศน์เทคโนโลยีการศึกษา
มโนทัศน์เทคโนโลยีการศึกษามโนทัศน์เทคโนโลยีการศึกษา
มโนทัศน์เทคโนโลยีการศึกษา
 
MTH120_Chapter6
MTH120_Chapter6MTH120_Chapter6
MTH120_Chapter6
 
MTH120_Chapter5
MTH120_Chapter5MTH120_Chapter5
MTH120_Chapter5
 
MTH120_Chapter11
MTH120_Chapter11MTH120_Chapter11
MTH120_Chapter11
 
MTH120_Chapter7
MTH120_Chapter7MTH120_Chapter7
MTH120_Chapter7
 
MTH120_Chapter2
MTH120_Chapter2MTH120_Chapter2
MTH120_Chapter2
 
Chap009
Chap009Chap009
Chap009
 
MTH120_Chapter9
MTH120_Chapter9MTH120_Chapter9
MTH120_Chapter9
 
Chap008
Chap008Chap008
Chap008
 

More from Hadley Wickham (20)

27 development
27 development27 development
27 development
 
27 development
27 development27 development
27 development
 
24 modelling
24 modelling24 modelling
24 modelling
 
23 data-structures
23 data-structures23 data-structures
23 data-structures
 
Graphical inference
Graphical inferenceGraphical inference
Graphical inference
 
R packages
R packagesR packages
R packages
 
22 spam
22 spam22 spam
22 spam
 
21 spam
21 spam21 spam
21 spam
 
20 date-times
20 date-times20 date-times
20 date-times
 
19 tables
19 tables19 tables
19 tables
 
18 cleaning
18 cleaning18 cleaning
18 cleaning
 
17 polishing
17 polishing17 polishing
17 polishing
 
16 critique
16 critique16 critique
16 critique
 
15 time-space
15 time-space15 time-space
15 time-space
 
14 case-study
14 case-study14 case-study
14 case-study
 
13 case-study
13 case-study13 case-study
13 case-study
 
12 adv-manip
12 adv-manip12 adv-manip
12 adv-manip
 
11 adv-manip
11 adv-manip11 adv-manip
11 adv-manip
 
11 adv-manip
11 adv-manip11 adv-manip
11 adv-manip
 
10 simulation
10 simulation10 simulation
10 simulation
 

Recently uploaded

Top 10 Wealthiest People In The World.pdf
Top 10 Wealthiest People In The World.pdfTop 10 Wealthiest People In The World.pdf
Top 10 Wealthiest People In The World.pdfauroraaudrey4826
 
complaint-ECI-PM-media-1-Chandru.pdfra;;prfk
complaint-ECI-PM-media-1-Chandru.pdfra;;prfkcomplaint-ECI-PM-media-1-Chandru.pdfra;;prfk
complaint-ECI-PM-media-1-Chandru.pdfra;;prfkbhavenpr
 
Brief biography of Julius Robert Oppenheimer
Brief biography of Julius Robert OppenheimerBrief biography of Julius Robert Oppenheimer
Brief biography of Julius Robert OppenheimerOmarCabrera39
 
57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdfGerald Furnkranz
 
IndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest2
 
Referendum Party 2024 Election Manifesto
Referendum Party 2024 Election ManifestoReferendum Party 2024 Election Manifesto
Referendum Party 2024 Election ManifestoSABC News
 
Opportunities, challenges, and power of media and information
Opportunities, challenges, and power of media and informationOpportunities, challenges, and power of media and information
Opportunities, challenges, and power of media and informationReyMonsales
 
Manipur-Book-Final-2-compressed.pdfsal'rpk
Manipur-Book-Final-2-compressed.pdfsal'rpkManipur-Book-Final-2-compressed.pdfsal'rpk
Manipur-Book-Final-2-compressed.pdfsal'rpkbhavenpr
 
Rohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeRohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeAbdulGhani778830
 
Quiz for Heritage Indian including all the rounds
Quiz for Heritage Indian including all the roundsQuiz for Heritage Indian including all the rounds
Quiz for Heritage Indian including all the roundsnaxymaxyy
 
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victory
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep VictoryAP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victory
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victoryanjanibaddipudi1
 
VIP Girls Available Call or WhatsApp 9711199012
VIP Girls Available Call or WhatsApp 9711199012VIP Girls Available Call or WhatsApp 9711199012
VIP Girls Available Call or WhatsApp 9711199012ankitnayak356677
 
Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.NaveedKhaskheli1
 

Recently uploaded (13)

Top 10 Wealthiest People In The World.pdf
Top 10 Wealthiest People In The World.pdfTop 10 Wealthiest People In The World.pdf
Top 10 Wealthiest People In The World.pdf
 
complaint-ECI-PM-media-1-Chandru.pdfra;;prfk
complaint-ECI-PM-media-1-Chandru.pdfra;;prfkcomplaint-ECI-PM-media-1-Chandru.pdfra;;prfk
complaint-ECI-PM-media-1-Chandru.pdfra;;prfk
 
Brief biography of Julius Robert Oppenheimer
Brief biography of Julius Robert OppenheimerBrief biography of Julius Robert Oppenheimer
Brief biography of Julius Robert Oppenheimer
 
57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf
 
IndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global News
 
Referendum Party 2024 Election Manifesto
Referendum Party 2024 Election ManifestoReferendum Party 2024 Election Manifesto
Referendum Party 2024 Election Manifesto
 
Opportunities, challenges, and power of media and information
Opportunities, challenges, and power of media and informationOpportunities, challenges, and power of media and information
Opportunities, challenges, and power of media and information
 
Manipur-Book-Final-2-compressed.pdfsal'rpk
Manipur-Book-Final-2-compressed.pdfsal'rpkManipur-Book-Final-2-compressed.pdfsal'rpk
Manipur-Book-Final-2-compressed.pdfsal'rpk
 
Rohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeRohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for Justice
 
Quiz for Heritage Indian including all the rounds
Quiz for Heritage Indian including all the roundsQuiz for Heritage Indian including all the rounds
Quiz for Heritage Indian including all the rounds
 
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victory
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep VictoryAP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victory
AP Election Survey 2024: TDP-Janasena-BJP Alliance Set To Sweep Victory
 
VIP Girls Available Call or WhatsApp 9711199012
VIP Girls Available Call or WhatsApp 9711199012VIP Girls Available Call or WhatsApp 9711199012
VIP Girls Available Call or WhatsApp 9711199012
 
Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.
 

19 Clt

  • 1. Stat310 Central limit theorem Hadley Wickham Thursday, 19 March 2009
  • 2. 1. Exam 2. Recap 3. Sums of normals cont. 4. Chi-square distribution 5. Central limit theorem Thursday, 19 March 2009
  • 3. Exam Too soon? Alternatives: Take home over recess Extra big homework Add on to final (i.e. worth 30% instead of 20%) Thursday, 19 March 2009
  • 4. Recap If X ~ Normal(50, 25), what is: P(X < 50) ? P(40 < X < 55) ? P(X < x) = 0.8 ? Thursday, 19 March 2009
  • 5. Sums of normals Let Xi ~ Normal(μi, σi 2), independent Y = c1X1 + c2X2 + … + cnXn What is the distribution of Y? (What is the mean and variance of Y?) How can we work it out? Thursday, 19 March 2009
  • 6. Example If Z1, Z2, Z3 are independent standard normals, what is the distribution of: Z1 - Z3 Z1 + Z2 + Z3 (Z1 + Z2 + Z3)/3 Thursday, 19 March 2009
  • 7. Data If X1, X2, …, Xn are iid N(μ, σ2) What is the distribution of the sample average? What is the distribution of the sample variance? How are they related? Thursday, 19 March 2009
  • 8. Another special distribution If X ~ Normal(μ, σ2), and V = (X - μ)2 / σ2 = Z2 Then V ~ χ2(1) Thursday, 19 March 2009
  • 9. Chi-squared Skipped over it in Chapter 3 Special case of the gamma distribution, when θ = 2 and α = r / 2 (r an integer) Mean = r, Variance = 2r r is called degrees of freedom Thursday, 19 March 2009
  • 11. Sums Let Z1, Z2, …, Zn be iid N(0, 1) W= Z12 + Z2 + … + Zn 2 2 Then W ~ χ2(n) Thursday, 19 March 2009
  • 12. Intro to CLT Thursday, 19 March 2009
  • 13. Casino simulation Crude simulation of a game a casino. Wheel of fortune - costs $10 to play, and winnings are distributed like a binomial with p = 0.2. What do you average winnings look like if you play it many times? Thursday, 19 March 2009
  • 14. 3.0 2.8 2.6 mean 2.4 2.2 50 100 150 200 n Thursday, 19 March 2009
  • 15. 4.0 3.5 3.0 mean 2.5 2.0 50 100 150 200 n Thursday, 19 March 2009
  • 16. 2.4 2.2 2.0 mean 1.8 1.6 50 100 150 200 n Thursday, 19 March 2009
  • 19. n=1 250 200 150 count 100 50 0 0 2 4 6 8 mean Thursday, 19 March 2009
  • 20. n=2 200 150 count 100 50 0 0 1 2 3 4 5 mean Thursday, 19 March 2009
  • 21. n=3 150 100 count 50 0 0 1 2 3 4 mean Thursday, 19 March 2009
  • 22. n=4 150 100 count 50 0 0 1 2 3 4 mean Thursday, 19 March 2009
  • 23. n=5 140 120 100 80 count 60 40 20 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 mean Thursday, 19 March 2009
  • 24. 120 n=10 100 80 count 60 40 20 0 1.0 1.5 2.0 2.5 3.0 mean Thursday, 19 March 2009
  • 25. 140 n=20 120 100 80 count 60 40 20 0 1.5 2.0 2.5 mean Thursday, 19 March 2009
  • 26. n=100 150 100 count 50 0 1.6 1.8 2.0 2.2 2.4 mean Thursday, 19 March 2009
  • 27. 250 n=200 200 150 count 100 50 0 1.7 1.8 1.9 2.0 2.1 2.2 2.3 mean Thursday, 19 March 2009
  • 28. Mathematically If X1, X2, …, Xn, are iid, and X¯n − µ Wn = √ σ/ n then lim Wn = Z ∼ Normal(0, 1) n→∞ Thursday, 19 March 2009
  • 29. I know of scarcely anything so apt to impress the imagination as the wonderful form of cosmic order expressed by the “Law of Frequency of Error”. ... It reigns with serenity and in complete self-effacement, amidst the wildest confusion. The huger the mob, and the greater the apparent anarchy, the more perfect is its sway. It is the supreme law of Unreason. Whenever a large sample of chaotic elements are taken in hand and marshaled in the order of their magnitude, an unsuspected and most beautiful form of regularity proves to have been latent all along. — Sir Francis Galton (Natural Inheritance, 1889) Thursday, 19 March 2009