Finding covariance using the joint pdf

  • Context: Graduate 
  • Thread starter Thread starter Flashcop
  • Start date Start date
  • Tags Tags
    Covariance Joint Pdf
Click For Summary
SUMMARY

The discussion centers on calculating the covariance Cov(X,Y) using the joint probability density function f(x,y) = 24xy for the region defined by 0 < x + y < 1 and 0 < x, y. The user initially applied the formula Cov(X,Y) = E(XY) - E(X)E(Y) but arrived at an incorrect result. A suggested alternative method involves using Cov(X,Y) = E[(X - E[X])(Y - E[Y])]f(x,y)dxdy, which confirmed the user's previous result of -2/75, indicating no algebraic errors were made.

PREREQUISITES
  • Understanding of joint probability density functions
  • Knowledge of covariance and its mathematical definitions
  • Familiarity with double integrals in calculus
  • Experience with algebraic manipulation in probability calculations
NEXT STEPS
  • Study the derivation of covariance using joint probability distributions
  • Learn about the properties of expected values in probability theory
  • Explore advanced techniques in multivariable calculus for integration
  • Review examples of calculating covariance with different joint distributions
USEFUL FOR

Students and professionals in statistics, data science, or any field requiring a solid understanding of covariance and joint probability distributions.

Flashcop
Messages
2
Reaction score
0
The following question appeared on a practice exam:

For
f(x,y) = 24xy if 0<x+y<1 , 0<x,y
0 elsewhere

find Cov(X,Y)

I used Cov(X,Y) = E(XY) - E(X)E(Y) to calculate covariance, with

E(XY) = \int^{1}_{0}\int^{1-y}_{0}24x^{2}y^{2}dxdy

but for some reason I didn't get the suggested answer of 1/15

Can someone explain to me what I did wrong? Was there something wrong with the terminals?
 
Physics news on Phys.org
Flashcop said:
The following question appeared on a practice exam:

For
f(x,y) = 24xy if 0<x+y<1 , 0<x,y
0 elsewhere

find Cov(X,Y)

I used Cov(X,Y) = E(XY) - E(X)E(Y) to calculate covariance, with

E(XY) = \int^{1}_{0}\int^{1-y}_{0}24x^{2}y^{2}dxdy

but for some reason I didn't get the suggested answer of 1/15

Can someone explain to me what I did wrong? Was there something wrong with the terminals?

Hey Flashcop and welcome to the forums.

If I were you I would in later cases use the alternative definition COV(X,Y) = E[[X-E[X][Y-E[Y]] and calculate (X - E[X])(Y - E[Y])f(x,y)dxdy for the integral to double check your calculations if you think something is awry (it is redundant but it is a good way to cross-check your calculations in the case of say an algebraic mistake).

For this problem, I think the best way to get relevant advice is to go through your calculation step by step and post it here so that we can go through your algebra and your reasoning.
 
chiro said:
Hey Flashcop and welcome to the forums.

If I were you I would in later cases use the alternative definition COV(X,Y) = E[[X-E[X][Y-E[Y]] and calculate (X - E[X])(Y - E[Y])f(x,y)dxdy for the integral to double check your calculations if you think something is awry (it is redundant but it is a good way to cross-check your calculations in the case of say an algebraic mistake).

For this problem, I think the best way to get relevant advice is to go through your calculation step by step and post it here so that we can go through your algebra and your reasoning.

Thanks mate :)

So using the alternate definition, I got:

Cov(X,Y) = 24 \int^{1}_{0}\int^{1-y}_{0}(x-\frac{2}{5})(y-\frac{2}{5})xydxdy
= 24 \int^{1}_{0}\int^{1-y}_{0}x^{2}y^{2}-\frac{2x^{2}y}{5}-\frac{2xy^{2}}{5}+\frac{4xy}{25}dxdy
=24\int^{1}_{0}\frac{-1}{75}(2-5y)^{2}(y-1)^{2}ydy
=\frac{-24}{75}\int^{1}_{0}(2-5y)^{2}(y-1)^{2}ydy
=\frac{-24}{75}*\frac{1}{12}<br /> =\frac{-2}{75}

Which is the same answer I got before, so that probably rules out any algebraic errors.
 

Similar threads

  • · Replies 43 ·
2
Replies
43
Views
6K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K