17: Continuous Joint Distributions

Author

Derek Sollberger

Published

March 3, 2023

Joint Probability Density Function

Joint Probability Density Function

The joint probability density function f(x,y) to handle simultaneous calculations of random variables X and Y can be expressed as

P(a1<X<a2,b1<Y<b2)=a1a2b1b2f(x,y)dydx

Properties
  • Each probability is between zero and one inclusively 0f(x,y)1 for all $x$,$y$
  • All probabilities add up to 100 percent f(x,y)dxdy=1

Setting

For the examples in this lecture session, we will model the queues at In-n-Out with random variables

In-n-Out

  • X: wait time to order food
  • Y: wait time to receive food

and a function of the form

f(x,y)=kxyexey/5,

x>0,y>0

Normalization

Find the value of k so that f is a probability density function.

f(x,y)=kxyexey/5,x>0,y>0

Joint Probability

f(x,y)=125xyexey/5,x>0,y>0

Compute the probability that you will take {between 1 and 2 minutes to order} and wait {between 3 and 4 minutes to receive} your food.

Joint Cumulative Distribution Function

Joint Cumulative Distribution Function

In general, we handle the probability calculations with the joint cumulative distribution function F(a,b)

% joint cumulative distribution function F(a,b)=P(Xa,Yb)=abf(x,y)dydx

Properties

We can verify that the joint CDF starts at zero

F(0,0)=0

and that the joint CDF collects all probabilities

lima,bF(a,b)=1

If need be, we can recover the joint PDF from the joint CDF as the mixed second-order partial derivatives

f(x,y)=2xyF(x,y)

What is the joint CDF for the In-n-Out setting?

Marginal Probabilities

Marginal Cumulative Distribution Functions

The marginal cumulative distribution functions can be computed as

% marginal CDF FX(a)=limbF(a,b)FY(b)=limaF(a,b)

Properties

Intuition: the marginal CDF is seeking to analyze the probabilities in just one variable regardless of the other variables, so ``eliminate’’ the other varibles by taking their limits to infinity.

We can verify that the marginal CDFs start at zero

FX(0)=0 and FY(0)=0

and that the marginal CDFs collect all probabilities

limaFX(a)=1 and limbFY(b)=1

What are the marginal CDFs for the In-n-Out setting?

Marginal Probabilities

Marginal Cumulative Distribution Functions

The marginal probability density functions can be computed as

fX(x)=f(x,y)dyfY(y)=f(x,y)dx
Intuition

Intuition: the marginal PDF is seeking to analyze the probabilities in just one variable regardless of the other variables, so ``integrate out’’ the other variables.

Alternatively,

fX(x)=ddxFX(x) and fY(y)=ddyFY(y)

What are the marginal PDFs for the In-n-Out setting?

Marginal Expectation

In-N-Out

  • What is the expected wait time to order food?
  • What is the expected wait time to receive food?

Independence

Independence

Recall that two events A and B are independent if

P(AB)=P(A)P(B)

Here, the variables X and Y in the In-n-Out example were independent, which can be easily verified by noting that the integrals were separable.

f(x,y)=fX(x)fY(y)125xyexey/5=xexy25ey/5

and

F(a,b)=abf(x,y)dydx =1250a0bxyexey/5dydx =125(0axexdx)(0byey/5dy)
Dependence

Upcoming lectures: dependent variables

Looking Ahead

  • due Fri., Mar. 10:

    • WHW7
    • LHW6
    • Internet Connection (survey)
  • Exam 2 will be on Mon., Apr. 10

  • no lecture on Mar. 10, Mar. 24

tweet source