SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
Stat310
         Bivariate random variables


                           Hadley Wickham
Friday, 26 February 2010
Assessment
                     • Please pick up any homework you
                       haven’t got already.
                     • Will be grading tests tomorrow to get
                       back to you on Thursday
                     • Drop deadline is Feb 26 – if you are
                       thinking of dropping and would like an
                       interim grade, email me Friday morning


Friday, 26 February 2010
1. Introduction to bivariate random
                    variables
                 2. The important bits of multivariate
                    calculus
                 3. Independence




Friday, 26 February 2010
Bivariate rv
                     Previously dealt with one random variable
                     at a time. Now we’re going to look at two
                     (probably related) at a time.
                     A random experiment where we measure
                     two things (not just one).
                     New tool: multivariate calculus



Friday, 26 February 2010
Friday, 26 February 2010
Friday, 26 February 2010
1
         f (x, y) =                          − 2 < x, y < 2
                    16
          What is:                             What would you call
                                                this distribution?
              •       P(X < 0) ?
              •       P(X < 0 and Y < 0) ?     Draw diagrams and
              •       P(Y > 1) ?                use your intuition

              •       P(X > Y) ?
              •       P(X2 + Y2 < 1)


Friday, 26 February 2010
f (x, y) = c a < x, y < b


                           Is this a pdf?
                           How could we work out c?




Friday, 26 February 2010
Your turn

                     Given what you know about univariate
                     pdfs and pmfs, guess the conditions that
                     a bivariate function must satisfy to be a
                     bivariate pdf/pmf.




Friday, 26 February 2010
pdf
        ∞                ∞

      −∞              ∞
                               f (x, y) dy dx = 1   f (x, y) ≥ 0



                                            pmf
                           f (x, y) = 1             f (x, y) ≥ 0
       x,y

Friday, 26 February 2010
S = {(x, y) : f (x, y)  0}
      The support or sample
      space




Friday, 26 February 2010
P (a  X  b, c  Y  d) =
                          d    b
                                     f (x, y) dx dy
                       c     a


Friday, 26 February 2010
What is the cdf
  going to look like?

 P (X  x, Y  y) =




Friday, 26 February 2010
What is the cdf
  going to look like?

 P (X  x, Y  y) =
             x  y
 F (x, y) =         f (u, v)dvdu
                           −∞   −∞


Friday, 26 February 2010
Multivariate calculus



Friday, 26 February 2010
Important bits
                     Partial derivatives
                     Multiple integrals
                     (2d change of variable -
                      after spring break)


                     Use wolfram alpha. Wikipedia articles are
                     decent.


Friday, 26 February 2010
Your turn

                     F(x, y) =   c(x 2   +   y 2)   -1  x, y  1
                     What is c?
                     What is f(x, y)?




Friday, 26 February 2010
Marginal distributions

                                      
                           fX (x) =           f (x, y)dy
                                          R
                                      
                           fY (y) =           f (x, y)dx
                                      R


Friday, 26 February 2010
Independence

                     How can we tell if two random variables
                     are independent?
                     Need to go back to our definition.




Friday, 26 February 2010
Dependence
                     Only one way for rv’s to be independent.
                     Many ways to be dependent. Useful to
                     have some measurements to summarise
                     common forms of dependence.
                     Next time we’ll use one you’ve hopefully
                     heard of before: correlation, a
                     measurement of linear dependence.


Friday, 26 February 2010
Read 3.3 and 3.3.1



Friday, 26 February 2010

Contenu connexe

Tendances

Greedy algo revision 2
Greedy algo revision 2Greedy algo revision 2
Greedy algo revision 2maamir farooq
 
8th alg -l5.6--jan7
8th alg -l5.6--jan78th alg -l5.6--jan7
8th alg -l5.6--jan7jdurst65
 
Lesson 8: Basic Differentiation Rules (Section 21 handout)
Lesson 8: Basic Differentiation Rules (Section 21 handout)Lesson 8: Basic Differentiation Rules (Section 21 handout)
Lesson 8: Basic Differentiation Rules (Section 21 handout)Matthew Leingang
 
Ch6.5 Solving Systems by Substitution
Ch6.5 Solving Systems by SubstitutionCh6.5 Solving Systems by Substitution
Ch6.5 Solving Systems by Substitutionmdicken
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differencesDr. Nirav Vyas
 
Ai lecture 8(unit02)
Ai lecture  8(unit02)Ai lecture  8(unit02)
Ai lecture 8(unit02)vikas dhakane
 
8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentials8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentialsandreagoings
 
1Sem-Basic Electronics Notes-Unit7-Number System
1Sem-Basic Electronics Notes-Unit7-Number System1Sem-Basic Electronics Notes-Unit7-Number System
1Sem-Basic Electronics Notes-Unit7-Number SystemDr. Shivananda Koteshwar
 

Tendances (9)

Optimal Finite Difference Grids
Optimal Finite Difference GridsOptimal Finite Difference Grids
Optimal Finite Difference Grids
 
Greedy algo revision 2
Greedy algo revision 2Greedy algo revision 2
Greedy algo revision 2
 
8th alg -l5.6--jan7
8th alg -l5.6--jan78th alg -l5.6--jan7
8th alg -l5.6--jan7
 
Lesson 8: Basic Differentiation Rules (Section 21 handout)
Lesson 8: Basic Differentiation Rules (Section 21 handout)Lesson 8: Basic Differentiation Rules (Section 21 handout)
Lesson 8: Basic Differentiation Rules (Section 21 handout)
 
Ch6.5 Solving Systems by Substitution
Ch6.5 Solving Systems by SubstitutionCh6.5 Solving Systems by Substitution
Ch6.5 Solving Systems by Substitution
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Ai lecture 8(unit02)
Ai lecture  8(unit02)Ai lecture  8(unit02)
Ai lecture 8(unit02)
 
8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentials8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentials
 
1Sem-Basic Electronics Notes-Unit7-Number System
1Sem-Basic Electronics Notes-Unit7-Number System1Sem-Basic Electronics Notes-Unit7-Number System
1Sem-Basic Electronics Notes-Unit7-Number System
 

Plus de 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
 

Dernier

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 

Dernier (20)

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 

12 Bivariate

  • 1. Stat310 Bivariate random variables Hadley Wickham Friday, 26 February 2010
  • 2. Assessment • Please pick up any homework you haven’t got already. • Will be grading tests tomorrow to get back to you on Thursday • Drop deadline is Feb 26 – if you are thinking of dropping and would like an interim grade, email me Friday morning Friday, 26 February 2010
  • 3. 1. Introduction to bivariate random variables 2. The important bits of multivariate calculus 3. Independence Friday, 26 February 2010
  • 4. Bivariate rv Previously dealt with one random variable at a time. Now we’re going to look at two (probably related) at a time. A random experiment where we measure two things (not just one). New tool: multivariate calculus Friday, 26 February 2010
  • 7. 1 f (x, y) = − 2 < x, y < 2 16 What is: What would you call this distribution? • P(X < 0) ? • P(X < 0 and Y < 0) ? Draw diagrams and • P(Y > 1) ? use your intuition • P(X > Y) ? • P(X2 + Y2 < 1) Friday, 26 February 2010
  • 8. f (x, y) = c a < x, y < b Is this a pdf? How could we work out c? Friday, 26 February 2010
  • 9. Your turn Given what you know about univariate pdfs and pmfs, guess the conditions that a bivariate function must satisfy to be a bivariate pdf/pmf. Friday, 26 February 2010
  • 10. pdf ∞ ∞ −∞ ∞ f (x, y) dy dx = 1 f (x, y) ≥ 0 pmf f (x, y) = 1 f (x, y) ≥ 0 x,y Friday, 26 February 2010
  • 11. S = {(x, y) : f (x, y) 0} The support or sample space Friday, 26 February 2010
  • 12. P (a X b, c Y d) = d b f (x, y) dx dy c a Friday, 26 February 2010
  • 13. What is the cdf going to look like? P (X x, Y y) = Friday, 26 February 2010
  • 14. What is the cdf going to look like? P (X x, Y y) = x y F (x, y) = f (u, v)dvdu −∞ −∞ Friday, 26 February 2010
  • 16. Important bits Partial derivatives Multiple integrals (2d change of variable - after spring break) Use wolfram alpha. Wikipedia articles are decent. Friday, 26 February 2010
  • 17. Your turn F(x, y) = c(x 2 + y 2) -1 x, y 1 What is c? What is f(x, y)? Friday, 26 February 2010
  • 18. Marginal distributions fX (x) = f (x, y)dy R fY (y) = f (x, y)dx R Friday, 26 February 2010
  • 19. Independence How can we tell if two random variables are independent? Need to go back to our definition. Friday, 26 February 2010
  • 20. Dependence Only one way for rv’s to be independent. Many ways to be dependent. Useful to have some measurements to summarise common forms of dependence. Next time we’ll use one you’ve hopefully heard of before: correlation, a measurement of linear dependence. Friday, 26 February 2010
  • 21. Read 3.3 and 3.3.1 Friday, 26 February 2010