SlideShare a Scribd company logo
1 of 21
Download to read offline
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

More Related Content

What's hot

8th alg -l5.6--jan7
8th alg -l5.6--jan78th alg -l5.6--jan7
8th alg -l5.6--jan7
jdurst65
 
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 Substitution
mdicken
 
8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentials8.1+ 8.2 graphing exponentials
8.1+ 8.2 graphing exponentials
andreagoings
 

What's hot (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
 

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

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

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
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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)
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
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 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?
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
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...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 

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