SlideShare a Scribd company logo
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

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
 

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

НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»QADay
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...Product School
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Thierry Lestable
 
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 Minutesconfluent
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
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.pptxDavid Michel
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsVlad Stirbu
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backElena Simperl
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform EngineeringJemma Hussein Allen
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Product School
 

Recently uploaded (20)

НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»НАДІЯ ФЕДЮШКО БАЦ  «Професійне зростання QA спеціаліста»
НАДІЯ ФЕДЮШКО БАЦ «Професійне зростання QA спеціаліста»
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
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
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
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
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 

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