Expected value for randomly assigned sum and product of random variables












0














I pick randomly, with the weights indicated and without replacement 4 numbers from this table,



begin{array}{c|c}
Value & Weight \
63 & 1 \
91 & 2 \
78 & 3 \
85 & 4 \
hline
1 & 6 \
2 & 2 \
3 & 2 \
end{array}



The outcome of the process is defined as the sum of the values if they are among the top part of the table, but if the value comes from the lower part of the table then it is a factor of the previous value.
Examples,



If the drawn 4 values are $63, 91, 78, 85$ the outcome is $63+91+78+85$



If the drawn 4 values are $85, 3, 78, 1$ the outcome is $85cdot3+78cdot1$



If the drawn 4 values are $78, 3, 2, 1$ the outcome is $78cdot3cdot2cdot1$



(The first value is assumed to be one of the 4 firsts).



Now I want to compute the average outcome of this process, this is, the expected value for the outcome.



How can I compute the expected value?



My problem is that I don't know how to define my random variable. For each sample, I can compute the expectation value if I know in which group it is,



If $X$ is a random variable drawn from the 4 first values,



$E(X) = frac{1}{10}63 + frac{2}{10}91+ frac{3}{10}78+ frac{4}{10}85$



Equivalently, if $Y$ is a random variable drawn from the 3 last values,



$E(Y) = frac{6}{10}1 + frac{2}{10}2+ frac{2}{10}3$



Now, to compute the outcome expected value, I feel that this would work using the linearity of the expectation value, but without defining the outcome random variable is very difficult.



My attempt is the following but I don't know whether this is SUPER WRONG or CORRECT, If the first one is always $X$ (from the first group), there are 6 possibilities for other 3 (1.XXXX 2.XYXX 3.XYYX 4.XYYY 5.XYXY 6.XXYY) that let me define the random variable for each case,



$Z_a = X_1 + X_2 +X_3 +X_4$



$Z_b = X_1cdot Y_1 +X_2 +X_3$



$Z_c = X_1cdot Y_1cdot Y_2+X_2$



$Z_d = X_1cdot Y_1cdot Y_2cdot Y_3$



$Z_e = X_1cdot Y_1+X_2cdot Y_2$



$Z_f = X_1+X_2cdot Y_1cdot Y_2$



Now, the $E(Z_alpha)$ is simple due to linearity, for example



$E(Z_e) = E(X_1)*E(Y_1)+E(X_2)cdot E(Y_2)$



and



$E(X_i) = E(X) forall i$ and $E(Y_j) = E(Y) forall j$



And then the expected value of my outcome would be



$frac{E(Z_a)+E(Z_b)+E(Z_c)+E(Z_d)+E(Z_e)+E(Z_f))}{8}$



which uses that all the $Z$s are equally likely because the probability of each drawn to be $X$ or $Y$ are 50/50 (because the sum of the weights of each group is the same).



Thanks in advance










share|cite|improve this question
























  • An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
    – Graham Kemp
    Nov 22 '18 at 0:36










  • Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
    – myradio
    Nov 22 '18 at 8:19












  • Linearity of Expectation works with addition of random variables, not multiplication.
    – Graham Kemp
    Nov 22 '18 at 9:23










  • I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
    – myradio
    Nov 22 '18 at 9:29


















0














I pick randomly, with the weights indicated and without replacement 4 numbers from this table,



begin{array}{c|c}
Value & Weight \
63 & 1 \
91 & 2 \
78 & 3 \
85 & 4 \
hline
1 & 6 \
2 & 2 \
3 & 2 \
end{array}



The outcome of the process is defined as the sum of the values if they are among the top part of the table, but if the value comes from the lower part of the table then it is a factor of the previous value.
Examples,



If the drawn 4 values are $63, 91, 78, 85$ the outcome is $63+91+78+85$



If the drawn 4 values are $85, 3, 78, 1$ the outcome is $85cdot3+78cdot1$



If the drawn 4 values are $78, 3, 2, 1$ the outcome is $78cdot3cdot2cdot1$



(The first value is assumed to be one of the 4 firsts).



Now I want to compute the average outcome of this process, this is, the expected value for the outcome.



How can I compute the expected value?



My problem is that I don't know how to define my random variable. For each sample, I can compute the expectation value if I know in which group it is,



If $X$ is a random variable drawn from the 4 first values,



$E(X) = frac{1}{10}63 + frac{2}{10}91+ frac{3}{10}78+ frac{4}{10}85$



Equivalently, if $Y$ is a random variable drawn from the 3 last values,



$E(Y) = frac{6}{10}1 + frac{2}{10}2+ frac{2}{10}3$



Now, to compute the outcome expected value, I feel that this would work using the linearity of the expectation value, but without defining the outcome random variable is very difficult.



My attempt is the following but I don't know whether this is SUPER WRONG or CORRECT, If the first one is always $X$ (from the first group), there are 6 possibilities for other 3 (1.XXXX 2.XYXX 3.XYYX 4.XYYY 5.XYXY 6.XXYY) that let me define the random variable for each case,



$Z_a = X_1 + X_2 +X_3 +X_4$



$Z_b = X_1cdot Y_1 +X_2 +X_3$



$Z_c = X_1cdot Y_1cdot Y_2+X_2$



$Z_d = X_1cdot Y_1cdot Y_2cdot Y_3$



$Z_e = X_1cdot Y_1+X_2cdot Y_2$



$Z_f = X_1+X_2cdot Y_1cdot Y_2$



Now, the $E(Z_alpha)$ is simple due to linearity, for example



$E(Z_e) = E(X_1)*E(Y_1)+E(X_2)cdot E(Y_2)$



and



$E(X_i) = E(X) forall i$ and $E(Y_j) = E(Y) forall j$



And then the expected value of my outcome would be



$frac{E(Z_a)+E(Z_b)+E(Z_c)+E(Z_d)+E(Z_e)+E(Z_f))}{8}$



which uses that all the $Z$s are equally likely because the probability of each drawn to be $X$ or $Y$ are 50/50 (because the sum of the weights of each group is the same).



Thanks in advance










share|cite|improve this question
























  • An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
    – Graham Kemp
    Nov 22 '18 at 0:36










  • Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
    – myradio
    Nov 22 '18 at 8:19












  • Linearity of Expectation works with addition of random variables, not multiplication.
    – Graham Kemp
    Nov 22 '18 at 9:23










  • I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
    – myradio
    Nov 22 '18 at 9:29
















0












0








0


1





I pick randomly, with the weights indicated and without replacement 4 numbers from this table,



begin{array}{c|c}
Value & Weight \
63 & 1 \
91 & 2 \
78 & 3 \
85 & 4 \
hline
1 & 6 \
2 & 2 \
3 & 2 \
end{array}



The outcome of the process is defined as the sum of the values if they are among the top part of the table, but if the value comes from the lower part of the table then it is a factor of the previous value.
Examples,



If the drawn 4 values are $63, 91, 78, 85$ the outcome is $63+91+78+85$



If the drawn 4 values are $85, 3, 78, 1$ the outcome is $85cdot3+78cdot1$



If the drawn 4 values are $78, 3, 2, 1$ the outcome is $78cdot3cdot2cdot1$



(The first value is assumed to be one of the 4 firsts).



Now I want to compute the average outcome of this process, this is, the expected value for the outcome.



How can I compute the expected value?



My problem is that I don't know how to define my random variable. For each sample, I can compute the expectation value if I know in which group it is,



If $X$ is a random variable drawn from the 4 first values,



$E(X) = frac{1}{10}63 + frac{2}{10}91+ frac{3}{10}78+ frac{4}{10}85$



Equivalently, if $Y$ is a random variable drawn from the 3 last values,



$E(Y) = frac{6}{10}1 + frac{2}{10}2+ frac{2}{10}3$



Now, to compute the outcome expected value, I feel that this would work using the linearity of the expectation value, but without defining the outcome random variable is very difficult.



My attempt is the following but I don't know whether this is SUPER WRONG or CORRECT, If the first one is always $X$ (from the first group), there are 6 possibilities for other 3 (1.XXXX 2.XYXX 3.XYYX 4.XYYY 5.XYXY 6.XXYY) that let me define the random variable for each case,



$Z_a = X_1 + X_2 +X_3 +X_4$



$Z_b = X_1cdot Y_1 +X_2 +X_3$



$Z_c = X_1cdot Y_1cdot Y_2+X_2$



$Z_d = X_1cdot Y_1cdot Y_2cdot Y_3$



$Z_e = X_1cdot Y_1+X_2cdot Y_2$



$Z_f = X_1+X_2cdot Y_1cdot Y_2$



Now, the $E(Z_alpha)$ is simple due to linearity, for example



$E(Z_e) = E(X_1)*E(Y_1)+E(X_2)cdot E(Y_2)$



and



$E(X_i) = E(X) forall i$ and $E(Y_j) = E(Y) forall j$



And then the expected value of my outcome would be



$frac{E(Z_a)+E(Z_b)+E(Z_c)+E(Z_d)+E(Z_e)+E(Z_f))}{8}$



which uses that all the $Z$s are equally likely because the probability of each drawn to be $X$ or $Y$ are 50/50 (because the sum of the weights of each group is the same).



Thanks in advance










share|cite|improve this question















I pick randomly, with the weights indicated and without replacement 4 numbers from this table,



begin{array}{c|c}
Value & Weight \
63 & 1 \
91 & 2 \
78 & 3 \
85 & 4 \
hline
1 & 6 \
2 & 2 \
3 & 2 \
end{array}



The outcome of the process is defined as the sum of the values if they are among the top part of the table, but if the value comes from the lower part of the table then it is a factor of the previous value.
Examples,



If the drawn 4 values are $63, 91, 78, 85$ the outcome is $63+91+78+85$



If the drawn 4 values are $85, 3, 78, 1$ the outcome is $85cdot3+78cdot1$



If the drawn 4 values are $78, 3, 2, 1$ the outcome is $78cdot3cdot2cdot1$



(The first value is assumed to be one of the 4 firsts).



Now I want to compute the average outcome of this process, this is, the expected value for the outcome.



How can I compute the expected value?



My problem is that I don't know how to define my random variable. For each sample, I can compute the expectation value if I know in which group it is,



If $X$ is a random variable drawn from the 4 first values,



$E(X) = frac{1}{10}63 + frac{2}{10}91+ frac{3}{10}78+ frac{4}{10}85$



Equivalently, if $Y$ is a random variable drawn from the 3 last values,



$E(Y) = frac{6}{10}1 + frac{2}{10}2+ frac{2}{10}3$



Now, to compute the outcome expected value, I feel that this would work using the linearity of the expectation value, but without defining the outcome random variable is very difficult.



My attempt is the following but I don't know whether this is SUPER WRONG or CORRECT, If the first one is always $X$ (from the first group), there are 6 possibilities for other 3 (1.XXXX 2.XYXX 3.XYYX 4.XYYY 5.XYXY 6.XXYY) that let me define the random variable for each case,



$Z_a = X_1 + X_2 +X_3 +X_4$



$Z_b = X_1cdot Y_1 +X_2 +X_3$



$Z_c = X_1cdot Y_1cdot Y_2+X_2$



$Z_d = X_1cdot Y_1cdot Y_2cdot Y_3$



$Z_e = X_1cdot Y_1+X_2cdot Y_2$



$Z_f = X_1+X_2cdot Y_1cdot Y_2$



Now, the $E(Z_alpha)$ is simple due to linearity, for example



$E(Z_e) = E(X_1)*E(Y_1)+E(X_2)cdot E(Y_2)$



and



$E(X_i) = E(X) forall i$ and $E(Y_j) = E(Y) forall j$



And then the expected value of my outcome would be



$frac{E(Z_a)+E(Z_b)+E(Z_c)+E(Z_d)+E(Z_e)+E(Z_f))}{8}$



which uses that all the $Z$s are equally likely because the probability of each drawn to be $X$ or $Y$ are 50/50 (because the sum of the weights of each group is the same).



Thanks in advance







probability random-variables combinations expected-value






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 22 '18 at 11:49







myradio

















asked Nov 21 '18 at 23:13









myradiomyradio

1267




1267












  • An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
    – Graham Kemp
    Nov 22 '18 at 0:36










  • Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
    – myradio
    Nov 22 '18 at 8:19












  • Linearity of Expectation works with addition of random variables, not multiplication.
    – Graham Kemp
    Nov 22 '18 at 9:23










  • I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
    – myradio
    Nov 22 '18 at 9:29




















  • An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
    – Graham Kemp
    Nov 22 '18 at 0:36










  • Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
    – myradio
    Nov 22 '18 at 8:19












  • Linearity of Expectation works with addition of random variables, not multiplication.
    – Graham Kemp
    Nov 22 '18 at 9:23










  • I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
    – myradio
    Nov 22 '18 at 9:29


















An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
– Graham Kemp
Nov 22 '18 at 0:36




An Issue: If you select without replacement, then the values will not be uncorrelated. $$mathsf E(X_1cdot Y_2)neqmathsf E(X_1)mathsf E(Y_2)$$
– Graham Kemp
Nov 22 '18 at 0:36












Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
– myradio
Nov 22 '18 at 8:19






Is that so? Then I am a bit confused because I was reading other posts on expected value without replacement and they explain that the probabilities vary but the expectation value does not change. Like this post: math.stackexchange.com/questions/1857916/… math.stackexchange.com/a/2906224/523753
– myradio
Nov 22 '18 at 8:19














Linearity of Expectation works with addition of random variables, not multiplication.
– Graham Kemp
Nov 22 '18 at 9:23




Linearity of Expectation works with addition of random variables, not multiplication.
– Graham Kemp
Nov 22 '18 at 9:23












I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
– myradio
Nov 22 '18 at 9:29






I was thinking in $Y$ as a constant once fixed. With the typical notation of $a$ being a constant value, we usually have that $E(a cdot X)=a.E(X)=E(a)E(X)$. But I guess it was wrong to assume that if now instead of a constant $a$ I have another random variable I can just do $E(Y cdot X)=E(Y)E(X)$. Maybe I should use the fact that $X$ and $Y$ are equally likely and think them separately?
– myradio
Nov 22 '18 at 9:29












1 Answer
1






active

oldest

votes


















1














Let's use the values, $4,5,6, 1,2,3$, equal weighting, and only two selections.   If the second selection is one from the first three numbers we multiply, else we add.



The expectation is: $begin{align}mathsf E(g(X,Y)) &= mathsf E(XYmathbf 1_{Yin{4,5,6}})+mathsf E((X+Y)mathbf 1_{Yin{1,2,3}})\&= {tfrac 1{30}left( (1+2+3+5+6)4+(1+2+3+4+6)5+(1+2+3+4+5)6right) +tfrac 16left( ((2+3+4+5+6)+1)+((1+2+3+4+5+6)+2)+((1+2+4+5+6)+3) right)}\ &=tfrac 1{30}left(17cdot4+16cdot 5+15cdot 6right)+tfrac 16left(21cdot 3right)\&=tfrac{553}{30}end{align}$



By your method: $mathsf E(X)mathsf E(Ymathbf 1_{Yin{4,5,6}})+mathsf E(X)+mathsf E(Ymathbf 1_{Yin{1,2,3}})\=tfrac 1{36}(21)(15)+tfrac{21}6+tfrac {6}6\=tfrac{477}{36}$






share|cite|improve this answer





















  • This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
    – myradio
    Nov 22 '18 at 10:30












  • Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
    – myradio
    Nov 22 '18 at 11:35











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3008514%2fexpected-value-for-randomly-assigned-sum-and-product-of-random-variables%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Let's use the values, $4,5,6, 1,2,3$, equal weighting, and only two selections.   If the second selection is one from the first three numbers we multiply, else we add.



The expectation is: $begin{align}mathsf E(g(X,Y)) &= mathsf E(XYmathbf 1_{Yin{4,5,6}})+mathsf E((X+Y)mathbf 1_{Yin{1,2,3}})\&= {tfrac 1{30}left( (1+2+3+5+6)4+(1+2+3+4+6)5+(1+2+3+4+5)6right) +tfrac 16left( ((2+3+4+5+6)+1)+((1+2+3+4+5+6)+2)+((1+2+4+5+6)+3) right)}\ &=tfrac 1{30}left(17cdot4+16cdot 5+15cdot 6right)+tfrac 16left(21cdot 3right)\&=tfrac{553}{30}end{align}$



By your method: $mathsf E(X)mathsf E(Ymathbf 1_{Yin{4,5,6}})+mathsf E(X)+mathsf E(Ymathbf 1_{Yin{1,2,3}})\=tfrac 1{36}(21)(15)+tfrac{21}6+tfrac {6}6\=tfrac{477}{36}$






share|cite|improve this answer





















  • This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
    – myradio
    Nov 22 '18 at 10:30












  • Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
    – myradio
    Nov 22 '18 at 11:35
















1














Let's use the values, $4,5,6, 1,2,3$, equal weighting, and only two selections.   If the second selection is one from the first three numbers we multiply, else we add.



The expectation is: $begin{align}mathsf E(g(X,Y)) &= mathsf E(XYmathbf 1_{Yin{4,5,6}})+mathsf E((X+Y)mathbf 1_{Yin{1,2,3}})\&= {tfrac 1{30}left( (1+2+3+5+6)4+(1+2+3+4+6)5+(1+2+3+4+5)6right) +tfrac 16left( ((2+3+4+5+6)+1)+((1+2+3+4+5+6)+2)+((1+2+4+5+6)+3) right)}\ &=tfrac 1{30}left(17cdot4+16cdot 5+15cdot 6right)+tfrac 16left(21cdot 3right)\&=tfrac{553}{30}end{align}$



By your method: $mathsf E(X)mathsf E(Ymathbf 1_{Yin{4,5,6}})+mathsf E(X)+mathsf E(Ymathbf 1_{Yin{1,2,3}})\=tfrac 1{36}(21)(15)+tfrac{21}6+tfrac {6}6\=tfrac{477}{36}$






share|cite|improve this answer





















  • This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
    – myradio
    Nov 22 '18 at 10:30












  • Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
    – myradio
    Nov 22 '18 at 11:35














1












1








1






Let's use the values, $4,5,6, 1,2,3$, equal weighting, and only two selections.   If the second selection is one from the first three numbers we multiply, else we add.



The expectation is: $begin{align}mathsf E(g(X,Y)) &= mathsf E(XYmathbf 1_{Yin{4,5,6}})+mathsf E((X+Y)mathbf 1_{Yin{1,2,3}})\&= {tfrac 1{30}left( (1+2+3+5+6)4+(1+2+3+4+6)5+(1+2+3+4+5)6right) +tfrac 16left( ((2+3+4+5+6)+1)+((1+2+3+4+5+6)+2)+((1+2+4+5+6)+3) right)}\ &=tfrac 1{30}left(17cdot4+16cdot 5+15cdot 6right)+tfrac 16left(21cdot 3right)\&=tfrac{553}{30}end{align}$



By your method: $mathsf E(X)mathsf E(Ymathbf 1_{Yin{4,5,6}})+mathsf E(X)+mathsf E(Ymathbf 1_{Yin{1,2,3}})\=tfrac 1{36}(21)(15)+tfrac{21}6+tfrac {6}6\=tfrac{477}{36}$






share|cite|improve this answer












Let's use the values, $4,5,6, 1,2,3$, equal weighting, and only two selections.   If the second selection is one from the first three numbers we multiply, else we add.



The expectation is: $begin{align}mathsf E(g(X,Y)) &= mathsf E(XYmathbf 1_{Yin{4,5,6}})+mathsf E((X+Y)mathbf 1_{Yin{1,2,3}})\&= {tfrac 1{30}left( (1+2+3+5+6)4+(1+2+3+4+6)5+(1+2+3+4+5)6right) +tfrac 16left( ((2+3+4+5+6)+1)+((1+2+3+4+5+6)+2)+((1+2+4+5+6)+3) right)}\ &=tfrac 1{30}left(17cdot4+16cdot 5+15cdot 6right)+tfrac 16left(21cdot 3right)\&=tfrac{553}{30}end{align}$



By your method: $mathsf E(X)mathsf E(Ymathbf 1_{Yin{4,5,6}})+mathsf E(X)+mathsf E(Ymathbf 1_{Yin{1,2,3}})\=tfrac 1{36}(21)(15)+tfrac{21}6+tfrac {6}6\=tfrac{477}{36}$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 22 '18 at 9:59









Graham KempGraham Kemp

84.7k43378




84.7k43378












  • This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
    – myradio
    Nov 22 '18 at 10:30












  • Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
    – myradio
    Nov 22 '18 at 11:35


















  • This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
    – myradio
    Nov 22 '18 at 10:30












  • Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
    – myradio
    Nov 22 '18 at 11:35
















This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
– myradio
Nov 22 '18 at 10:30






This seems right which indeed proves that my attempt was incorrect. Ok, but actually what I see here, and is actually what I was struggling with, is that you find a way to define the variable properly, but then you just computed all the cases. If trying to do this for my case I will have to compute the same as you are doing but for my 6 Zs and using different weights, right? So, it seems quite tedious. (btw, I think there is an extra +2 (typo) in the middle bracket in your third line)
– myradio
Nov 22 '18 at 10:30














Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
– myradio
Nov 22 '18 at 11:35




Also, I just was thinking. What you are doing is defining $g$ as $g(X,Y) = XYmathbf 1_{Yin{4,5,6}}+(X+Y)mathbf 1_{Yin{1,2,3}}$ is that correct? And then using linearity of the $E$ on that function $g(XY)$, right?
– myradio
Nov 22 '18 at 11:35


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3008514%2fexpected-value-for-randomly-assigned-sum-and-product-of-random-variables%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith