SlideShare a Scribd company logo
1 of 27
Download to read offline
Stat310   The normal distribution


                          Hadley Wickham
Thursday, 12 March 2009
1. Exam
                2. Recap
                3. Finish off convergence example
                4. The normal distribution (reading?)




Thursday, 12 March 2009
Exam
                    Graded for you to pick up after class.
                    Generally did ok on question one, despite the
                    mistake. Point for question four just for
                    attempting it
                    Question was fine too.
                    Struggled with question three (which was
                    supposed to be pretty straightforward - sorry!)
                    “Carry through”


Thursday, 12 March 2009
Question 3



Thursday, 12 March 2009
1.0                                                                                                   ●       ●       ●
                                                                  ●                                                   ●
                                                                                                                          ●
                                                                                              ●       ●           ●       ●●
                                                                      ●           ●                               ●●
                                                              ●   ●
                                                                                          ●       ●                   ●
                                                                                      ●
                                                                                  ●                   ●                       ●
                                              ●                                                                   ●●
        0.8                                               ●                   ●                   ●               ●       ●
                                                                              ●
                                                                                                  ●                           ●
                                                                                                          ●   ●
                                                                                      ●
                                                                      ●

                          ●     ●
        0.6                                       ●
                                                  ●
                                      ●
 exam2/30




                                ●                 ●   ●                                           ●
                                                                          ●

                                                              ●
                          ●

        0.4                               ●




        0.2




        0.0                                           ●




                          0.2       0.4                    0.6                            0.8                             1.0
                                                      exam1/50
Thursday, 12 March 2009
8




     6
 count




     4




     2




     0

             0.0          0.2   0.4              0.6   0.8   1.0
                                      exam2/30
Thursday, 12 March 2009
Recap
                    If X1, X2, …, Xn are iid, then:
                    What does the joint pdf look like?
                    What is the expected value of the sum?
                    What is the variance of the sum?
                    What is the mgf of the sum?



Thursday, 12 March 2009
Convergence in P

                    Imagine you have a Bernoulli(p) process.
                    You can repeat the process as many
                    times as you like to generate X1, X2, …,
                    Xn. How could you use these X’s to figure
                    out what p is?




Thursday, 12 March 2009
lim P (|Zn − p| ≤ ) = 1
          n→∞
                                ∀ >0



Thursday, 12 March 2009
Time   Event           Estimate
                                         Total
                           1      1       1        1.00
                           2      0       1        0.50
                           3      1       2        0.67
                           4      0       2        0.50
                           5      0       2        0.40

Thursday, 12 March 2009
1.0




    0.8




    0.6
 est




    0.4




    0.2




    0.0

                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
1.0




    0.8




    0.6
 est




    0.4




    0.2




    0.0

                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
1.0




    0.8




    0.6
 est




    0.4




    0.2




    0.0

                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
1000 runs




Thursday, 12 March 2009
1.0




    0.8




                          99%
    0.6
 est




    0.4
                                75%

                                25%
    0.2



                          1%
    0.0

                                200   400       600   800   1000
                                            n
Thursday, 12 March 2009
0.40
                          99%



    0.35


                          75%


    0.30
 est




                          50%

                          25%
    0.25




                          1%
    0.20

                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
0.7



    0.6



    0.5



    0.4
 dist




    0.3



    0.2



    0.1



    0.0

                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
0.10




                          99%
    0.08




    0.06
 dist




                          75%
    0.04




                          50%
    0.02

                          25%

    0.00
                          1%
                          200   400       600   800   1000
                                      n
Thursday, 12 March 2009
The normal
                          distribution


Thursday, 12 March 2009
1                                2
                                             (x−µ)
                                            − 2σ2
        f (x) = √ e
                 2π

                          Is this a valid pdf?
Thursday, 12 March 2009
1 22
                 M (t) = e                µt+ 2 σ t



                            See book for derivation.
                          A few tricks + lots of algebra
Thursday, 12 March 2009
Your turn

                                       σ
                    If X ~ Normal(μ,    2),   what is the mean and
                    variance of X?
                    (Work it out - don’t just write down what
                    you know!)




Thursday, 12 March 2009
0.4                                                                    0.4
         N(-2, 1)                                                                N(5, 1)
   0.3                                                                    0.3


   0.2                                                                    0.2
f(x)




                                                                       f(x)
   0.1                                                                    0.1


   0.0                                                                    0.0
         −10      −5      0   5       10                                        −10   −5   0   5   10
                                     0.4



                                                             N(0, 1)
                                     0.3


                                     0.2
                                  f(x)




                                     0.1


                                     0.0
                                              −10   −5   0      5         10
   0.4                                                                    0.4

          N(0, 4)                                                               N(0, 16)
   0.3                                                                    0.3


   0.2                                                                    0.2
f(x)




                                                                       f(x)
   0.1                                                                    0.1


   0.0                                                                    0.0
         −10      −5      0   5          10                                     −10   −5   0   5   10

Thursday, 12 March 2009
Transformations
                                       σ
                    If X ~ Normal(μ,    2),   and Y = a(X + b)
                    Y ~ Normal(b + μ,      2σ2)
                                         a
                    If a = -μ and b = 1/σ, we often write
                    Z = (X - μ) / σ
                    Z ~ Normal(0, 1) = standard normal



Thursday, 12 March 2009
Example
                    Let X ~ Normal(5, 10)
                    What is P(3 < X < 8) ?
                    Convert to standard normal. Look up Z
                    score
                    P(-0.2 < Z < 0.3) = P(Z < 0.3) - P(-0.2)
                    (Google z table)


Thursday, 12 March 2009
P (Z < z) = Φ(z)
                          Φ(−z) = 1 − Φ(z)

                      P (−1 < Z < 1) = 0.68
                      P (−2 < Z < 2) = 0.95
                      P (−3 < Z < 3) = 0.998
Thursday, 12 March 2009
Readings: 5.3, 5.4, 5.5



Thursday, 12 March 2009

More Related Content

More from Hadley Wickham (20)

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
 
10 simulation
10 simulation10 simulation
10 simulation
 

Recently uploaded

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Recently uploaded (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

17 Normal Intro

  • 1. Stat310 The normal distribution Hadley Wickham Thursday, 12 March 2009
  • 2. 1. Exam 2. Recap 3. Finish off convergence example 4. The normal distribution (reading?) Thursday, 12 March 2009
  • 3. Exam Graded for you to pick up after class. Generally did ok on question one, despite the mistake. Point for question four just for attempting it Question was fine too. Struggled with question three (which was supposed to be pretty straightforward - sorry!) “Carry through” Thursday, 12 March 2009
  • 5. 1.0 ● ● ● ● ● ● ● ● ● ●● ● ● ●● ● ● ● ● ● ● ● ● ● ● ●● 0.8 ● ● ● ● ● ● ● ● ● ● ● ● ● ● 0.6 ● ● ● exam2/30 ● ● ● ● ● ● ● 0.4 ● 0.2 0.0 ● 0.2 0.4 0.6 0.8 1.0 exam1/50 Thursday, 12 March 2009
  • 6. 8 6 count 4 2 0 0.0 0.2 0.4 0.6 0.8 1.0 exam2/30 Thursday, 12 March 2009
  • 7. Recap If X1, X2, …, Xn are iid, then: What does the joint pdf look like? What is the expected value of the sum? What is the variance of the sum? What is the mgf of the sum? Thursday, 12 March 2009
  • 8. Convergence in P Imagine you have a Bernoulli(p) process. You can repeat the process as many times as you like to generate X1, X2, …, Xn. How could you use these X’s to figure out what p is? Thursday, 12 March 2009
  • 9. lim P (|Zn − p| ≤ ) = 1 n→∞ ∀ >0 Thursday, 12 March 2009
  • 10. Time Event Estimate Total 1 1 1 1.00 2 0 1 0.50 3 1 2 0.67 4 0 2 0.50 5 0 2 0.40 Thursday, 12 March 2009
  • 11. 1.0 0.8 0.6 est 0.4 0.2 0.0 200 400 600 800 1000 n Thursday, 12 March 2009
  • 12. 1.0 0.8 0.6 est 0.4 0.2 0.0 200 400 600 800 1000 n Thursday, 12 March 2009
  • 13. 1.0 0.8 0.6 est 0.4 0.2 0.0 200 400 600 800 1000 n Thursday, 12 March 2009
  • 15. 1.0 0.8 99% 0.6 est 0.4 75% 25% 0.2 1% 0.0 200 400 600 800 1000 n Thursday, 12 March 2009
  • 16. 0.40 99% 0.35 75% 0.30 est 50% 25% 0.25 1% 0.20 200 400 600 800 1000 n Thursday, 12 March 2009
  • 17. 0.7 0.6 0.5 0.4 dist 0.3 0.2 0.1 0.0 200 400 600 800 1000 n Thursday, 12 March 2009
  • 18. 0.10 99% 0.08 0.06 dist 75% 0.04 50% 0.02 25% 0.00 1% 200 400 600 800 1000 n Thursday, 12 March 2009
  • 19. The normal distribution Thursday, 12 March 2009
  • 20. 1 2 (x−µ) − 2σ2 f (x) = √ e 2π Is this a valid pdf? Thursday, 12 March 2009
  • 21. 1 22 M (t) = e µt+ 2 σ t See book for derivation. A few tricks + lots of algebra Thursday, 12 March 2009
  • 22. Your turn σ If X ~ Normal(μ, 2), what is the mean and variance of X? (Work it out - don’t just write down what you know!) Thursday, 12 March 2009
  • 23. 0.4 0.4 N(-2, 1) N(5, 1) 0.3 0.3 0.2 0.2 f(x) f(x) 0.1 0.1 0.0 0.0 −10 −5 0 5 10 −10 −5 0 5 10 0.4 N(0, 1) 0.3 0.2 f(x) 0.1 0.0 −10 −5 0 5 10 0.4 0.4 N(0, 4) N(0, 16) 0.3 0.3 0.2 0.2 f(x) f(x) 0.1 0.1 0.0 0.0 −10 −5 0 5 10 −10 −5 0 5 10 Thursday, 12 March 2009
  • 24. Transformations σ If X ~ Normal(μ, 2), and Y = a(X + b) Y ~ Normal(b + μ, 2σ2) a If a = -μ and b = 1/σ, we often write Z = (X - μ) / σ Z ~ Normal(0, 1) = standard normal Thursday, 12 March 2009
  • 25. Example Let X ~ Normal(5, 10) What is P(3 < X < 8) ? Convert to standard normal. Look up Z score P(-0.2 < Z < 0.3) = P(Z < 0.3) - P(-0.2) (Google z table) Thursday, 12 March 2009
  • 26. P (Z < z) = Φ(z) Φ(−z) = 1 − Φ(z) P (−1 < Z < 1) = 0.68 P (−2 < Z < 2) = 0.95 P (−3 < Z < 3) = 0.998 Thursday, 12 March 2009
  • 27. Readings: 5.3, 5.4, 5.5 Thursday, 12 March 2009