SlideShare a Scribd company logo
1 of 9
Download to read offline
Stat310
     Moment generating function


                           Hadley Wickham
Tuesday, 27 January 2009
1. Test info.
                2. Recap
                3. Binomial distribution
                4. Moment generating function
                5. Poisson distribution
                6. Negative binomial (if time)


Tuesday, 27 January 2009
Exam
                    80 minutes in class on Thursday.
                    2 (double sided) pages of notes.
                    All info on website.


                    (Homework grade - out of 12.
                    But two are extra credit)


Tuesday, 27 January 2009
Exam technique
                    • Read all the questions first. Start with the
                      easiest question!
                    • If you get stuck, try another question and
                      come back to it.
                    • If you get really stuck, writing down the
                      essential elements of the question and
                      describing the approaches you think might
                      be successful will get you partial credit


Tuesday, 27 January 2009
Recap

                    • Expectation
                    • Mean & variance
                    • Bernoulli distribution
                    • Discrete uniform distribution




Tuesday, 27 January 2009
Binomial distribution
                    • A Bernoulli experiment is
                      performed n times
                    • The trials are independent
                    • The probability of success
                      is a constant p
                    • The random variable X is the
                      number of successes in the n trials


Tuesday, 27 January 2009
Binomial distribution
                    X1, X2, ..., Xn ~ Bernoulli(p)
                    Y = X1 + X2 + ... + Xn
                    Y ~ Binomial(n, p)


                    What is the pmf?
                    What is the mean? What is the variance?


Tuesday, 27 January 2009
Using tables
                    Tedious to calculate by hand.
                    Use computer or calculator if available.
                    If not use tables.
                    Tables typically are for F(x) = P(X ≤ x)
                    P(X > x) = 1 - P(X ≤ x)
                    P(a ≤ X ≤ b) = P(X ≤ b) - P(X ≤ (a - 1))


Tuesday, 27 January 2009
p=0.1                                       p=0.5
       0.35
                                                            0.20
       0.30
       0.25
                                                            0.15
       0.20
f(x)




                                                     f(x)
                                                            0.10
       0.15
       0.10
                                                            0.05
       0.05
       0.00                                                 0.00
              0            2   4       6    8   10                 0   2   4       6   8   10
                                   x                                           x


              p=0.7                                                p=0.9
       0.25
                                                            0.35
                                                            0.30
       0.20
                                                            0.25
       0.15
                                                            0.20
f(x)




                                                     f(x)

                                                            0.15
       0.10
                                                            0.10
       0.05
                                                            0.05
       0.00                                                 0.00
              0            2   4       6

More Related Content

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

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 

Recently uploaded (20)

AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 

07 Mgf

  • 1. Stat310 Moment generating function Hadley Wickham Tuesday, 27 January 2009
  • 2. 1. Test info. 2. Recap 3. Binomial distribution 4. Moment generating function 5. Poisson distribution 6. Negative binomial (if time) Tuesday, 27 January 2009
  • 3. Exam 80 minutes in class on Thursday. 2 (double sided) pages of notes. All info on website. (Homework grade - out of 12. But two are extra credit) Tuesday, 27 January 2009
  • 4. Exam technique • Read all the questions first. Start with the easiest question! • If you get stuck, try another question and come back to it. • If you get really stuck, writing down the essential elements of the question and describing the approaches you think might be successful will get you partial credit Tuesday, 27 January 2009
  • 5. Recap • Expectation • Mean & variance • Bernoulli distribution • Discrete uniform distribution Tuesday, 27 January 2009
  • 6. Binomial distribution • A Bernoulli experiment is performed n times • The trials are independent • The probability of success is a constant p • The random variable X is the number of successes in the n trials Tuesday, 27 January 2009
  • 7. Binomial distribution X1, X2, ..., Xn ~ Bernoulli(p) Y = X1 + X2 + ... + Xn Y ~ Binomial(n, p) What is the pmf? What is the mean? What is the variance? Tuesday, 27 January 2009
  • 8. Using tables Tedious to calculate by hand. Use computer or calculator if available. If not use tables. Tables typically are for F(x) = P(X ≤ x) P(X > x) = 1 - P(X ≤ x) P(a ≤ X ≤ b) = P(X ≤ b) - P(X ≤ (a - 1)) Tuesday, 27 January 2009
  • 9. p=0.1 p=0.5 0.35 0.20 0.30 0.25 0.15 0.20 f(x) f(x) 0.10 0.15 0.10 0.05 0.05 0.00 0.00 0 2 4 6 8 10 0 2 4 6 8 10 x x p=0.7 p=0.9 0.25 0.35 0.30 0.20 0.25 0.15 0.20 f(x) f(x) 0.15 0.10 0.10 0.05 0.05 0.00 0.00 0 2 4 6