Finding covariance for the joint density function $f(y_1, y_2) = 3 y_1$ with $0 leq y_2 leq y_1 leq 1$ and $0$ otherwise
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
The problem asks to find the covariance. The joint density function is defined as,
$$
f(y_1,y_2)=
begincases
3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
0, & textelsewhere. \
endcases
$$
My text defines
$$
operatornameCov(Y_1,Y_2)
= mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
$$
I'm having problems finding $mathbbE(Y_2)$. My attempt is
begingather*
mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
\
f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
= int_0^1 3y_1 ,mathrmdy_1 = frac32,
\
mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
= frac34.
endgather*
But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?
probability probability-theory covariance
add a comment |Â
up vote
3
down vote
favorite
The problem asks to find the covariance. The joint density function is defined as,
$$
f(y_1,y_2)=
begincases
3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
0, & textelsewhere. \
endcases
$$
My text defines
$$
operatornameCov(Y_1,Y_2)
= mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
$$
I'm having problems finding $mathbbE(Y_2)$. My attempt is
begingather*
mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
\
f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
= int_0^1 3y_1 ,mathrmdy_1 = frac32,
\
mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
= frac34.
endgather*
But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?
probability probability-theory covariance
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
The problem asks to find the covariance. The joint density function is defined as,
$$
f(y_1,y_2)=
begincases
3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
0, & textelsewhere. \
endcases
$$
My text defines
$$
operatornameCov(Y_1,Y_2)
= mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
$$
I'm having problems finding $mathbbE(Y_2)$. My attempt is
begingather*
mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
\
f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
= int_0^1 3y_1 ,mathrmdy_1 = frac32,
\
mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
= frac34.
endgather*
But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?
probability probability-theory covariance
The problem asks to find the covariance. The joint density function is defined as,
$$
f(y_1,y_2)=
begincases
3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
0, & textelsewhere. \
endcases
$$
My text defines
$$
operatornameCov(Y_1,Y_2)
= mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
$$
I'm having problems finding $mathbbE(Y_2)$. My attempt is
begingather*
mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
\
f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
= int_0^1 3y_1 ,mathrmdy_1 = frac32,
\
mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
= frac34.
endgather*
But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?
probability probability-theory covariance
edited Aug 26 at 21:07
Jendrik Stelzner
7,63121037
7,63121037
asked Aug 26 at 20:35
1337
284
284
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
1
down vote
accepted
Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that
$$0 leq y_2 leq y_1 leq 1.$$
Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:
$$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
=int_y_2^13y_1dy_1=frac32(1-y_2^2),$$
valid for $0 leq y_2 leq 1.$
Then, the expected value of $Y_2$ is:
.
$$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$
Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
add a comment |Â
up vote
1
down vote
$$
f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
$$
The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
add a comment |Â
up vote
0
down vote
To find $E(Y_2)$ you should use a double integral since the density function has two variables.
begineqnarray*
E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
int_0^1 frac3y_1^32 ,, dy_1 \
E(Y_2) &=& frac3y_1^48 Big|_0^1 \
E(Y_2) &=& frac38
endeqnarray*
I hope this helps. Feel free to ask a follow up question.
Bob
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that
$$0 leq y_2 leq y_1 leq 1.$$
Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:
$$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
=int_y_2^13y_1dy_1=frac32(1-y_2^2),$$
valid for $0 leq y_2 leq 1.$
Then, the expected value of $Y_2$ is:
.
$$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$
Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
add a comment |Â
up vote
1
down vote
accepted
Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that
$$0 leq y_2 leq y_1 leq 1.$$
Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:
$$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
=int_y_2^13y_1dy_1=frac32(1-y_2^2),$$
valid for $0 leq y_2 leq 1.$
Then, the expected value of $Y_2$ is:
.
$$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$
Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that
$$0 leq y_2 leq y_1 leq 1.$$
Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:
$$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
=int_y_2^13y_1dy_1=frac32(1-y_2^2),$$
valid for $0 leq y_2 leq 1.$
Then, the expected value of $Y_2$ is:
.
$$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$
Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$
Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that
$$0 leq y_2 leq y_1 leq 1.$$
Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:
$$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
=int_y_2^13y_1dy_1=frac32(1-y_2^2),$$
valid for $0 leq y_2 leq 1.$
Then, the expected value of $Y_2$ is:
.
$$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$
Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$
answered Aug 26 at 20:42
the_candyman
8,15721942
8,15721942
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
add a comment |Â
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
â Bob
Aug 26 at 20:51
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
I understand this way. Why is @Bob 's answer also correct?
â 1337
Aug 26 at 21:05
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
Why do think my answer is wrong?
â Bob
Aug 26 at 21:49
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
@Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
â the_candyman
Aug 26 at 22:22
add a comment |Â
up vote
1
down vote
$$
f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
$$
The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
add a comment |Â
up vote
1
down vote
$$
f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
$$
The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
add a comment |Â
up vote
1
down vote
up vote
1
down vote
$$
f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
$$
The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.
$$
f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
$$
The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.
edited Aug 26 at 21:12
answered Aug 26 at 21:06
Michael Hardy
205k23187464
205k23187464
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
add a comment |Â
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
â 1337
Aug 26 at 21:09
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
@1337 : Sorry --- I mistook one variable for the other. I've fixed it.
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
â Michael Hardy
Aug 26 at 21:13
add a comment |Â
up vote
0
down vote
To find $E(Y_2)$ you should use a double integral since the density function has two variables.
begineqnarray*
E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
int_0^1 frac3y_1^32 ,, dy_1 \
E(Y_2) &=& frac3y_1^48 Big|_0^1 \
E(Y_2) &=& frac38
endeqnarray*
I hope this helps. Feel free to ask a follow up question.
Bob
add a comment |Â
up vote
0
down vote
To find $E(Y_2)$ you should use a double integral since the density function has two variables.
begineqnarray*
E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
int_0^1 frac3y_1^32 ,, dy_1 \
E(Y_2) &=& frac3y_1^48 Big|_0^1 \
E(Y_2) &=& frac38
endeqnarray*
I hope this helps. Feel free to ask a follow up question.
Bob
add a comment |Â
up vote
0
down vote
up vote
0
down vote
To find $E(Y_2)$ you should use a double integral since the density function has two variables.
begineqnarray*
E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
int_0^1 frac3y_1^32 ,, dy_1 \
E(Y_2) &=& frac3y_1^48 Big|_0^1 \
E(Y_2) &=& frac38
endeqnarray*
I hope this helps. Feel free to ask a follow up question.
Bob
To find $E(Y_2)$ you should use a double integral since the density function has two variables.
begineqnarray*
E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
int_0^1 frac3y_1^32 ,, dy_1 \
E(Y_2) &=& frac3y_1^48 Big|_0^1 \
E(Y_2) &=& frac38
endeqnarray*
I hope this helps. Feel free to ask a follow up question.
Bob
answered Aug 26 at 20:47
Bob
778411
778411
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2895488%2ffinding-covariance-for-the-joint-density-function-fy-1-y-2-3-y-1-with-0%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password