EasyDeepLearn

Write covariance and correlation formulas.

easy

Answer

  • Cov(X,  Y)  =  E[(X    μX)(Y    μY)]  =  E[XY]    E[X]\operatorname{Cov}(X, \;Y)\; = \;E[(X\; - \;{\mu}_{X})(Y\; - \;{\mu}_{Y})]\; = \;E[\mathrm{XY}]\; - \;E[X]E[Y].
  • Corr(X,  Y)  =  ρ  =  Cov(X,  Y)  /  (σX  σY)\operatorname{Corr}(X, \;Y)\; = \;{\rho}\; = \;\operatorname{Cov}(X, \;Y)\; / \;({\sigma}_{X}\;{\sigma}_{Y}), in [-1, 1].
  • Sample versions: divide by n-1 (unbiased).
  • Correlation is scale-invariant; covariance has weird units (product of X and Y units).
  • Cauchy-Schwarz inequality guarantees  Cov(X,Y)\mathrm{guarantees}\; \mid \operatorname{Cov}(X, Y)| ≤ σX{\sigma}_{X} σY{\sigma}_{Y}, so  ρ\mathrm{so}\; \mid {\rho}| ≤ 1.
Check yourself — multiple choice
  • Cov = E[X]·E[Y]
  • Cov = E[XY] - E[X]E[Y]; ρ  =  Cov/(σX  σY){\rho}\; = \;\operatorname{Cov} / ({\sigma}_{X}\;{\sigma}_{Y}) ∈ [-1,1]; correlation is scale-invariant
  • Correlation unbounded
  • Cov > 1 always

Cov = E[XY]-E[X]E[Y]; correlation scaled to [-1,1] by SDs.

#variance#probability

Practise Statistics Fundamentals

215 interview questions in this topic.

Related questions