19: Covariance

Author

Derek Sollberger

Published

March 8, 2023

Setting

We will once again visualize the act of ordering food at In-n-Out.

  • X: number of fries orders
  • Y: number of beef patties ordered

joint PMF

In-n-Out

Independence

Are X and Y independent?

Covariance

False. In general,

Var(X+Y)=Var(X)+Var(Y)+2(E[XY]E[X]E[Y])

As you probably suspected, Var(X+Y) does equal Var(X)+Var(Y) if X and Y are independent (exercise left to reader).

Covariance

We define the covariance of random variables as

Cov(X,Y)=E[XY]E[X]E[Y]

As an analogy, the random variables somewhat act like waves in that they can work together and grow or somewhat cancel each other out.

  • Image source: https://www.physics-and-radio-electronics.com/physics/waveinterference.html

  • Image credit: Bioinformatics professor Dr. David Ardell

Covariance

  • Compute the covariance in the In-n-Out setting

Continuous Joint Probability Distribution Functions

We will once again visualize the act of ordering food at In-n-Out.

  • X: number of fries orders
  • Y: number of beef patties ordered

with joint PDF

f(x,y)=130(x+y)exey/5

  • Are X and Y independent?

  • Compute the covariance in the In-n-Out setting

In-n-Out

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