SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Stat310            Transformations


                            Hadley Wickham
Monday, 16 February 2009
1. Recap
               2. Exponential derivation
               3. Transforming random variables
                      1. Distribution function technique
                      2. Change of variables technique
               4. Interesting properties of cdf


Monday, 16 February 2009
Recap
                     f (x) = cx 0 < x < 10
                   • What is the cdf?
                   • What must c be for f to be a pdf?
                   • What is P(2 < X < 8)?




Monday, 16 February 2009
Exponential


                   • Derivation
                   • Moment generating function




Monday, 16 February 2009
Your turn
                   Let Y be the amount of time until I make a
                   mistake on the board. Assume Y ~
                   Exp(10) (i.e. I make 10 mistakes per hour).
                   If I go for 30 minutes without making a
                   mistake, what’s the probability I go for 40
                   minutes without making a mistake?
                   i.e. What is P(Y > 40 | Y > 30) ? How
                   does it compare to P(Y > 10)?

Monday, 16 February 2009
Memorylessness

                   • In general, if Y is exponential
                   • P(Y > y + a | Y > y ) = P(Y > a)
                   • Can you prove that?
                   • No memory




Monday, 16 February 2009
Transformations



Monday, 16 February 2009
Example
                    x      -5       0        5      10    20
                 f(x)      0.2     0.1       0.3    0.1   0.3

                   Let X be a discrete random variable with
                   pmf f as defined above.
                   Write out the pmfs for:
                   A=X+2         B = 3*X   C = X2


Monday, 16 February 2009
Continuous
                   Let X ~ Unif(0, 1)
                   What are the distributions
                   of the following variables?
                   A = 10 X
                   B = 5X + 3
                   C=      X2




Monday, 16 February 2009
Transformations
                     Distribution     Change of
                      function         variable
                     technique        technique




Monday, 16 February 2009
Distribution function
                                 technique

                   X = Unif(0, 1)
                   Y = X2
                   P(Y < y) =   P(X2<   y) = P(X < √y)
                   ...




Monday, 16 February 2009
Your turn

                   X ~ Exponential(θ)
                   Y = log(X)


                   Find fY(y). Does y have a named
                   distribution?


Monday, 16 February 2009
Change of variables
                   If Y = u(X), and
                   v is the inverse of u, X = v(Y)
                   then
                   fY(y) = fX(v(y)) |v’(y)|




Monday, 16 February 2009
Your turn

                   X ~ Exponential(θ). Y = log(X).
                   What is fY(y)?
                   X ~ Uniform(0, 10). Y =   X2.

                   What is fY(y)?




Monday, 16 February 2009
Theorem 3.5-1
                   IF
                   Y ~ Uniform(0, 1)
                   F a cdf
                   THEN
                   X=      F -1(Y)   is a rv with cdf F(x)
                   (Assume F strictly increasing for simplicity)


Monday, 16 February 2009
Theorem 3.5-2
                   IF
                   X has cdf F
                   Y = F(X)
                   THEN
                   Y ~ Uniform(0, 1)
                   (Assume F strictly increasing for simplicity)



Monday, 16 February 2009

Weitere ähnliche Inhalte

Mehr von 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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Kürzlich hochgeladen (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

10 Transformations

  • 1. Stat310 Transformations Hadley Wickham Monday, 16 February 2009
  • 2. 1. Recap 2. Exponential derivation 3. Transforming random variables 1. Distribution function technique 2. Change of variables technique 4. Interesting properties of cdf Monday, 16 February 2009
  • 3. Recap f (x) = cx 0 < x < 10 • What is the cdf? • What must c be for f to be a pdf? • What is P(2 < X < 8)? Monday, 16 February 2009
  • 4. Exponential • Derivation • Moment generating function Monday, 16 February 2009
  • 5. Your turn Let Y be the amount of time until I make a mistake on the board. Assume Y ~ Exp(10) (i.e. I make 10 mistakes per hour). If I go for 30 minutes without making a mistake, what’s the probability I go for 40 minutes without making a mistake? i.e. What is P(Y > 40 | Y > 30) ? How does it compare to P(Y > 10)? Monday, 16 February 2009
  • 6. Memorylessness • In general, if Y is exponential • P(Y > y + a | Y > y ) = P(Y > a) • Can you prove that? • No memory Monday, 16 February 2009
  • 8. Example x -5 0 5 10 20 f(x) 0.2 0.1 0.3 0.1 0.3 Let X be a discrete random variable with pmf f as defined above. Write out the pmfs for: A=X+2 B = 3*X C = X2 Monday, 16 February 2009
  • 9. Continuous Let X ~ Unif(0, 1) What are the distributions of the following variables? A = 10 X B = 5X + 3 C= X2 Monday, 16 February 2009
  • 10. Transformations Distribution Change of function variable technique technique Monday, 16 February 2009
  • 11. Distribution function technique X = Unif(0, 1) Y = X2 P(Y < y) = P(X2< y) = P(X < √y) ... Monday, 16 February 2009
  • 12. Your turn X ~ Exponential(θ) Y = log(X) Find fY(y). Does y have a named distribution? Monday, 16 February 2009
  • 13. Change of variables If Y = u(X), and v is the inverse of u, X = v(Y) then fY(y) = fX(v(y)) |v’(y)| Monday, 16 February 2009
  • 14. Your turn X ~ Exponential(θ). Y = log(X). What is fY(y)? X ~ Uniform(0, 10). Y = X2. What is fY(y)? Monday, 16 February 2009
  • 15. Theorem 3.5-1 IF Y ~ Uniform(0, 1) F a cdf THEN X= F -1(Y) is a rv with cdf F(x) (Assume F strictly increasing for simplicity) Monday, 16 February 2009
  • 16. Theorem 3.5-2 IF X has cdf F Y = F(X) THEN Y ~ Uniform(0, 1) (Assume F strictly increasing for simplicity) Monday, 16 February 2009