First off, all I'm asking for is how to set it up. I'm capable of solving the math myself but I need to know how to do this stuff since I have my exam tomorrow and our teacher decided to kind of 'omit' this stuff in class and leave it up to us to learn.
Anyways, I need to compute the covariance on something that looks like this:
********************y
--------------------------------------------
**************0*****250****500
--------------------------------------------
**200********.2*****.10****.20
x
**500 *******.05****.15****.30
--------------------------------------------
Yes, that took about 10 minutes to make...I'm sure there's a better way but I don't really have the time to find it right now.
Basically, I've been told that h(x,y) is some function of x and y...and along with this the mean is the weighted average of h(x,y), with the weights given by the joint mass or density function. So basically that means it's either the double summation of h(x,y)f(x,y) for x,y being discrete or the double integral of h(x,y)f(x,y)dxdy if x,y is continuous.
Then, after I have the mean values (Ux and Uy respectively) I use the function h(x,y)=(x-Ux)(y-Uy) and the mean value from this product of deviations is the covariance.
In short, WTF. I have a very basic idea of what to do but besides that I'm totally lost. I'd appreciate it if someone could even just list the basic steps of what I need to do.
Thanks again my fellow ATOT'ers
Anyways, I need to compute the covariance on something that looks like this:
********************y
--------------------------------------------
**************0*****250****500
--------------------------------------------
**200********.2*****.10****.20
x
**500 *******.05****.15****.30
--------------------------------------------
Yes, that took about 10 minutes to make...I'm sure there's a better way but I don't really have the time to find it right now.
Basically, I've been told that h(x,y) is some function of x and y...and along with this the mean is the weighted average of h(x,y), with the weights given by the joint mass or density function. So basically that means it's either the double summation of h(x,y)f(x,y) for x,y being discrete or the double integral of h(x,y)f(x,y)dxdy if x,y is continuous.
Then, after I have the mean values (Ux and Uy respectively) I use the function h(x,y)=(x-Ux)(y-Uy) and the mean value from this product of deviations is the covariance.
In short, WTF. I have a very basic idea of what to do but besides that I'm totally lost. I'd appreciate it if someone could even just list the basic steps of what I need to do.
Thanks again my fellow ATOT'ers