SlideShare uma empresa Scribd logo
1 de 49
Baixar para ler offline
Quiz
• Pick up quiz and handout on your way in.
• Start at 1pm
• Finish at 1:10pm

• The quiz is not for a grade, but I will be
  collecting it.
Stat 310
Bivariate Change of Variables



    Garrett Grolemund
1. Review of distribution function
   techniques
2. Change of variables technique
3. Determining independence
4. Simulating transformations
Lakers' final scores
Laker's
  Mean
  87.2




Opponent's
  Mean
  81.2
Let
X = The Lakers' Score
Y = The opponent's score
U = X -Y

Then the Lakers will win if U is positive,
and they will lose if U is negative.

How can we model U? (i.e, How can we
find the CDF and PDF of U?)
Recall from Tuesday
U = X - Y is a bivariate transformation

The Distribution function technique gives
us two ways to model X - Y:
1. Begin with FX,Y(a):
   Compute FU(a) in terms of FX,Y(a) by
   equating probabilities
1. Begin with FX,Y(a):
   Compute FU(a) in terms of FX,Y(a) by
   equating probabilities

FU(a) = P(U < a)
      = P(X - Y < a)
      = P(X < Y + a)
      =?
2. Begin with fX,Y(a) :
   Compute FU(a) by integrating fX,Y(a)
   over the region where U < a


                                               f(x,y)


                                            P(Set A)



                                              X

                                    Set A
                   Y
2. Begin with fX,Y(a) :
     Compute FU(a) by integrating fX,Y(a)
     over the region where U < a


                                                          f(x,y)


            ∞        Y+a                               P(Set A)
FU(a) = ∫        ∫              fX,Y(a) dxdy
            -∞             -∞
                                                         X

                                               Set A
                                       Y
Change of variables
Univariate change of variables
               X               U
If
            U = g(X)        X = h(U)

Where h is the inverse of g, then

           fU(u) = fx(h(u)) |h'(u)|
Method works for bivariate case, once we make
 the appropriate modifications.
Bivariate change of variables
                (X,Y)            (U,V)
if
            U = g1(X, Y)    X = h1(U, V)
            V = g2(X, Y)    Y = h2(U, V)

Where h is the inverse of g, then

     fU,V(u, v) = fx,y(h1(U, V) , h2(U, V) ) | J |
fU(u) = fx(h(u)) |h'(u)|

Since U depends on both X and Y, we replace
  fx(h(u)) with the joint density fx,y(h(u), * )
fU(u) = fx,y(h(u), * ) |h'(u)|

A joint density must be a function of two
  random variables
Let X = h1(u) and Y = h2(u)
fU(u) = fx,y(h1(u), h2(u)) |h'(u)|

But for equality to hold, we must have a
  function of two variables on the left side as
  well
Define V = g2(X, Y) however you like.
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) |h'(u)|

Now we have two equations to take derivatives of (h1, h2)
  and two variables to take the derivative with respect
  to, (U,V)

The multivariate equivalent of h'(u) is the Jacobian, J
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |

             And we're finished
Jacobian

     δx         δx
     δu         δv
J=
     δy         δy
     δu         δv
a    b
               = ad - bc
     c    d


     δx   δx
     δu   δv
J=             = δx δy - δx δy
     δy   δy     δu δv δv δu
     δu   δv
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |


U=X-Y
What should V be?
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |


U=X-Y
What should V be?


• Sometimes we want V to be something specific
• Otherwise keep V simple or helpful
   e.g., V = Y
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |


What should fx,y(*, *) be?
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |


What should fx,y(*, *) be?

First consider: what should fx(*) and fy(*) be?
How would we model the Lakers score
distribution?
How would we model the Lakers score
distribution?

•   Discrete Data
How would we model the Lakers score
distribution?

•       Discrete Data
    •    Sum of many
         bernoulli trials
How would we model the Lakers score
distribution?

•       Discrete Data
    •    Sum of many
         bernoulli trials

Poisson?
Lakers' scores vs. simulated Poisson (87.2) distributions
Opponent's scores vs. simulated Poisson (81.2)
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |

X ~ Poisson (87.2)     fx(h1(u, v)) = e-87.2 (87.2)h1(u,v)
                                         h1(u, v)!
Y ~ Poisson (81.2)     fy(h2(u, v)) = e-81.2 (81.2)h2(u,v)
                                         h2(u, v)!


                        ?
fx,y(h1(u, v), h2(u, v)) = fx(h1(u, v))     fy(h2(u, v))
ρ = 0.412
fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |
Your Turn
Calculate the Jacobian of our transformation. Let
U = X - Y and V = Y.


         δx      δx
         δu      δv
J=                           = δx δy - δx δy
         δy      δy            δu δv δv δu
         δu      δv
Your Turn
Calculate fU,V(u, v) and express fU(u) as an
integral (you do not need to solve that
integral).
Let U = X - Y and V = Y. Let X ~ Poisson(87.2) and
Y ~ Poisson(81.2)
Skellam Distribution

fU,V(u, v) = e-(87.2 + 81.2) (87.2)h1(u,v)(81.2)h2(u,v)
                        h1(u, v)! h2(u, v)!



    http://en.wikipedia.org/wiki/Skellam_distribution
U values
U values vs. Skellam Distribution
Testing Independence
Recall:
1. U and V are independent if
     fU,V(u, v) = fU(u) fV(v)


2. By change of variables:
     fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |
Complete the proof
Complete the handout to show that U = X + Y and
V = X - Y are independent when X, Y ~ N(0, 1).
Simulation
We can also learn a lot about the distribution of
 a random variable by simulating it.

Let Xi ~ Uniform (0,1)
Let U = (X1 + X2 ) / 2

If we generate a 100 pairs of X1 and X2 and plot
   (X1 + X2 ) / 2 for each pair, we will have a
   simulation of the distribution of U
For comparison, V1 = X1 ~ uniform(0,1)
          10,000 samples
V1 = (X1 + X2) / 2
10,000 samples
V1 = (X1 + X2 + X3) / 3
   10,000 samples
V1 = (X1 + X2 + … + X10) / 10
      10,000 samples
V1 = Σ11000 Xi / 1000
 10,000 samples

Mais conteúdo relacionado

Mais procurados

Semianr 2. (2)
Semianr 2. (2)Semianr 2. (2)
Semianr 2. (2)jobishvd
 
Minimum mean square error estimation and approximation of the Bayesian update
Minimum mean square error estimation and approximation of the Bayesian updateMinimum mean square error estimation and approximation of the Bayesian update
Minimum mean square error estimation and approximation of the Bayesian updateAlexander Litvinenko
 
Lecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dualLecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dualStéphane Canu
 
12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions xmath266
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differencesDr. Nirav Vyas
 
Actuarial Science Reference Sheet
Actuarial Science Reference SheetActuarial Science Reference Sheet
Actuarial Science Reference SheetDaniel Nolan
 
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...UniversitasGadjahMada
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problemsDelta Pi Systems
 
Comparing estimation algorithms for block clustering models
Comparing estimation algorithms for block clustering modelsComparing estimation algorithms for block clustering models
Comparing estimation algorithms for block clustering modelsBigMC
 
Lesson 24: Implicit Differentiation
Lesson 24: Implicit DifferentiationLesson 24: Implicit Differentiation
Lesson 24: Implicit DifferentiationMatthew Leingang
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flowsVjekoslavKovac1
 
Finite difference method
Finite difference methodFinite difference method
Finite difference methodDivyansh Verma
 
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheoryL. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheorySEENET-MTP
 
A new axisymmetric finite element
A new axisymmetric finite elementA new axisymmetric finite element
A new axisymmetric finite elementStefan Duprey
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradientmath267
 

Mais procurados (20)

Semianr 2. (2)
Semianr 2. (2)Semianr 2. (2)
Semianr 2. (2)
 
slides tails copulas
slides tails copulasslides tails copulas
slides tails copulas
 
Minimum mean square error estimation and approximation of the Bayesian update
Minimum mean square error estimation and approximation of the Bayesian updateMinimum mean square error estimation and approximation of the Bayesian update
Minimum mean square error estimation and approximation of the Bayesian update
 
Lecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dualLecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dual
 
Fougeres Besancon Archimax
Fougeres Besancon ArchimaxFougeres Besancon Archimax
Fougeres Besancon Archimax
 
12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x12 derivatives and integrals of inverse trigonometric functions x
12 derivatives and integrals of inverse trigonometric functions x
 
presentazione
presentazionepresentazione
presentazione
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Actuarial Science Reference Sheet
Actuarial Science Reference SheetActuarial Science Reference Sheet
Actuarial Science Reference Sheet
 
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problems
 
Comparing estimation algorithms for block clustering models
Comparing estimation algorithms for block clustering modelsComparing estimation algorithms for block clustering models
Comparing estimation algorithms for block clustering models
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Lesson 24: Implicit Differentiation
Lesson 24: Implicit DifferentiationLesson 24: Implicit Differentiation
Lesson 24: Implicit Differentiation
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flows
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheoryL. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
 
A new axisymmetric finite element
A new axisymmetric finite elementA new axisymmetric finite element
A new axisymmetric finite element
 
Complex varible
Complex varibleComplex varible
Complex varible
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradient
 

Destaque

Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals
Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals
Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals Dhanraj B
 
Business Quiz - AV College, Hyderabad
Business Quiz - AV College, HyderabadBusiness Quiz - AV College, Hyderabad
Business Quiz - AV College, HyderabadTackOn
 
Business quiz Final@ Marian College 2017
Business quiz Final@ Marian College 2017Business quiz Final@ Marian College 2017
Business quiz Final@ Marian College 2017s4saran
 
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT Kharagpur
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT KharagpurPurvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT Kharagpur
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT KharagpurDhanraj B
 

Destaque (6)

Tata Motors General Quiz
Tata Motors General QuizTata Motors General Quiz
Tata Motors General Quiz
 
Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals
Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals
Amrita School of Business Coimbatore Pragati 2016 Business Quiz Finals
 
Business Quiz - AV College, Hyderabad
Business Quiz - AV College, HyderabadBusiness Quiz - AV College, Hyderabad
Business Quiz - AV College, Hyderabad
 
Business quiz Final@ Marian College 2017
Business quiz Final@ Marian College 2017Business quiz Final@ Marian College 2017
Business quiz Final@ Marian College 2017
 
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT Kharagpur
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT KharagpurPurvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT Kharagpur
Purvodaya 2017 Quizzard (Business Quiz) Finals, VGSOM, IIT Kharagpur
 
BUSINESS QUIZ -Round 1
 BUSINESS QUIZ -Round 1 BUSINESS QUIZ -Round 1
BUSINESS QUIZ -Round 1
 

Semelhante a Quiz Handout and Instructions

Transformation of random variables
Transformation of random variablesTransformation of random variables
Transformation of random variablesTarun Gehlot
 
Conditional Expectations Liner algebra
Conditional Expectations Liner algebra Conditional Expectations Liner algebra
Conditional Expectations Liner algebra AZIZ ULLAH SURANI
 
Lesson20 Tangent Planes Slides+Notes
Lesson20   Tangent Planes Slides+NotesLesson20   Tangent Planes Slides+Notes
Lesson20 Tangent Planes Slides+NotesMatthew Leingang
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxcroysierkathey
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxjeremylockett77
 
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...inventionjournals
 
Slides econometrics-2018-graduate-4
Slides econometrics-2018-graduate-4Slides econometrics-2018-graduate-4
Slides econometrics-2018-graduate-4Arthur Charpentier
 
Graduate Econometrics Course, part 4, 2017
Graduate Econometrics Course, part 4, 2017Graduate Econometrics Course, part 4, 2017
Graduate Econometrics Course, part 4, 2017Arthur Charpentier
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
28 work and line integrals
28 work and line integrals28 work and line integrals
28 work and line integralsmath267
 
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docx
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docxMA500-2 Topological Structures 2016Aisling McCluskey, Dar.docx
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docxsmile790243
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integralsTarun Gehlot
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integralsTarun Gehlot
 
partialderivatives
partialderivativespartialderivatives
partialderivativesyash patel
 
4.1 inverse functions
4.1 inverse functions4.1 inverse functions
4.1 inverse functionsmath260
 
Lecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfLecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfSantiagoGarridoBulln
 
IRJET - Fuzzy Soft Hyperideals in Meet Hyperlattices
IRJET - Fuzzy Soft Hyperideals in Meet HyperlatticesIRJET - Fuzzy Soft Hyperideals in Meet Hyperlattices
IRJET - Fuzzy Soft Hyperideals in Meet HyperlatticesIRJET Journal
 
Bellman functions and Lp estimates for paraproducts
Bellman functions and Lp estimates for paraproductsBellman functions and Lp estimates for paraproducts
Bellman functions and Lp estimates for paraproductsVjekoslavKovac1
 

Semelhante a Quiz Handout and Instructions (20)

Transformation of random variables
Transformation of random variablesTransformation of random variables
Transformation of random variables
 
Conditional Expectations Liner algebra
Conditional Expectations Liner algebra Conditional Expectations Liner algebra
Conditional Expectations Liner algebra
 
Lesson20 Tangent Planes Slides+Notes
Lesson20   Tangent Planes Slides+NotesLesson20   Tangent Planes Slides+Notes
Lesson20 Tangent Planes Slides+Notes
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
 
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...
On Coincidence Points in Pseudocompact Tichonov Spaces and Common Fixed Point...
 
Slides econometrics-2018-graduate-4
Slides econometrics-2018-graduate-4Slides econometrics-2018-graduate-4
Slides econometrics-2018-graduate-4
 
18MMA21C-U2.pdf
18MMA21C-U2.pdf18MMA21C-U2.pdf
18MMA21C-U2.pdf
 
Graduate Econometrics Course, part 4, 2017
Graduate Econometrics Course, part 4, 2017Graduate Econometrics Course, part 4, 2017
Graduate Econometrics Course, part 4, 2017
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
28 work and line integrals
28 work and line integrals28 work and line integrals
28 work and line integrals
 
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docx
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docxMA500-2 Topological Structures 2016Aisling McCluskey, Dar.docx
MA500-2 Topological Structures 2016Aisling McCluskey, Dar.docx
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
 
partialderivatives
partialderivativespartialderivatives
partialderivatives
 
4.1 inverse functions
4.1 inverse functions4.1 inverse functions
4.1 inverse functions
 
Lecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdfLecture_Slides_Mathematics_06_Optimization.pdf
Lecture_Slides_Mathematics_06_Optimization.pdf
 
E42012426
E42012426E42012426
E42012426
 
IRJET - Fuzzy Soft Hyperideals in Meet Hyperlattices
IRJET - Fuzzy Soft Hyperideals in Meet HyperlatticesIRJET - Fuzzy Soft Hyperideals in Meet Hyperlattices
IRJET - Fuzzy Soft Hyperideals in Meet Hyperlattices
 
Bellman functions and Lp estimates for paraproducts
Bellman functions and Lp estimates for paraproductsBellman functions and Lp estimates for paraproducts
Bellman functions and Lp estimates for paraproducts
 

Mais 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
 

Último

Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Kirill Klimov
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Pereraictsugar
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMVoces Mineras
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Anamaria Contreras
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 

Último (20)

Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Perera
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQM
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 

Quiz Handout and Instructions

  • 1. Quiz • Pick up quiz and handout on your way in. • Start at 1pm • Finish at 1:10pm • The quiz is not for a grade, but I will be collecting it.
  • 2. Stat 310 Bivariate Change of Variables Garrett Grolemund
  • 3. 1. Review of distribution function techniques 2. Change of variables technique 3. Determining independence 4. Simulating transformations
  • 5. Laker's Mean 87.2 Opponent's Mean 81.2
  • 6. Let X = The Lakers' Score Y = The opponent's score U = X -Y Then the Lakers will win if U is positive, and they will lose if U is negative. How can we model U? (i.e, How can we find the CDF and PDF of U?)
  • 7. Recall from Tuesday U = X - Y is a bivariate transformation The Distribution function technique gives us two ways to model X - Y:
  • 8. 1. Begin with FX,Y(a): Compute FU(a) in terms of FX,Y(a) by equating probabilities
  • 9. 1. Begin with FX,Y(a): Compute FU(a) in terms of FX,Y(a) by equating probabilities FU(a) = P(U < a) = P(X - Y < a) = P(X < Y + a) =?
  • 10. 2. Begin with fX,Y(a) : Compute FU(a) by integrating fX,Y(a) over the region where U < a f(x,y) P(Set A) X Set A Y
  • 11. 2. Begin with fX,Y(a) : Compute FU(a) by integrating fX,Y(a) over the region where U < a f(x,y) ∞ Y+a P(Set A) FU(a) = ∫ ∫ fX,Y(a) dxdy -∞ -∞ X Set A Y
  • 13. Univariate change of variables X U If U = g(X) X = h(U) Where h is the inverse of g, then fU(u) = fx(h(u)) |h'(u)| Method works for bivariate case, once we make the appropriate modifications.
  • 14. Bivariate change of variables (X,Y) (U,V) if U = g1(X, Y) X = h1(U, V) V = g2(X, Y) Y = h2(U, V) Where h is the inverse of g, then fU,V(u, v) = fx,y(h1(U, V) , h2(U, V) ) | J |
  • 15. fU(u) = fx(h(u)) |h'(u)| Since U depends on both X and Y, we replace fx(h(u)) with the joint density fx,y(h(u), * )
  • 16. fU(u) = fx,y(h(u), * ) |h'(u)| A joint density must be a function of two random variables Let X = h1(u) and Y = h2(u)
  • 17. fU(u) = fx,y(h1(u), h2(u)) |h'(u)| But for equality to hold, we must have a function of two variables on the left side as well Define V = g2(X, Y) however you like.
  • 18. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) |h'(u)| Now we have two equations to take derivatives of (h1, h2) and two variables to take the derivative with respect to, (U,V) The multivariate equivalent of h'(u) is the Jacobian, J
  • 19. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | And we're finished
  • 20. Jacobian δx δx δu δv J= δy δy δu δv
  • 21. a b = ad - bc c d δx δx δu δv J= = δx δy - δx δy δy δy δu δv δv δu δu δv
  • 22. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | U=X-Y What should V be?
  • 23. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | U=X-Y What should V be? • Sometimes we want V to be something specific • Otherwise keep V simple or helpful e.g., V = Y
  • 24. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | What should fx,y(*, *) be?
  • 25. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | What should fx,y(*, *) be? First consider: what should fx(*) and fy(*) be?
  • 26. How would we model the Lakers score distribution?
  • 27. How would we model the Lakers score distribution? • Discrete Data
  • 28. How would we model the Lakers score distribution? • Discrete Data • Sum of many bernoulli trials
  • 29. How would we model the Lakers score distribution? • Discrete Data • Sum of many bernoulli trials Poisson?
  • 30. Lakers' scores vs. simulated Poisson (87.2) distributions
  • 31. Opponent's scores vs. simulated Poisson (81.2)
  • 32. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J | X ~ Poisson (87.2) fx(h1(u, v)) = e-87.2 (87.2)h1(u,v) h1(u, v)! Y ~ Poisson (81.2) fy(h2(u, v)) = e-81.2 (81.2)h2(u,v) h2(u, v)! ? fx,y(h1(u, v), h2(u, v)) = fx(h1(u, v)) fy(h2(u, v))
  • 34. fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |
  • 35. Your Turn Calculate the Jacobian of our transformation. Let U = X - Y and V = Y. δx δx δu δv J= = δx δy - δx δy δy δy δu δv δv δu δu δv
  • 36. Your Turn Calculate fU,V(u, v) and express fU(u) as an integral (you do not need to solve that integral). Let U = X - Y and V = Y. Let X ~ Poisson(87.2) and Y ~ Poisson(81.2)
  • 37. Skellam Distribution fU,V(u, v) = e-(87.2 + 81.2) (87.2)h1(u,v)(81.2)h2(u,v) h1(u, v)! h2(u, v)! http://en.wikipedia.org/wiki/Skellam_distribution
  • 39. U values vs. Skellam Distribution
  • 41. Recall: 1. U and V are independent if fU,V(u, v) = fU(u) fV(v) 2. By change of variables: fU,V(u, v) = fx,y(h1(u, v), h2(u, v)) | J |
  • 42. Complete the proof Complete the handout to show that U = X + Y and V = X - Y are independent when X, Y ~ N(0, 1).
  • 44. We can also learn a lot about the distribution of a random variable by simulating it. Let Xi ~ Uniform (0,1) Let U = (X1 + X2 ) / 2 If we generate a 100 pairs of X1 and X2 and plot (X1 + X2 ) / 2 for each pair, we will have a simulation of the distribution of U
  • 45. For comparison, V1 = X1 ~ uniform(0,1) 10,000 samples
  • 46. V1 = (X1 + X2) / 2 10,000 samples
  • 47. V1 = (X1 + X2 + X3) / 3 10,000 samples
  • 48. V1 = (X1 + X2 + … + X10) / 10 10,000 samples
  • 49. V1 = Σ11000 Xi / 1000 10,000 samples