Finding Covariance with Joint PDF and Distribution Table: How to Solve?

Thank you!In summary, the conversation discusses finding the covariance of two random variables with a joint probability distribution function. The formula for covariance is mentioned, but the speaker has trouble understanding it due to the correlation between the variables. The conversation also includes a discussion of the domain and expectation values. The need for normalizing the distribution is also mentioned.
  • #1
laura_a
66
0

Homework Statement



I have a joint pdf f_{XY}(x,y) = (2+x+y)/8

and I have to find cov(x,y)

Homework Equations


Now I know the formula is cov(X,Y)=E((X-mu)(Y-v)) where E(X)=mu and E(Y)=v

Well I found that formula on wikipedia, but it doesn't make sense to me because if E(X)=mu then doesn't E(X-mu) equal zero?

Well that's my main problem, I don't know how to use the formula.

The Attempt at a Solution



I've worked out the distribution table to see if that would help

. . . . y
. . . -1___0___1
. -1 0, 1/8, 1/4 (X=-1) =3/8
x 0 1/8, 1/4, 3/8 (X=0) =3/4
. .1 1/4, 3/8, 1/2 (X=1)=1/18
(Y=-1) = 3/8 (Y=0)=3/4 (Y=1) = 1/1/8

Sorry its not in LaTex I couldn't remember how to start the code.

I've also worked out that the var(Y) = 1 if that is any help? I have an exam on this very soon and I really want to be able to get a hold of all the main concepts... thanks for any information
 
Physics news on Phys.org
  • #2
[tex]cov(X,Y) = E[(X-\mu)(Y-\nu)] = E(X Y) - \mu \nu[/tex]

You are right to say that [tex]E(X) = \mu, E(Y) = \nu[/tex] which is why the cross terms are gone, but...

since the pdf is not separable the variables are correlated and [tex]E(XY) \neq E(X) E(Y)[/tex] and your expression is non-zero.

You must evaluate the expectation values by integration. What is your domain? I ask that because it can't be over the whole space, because your pdf would be non-normalizable.
 
  • #3
The expectation value for a random variable, say for example [tex]X^3 Y^2[/tex], is given by

[tex]E(X^3 Y^2) = \int dx dy f(x,y) x^3 y^2[/tex] if your distribution is already normalized else it's given by

[tex]E(X^3 Y^2) = \frac{\int dx dy f(x,y) x^3 y^2}{\int dx dy f(x,y)}[/tex]
 
  • #4
The domain is -1 < x < 1 and -1 < y < 1
 
  • #5
DavidWhitbeck said:
The expectation value for a random variable, say for example [tex]X^3 Y^2[/tex], is given by

[tex]E(X^3 Y^2) = \int dx dy f(x,y) x^3 y^2[/tex] if your distribution is already normalized else it's given by

[tex]E(X^3 Y^2) = \frac{\int dx dy f(x,y) x^3 y^2}{\int dx dy f(x,y)}[/tex]

Out of curiosity, why would she need to normalize it? From what I understand normalizing would be done to find the correlation matrix.
 
Last edited:
  • #6
exk said:
Out of curiosity, why would she need to normalize it? From what I understand normalizing would be done to find the correlation matrix.

Well the expectation value/mean/average wouldn't be uniquely defined otherwise. It has nothing to do with the correlation matrix, it has to do with the fact that [itex]E(1) = \int f dA = P(\textup{entire domain}) = 1[/itex]. See, it's just one step from an axiom of probability theory.
 
  • #7
Ah of course. I usually check that the pdf integrates to 1 over the domain (general case with classroom problems) and it slipped my mind that this may not be a case like that.
 

FAQ: Finding Covariance with Joint PDF and Distribution Table: How to Solve?

What is covariance and why is it important?

Covariance is a statistical measure that indicates how two variables are related to each other. It measures the direction and strength of the relationship between two variables. It is important because it helps us understand how changes in one variable affect the other variable.

How is covariance calculated?

Covariance is calculated by taking the product of the differences between each data point and the mean of each variable, then dividing by the total number of data points. The formula is: Cov(X,Y) = ∑(xᵢ - x̅)(yᵢ - ȳ) / n

What does a positive/negative covariance indicate?

A positive covariance indicates a direct relationship between the two variables, meaning that as one variable increases, the other variable also tends to increase. A negative covariance indicates an inverse relationship, meaning that as one variable increases, the other variable tends to decrease.

How can covariance be interpreted?

Covariance can be interpreted as a measure of the linear relationship between two variables. A higher covariance indicates a stronger relationship, while a lower covariance indicates a weaker relationship. However, covariance alone does not provide information about the magnitude of the relationship.

How is covariance different from correlation?

Covariance and correlation are both measures of the relationship between two variables. However, correlation is a standardized version of covariance that takes into account the scale of the variables, making it easier to compare the strength of the relationship. Additionally, correlation ranges from -1 to 1, while covariance can have any value.

Back
Top