How do I calculate $E[X^2Y]$ for discrete (and DEPENDENT) random variable given the joint pmf table?












0












$begingroup$


So far I have found the marginal pmf for X and Y and proved that the random variable are not independent by showing that;



$P(X=i, y=j)neq P(X=i)P(Y=j)$



The next question asks to calculate;



$E[X^2Y]$



To calculate this I'm using the following property;



$Cov(X,Y) =E(XY)-E(X)E(Y)$



So in relation to my question;



$E(X^2Y) = Cov(X^2,Y)+E(X^2)E(Y)$



I have calculated $E(X^2)$ & $E(Y)$



To calculate the $Cov(X^2,Y)$



can I use the following formula for discrete RV;



$Cov(X,Y)=sum sum_{(x,y)in S} (x-mu_x)(y-mu_y)f(x,y) $



where f(x,y) is the joint pmf



and simply replace the expectation of x with the second moment of x?



ie.



$Cov(X^2,Y)=sum sum_{(x,y)in S} (x^2-mu_x^2)(y-mu_y)f(x,y) $



Any help much appreciated!










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
    $endgroup$
    – астон вілла олоф мэллбэрг
    Oct 14 '17 at 8:19












  • $begingroup$
    @астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:27












  • $begingroup$
    In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:28
















0












$begingroup$


So far I have found the marginal pmf for X and Y and proved that the random variable are not independent by showing that;



$P(X=i, y=j)neq P(X=i)P(Y=j)$



The next question asks to calculate;



$E[X^2Y]$



To calculate this I'm using the following property;



$Cov(X,Y) =E(XY)-E(X)E(Y)$



So in relation to my question;



$E(X^2Y) = Cov(X^2,Y)+E(X^2)E(Y)$



I have calculated $E(X^2)$ & $E(Y)$



To calculate the $Cov(X^2,Y)$



can I use the following formula for discrete RV;



$Cov(X,Y)=sum sum_{(x,y)in S} (x-mu_x)(y-mu_y)f(x,y) $



where f(x,y) is the joint pmf



and simply replace the expectation of x with the second moment of x?



ie.



$Cov(X^2,Y)=sum sum_{(x,y)in S} (x^2-mu_x^2)(y-mu_y)f(x,y) $



Any help much appreciated!










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
    $endgroup$
    – астон вілла олоф мэллбэрг
    Oct 14 '17 at 8:19












  • $begingroup$
    @астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:27












  • $begingroup$
    In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:28














0












0








0





$begingroup$


So far I have found the marginal pmf for X and Y and proved that the random variable are not independent by showing that;



$P(X=i, y=j)neq P(X=i)P(Y=j)$



The next question asks to calculate;



$E[X^2Y]$



To calculate this I'm using the following property;



$Cov(X,Y) =E(XY)-E(X)E(Y)$



So in relation to my question;



$E(X^2Y) = Cov(X^2,Y)+E(X^2)E(Y)$



I have calculated $E(X^2)$ & $E(Y)$



To calculate the $Cov(X^2,Y)$



can I use the following formula for discrete RV;



$Cov(X,Y)=sum sum_{(x,y)in S} (x-mu_x)(y-mu_y)f(x,y) $



where f(x,y) is the joint pmf



and simply replace the expectation of x with the second moment of x?



ie.



$Cov(X^2,Y)=sum sum_{(x,y)in S} (x^2-mu_x^2)(y-mu_y)f(x,y) $



Any help much appreciated!










share|cite|improve this question











$endgroup$




So far I have found the marginal pmf for X and Y and proved that the random variable are not independent by showing that;



$P(X=i, y=j)neq P(X=i)P(Y=j)$



The next question asks to calculate;



$E[X^2Y]$



To calculate this I'm using the following property;



$Cov(X,Y) =E(XY)-E(X)E(Y)$



So in relation to my question;



$E(X^2Y) = Cov(X^2,Y)+E(X^2)E(Y)$



I have calculated $E(X^2)$ & $E(Y)$



To calculate the $Cov(X^2,Y)$



can I use the following formula for discrete RV;



$Cov(X,Y)=sum sum_{(x,y)in S} (x-mu_x)(y-mu_y)f(x,y) $



where f(x,y) is the joint pmf



and simply replace the expectation of x with the second moment of x?



ie.



$Cov(X^2,Y)=sum sum_{(x,y)in S} (x^2-mu_x^2)(y-mu_y)f(x,y) $



Any help much appreciated!







probability probability-theory statistics probability-distributions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Oct 14 '17 at 8:41







S.Tee

















asked Oct 14 '17 at 8:09









S.TeeS.Tee

12




12








  • 1




    $begingroup$
    If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
    $endgroup$
    – астон вілла олоф мэллбэрг
    Oct 14 '17 at 8:19












  • $begingroup$
    @астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:27












  • $begingroup$
    In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:28














  • 1




    $begingroup$
    If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
    $endgroup$
    – астон вілла олоф мэллбэрг
    Oct 14 '17 at 8:19












  • $begingroup$
    @астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:27












  • $begingroup$
    In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:28








1




1




$begingroup$
If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
$endgroup$
– астон вілла олоф мэллбэрг
Oct 14 '17 at 8:19






$begingroup$
If you know $P(X=i,Y=j)$, then can you not use the formula $E[X^2Y] = sum_{i,j} i^2 times j times P(X= i,Y=j)$.
$endgroup$
– астон вілла олоф мэллбэрг
Oct 14 '17 at 8:19














$begingroup$
@астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
$endgroup$
– drhab
Oct 14 '17 at 8:27






$begingroup$
@астонвіллаолофмэллбэрг there are situations where things become easyer if you work with standardized random variables. Then covariances come in sight. That might explain the preference (not sure of that) of the OP.
$endgroup$
– drhab
Oct 14 '17 at 8:27














$begingroup$
In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
$endgroup$
– drhab
Oct 14 '17 at 8:28




$begingroup$
In the equality following "So in relation to my question" the minus-sign must be a plus-sign.
$endgroup$
– drhab
Oct 14 '17 at 8:28










2 Answers
2






active

oldest

votes


















0












$begingroup$

Use $E(X^2Y)=sum_isum_jP(X=i, Y=j) i^2j$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This could turn out to be a good advice, but is actually not an answer to the question.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:39



















0












$begingroup$

You can do that, but then you must be precise:$$mathsf{Cov}(X^2,Y)=mathbb E(X^2-mathbb EX^2)(Y-mathbb EY)=sum_xsum_y(x^2-mu_{X^2})(y-mu_Y)f(x,y)tag1$$



Note that in $(1)$ we have $mu_{X^2}=mathbb EX^2$ and not $mu_X^2=(mathbb EX)^2$.






share|cite|improve this answer











$endgroup$













    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%2f2471666%2fhow-do-i-calculate-ex2y-for-discrete-and-dependent-random-variable-given%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    Use $E(X^2Y)=sum_isum_jP(X=i, Y=j) i^2j$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This could turn out to be a good advice, but is actually not an answer to the question.
      $endgroup$
      – drhab
      Oct 14 '17 at 8:39
















    0












    $begingroup$

    Use $E(X^2Y)=sum_isum_jP(X=i, Y=j) i^2j$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This could turn out to be a good advice, but is actually not an answer to the question.
      $endgroup$
      – drhab
      Oct 14 '17 at 8:39














    0












    0








    0





    $begingroup$

    Use $E(X^2Y)=sum_isum_jP(X=i, Y=j) i^2j$.






    share|cite|improve this answer









    $endgroup$



    Use $E(X^2Y)=sum_isum_jP(X=i, Y=j) i^2j$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Oct 14 '17 at 8:19









    SrikantSrikant

    31537




    31537












    • $begingroup$
      This could turn out to be a good advice, but is actually not an answer to the question.
      $endgroup$
      – drhab
      Oct 14 '17 at 8:39


















    • $begingroup$
      This could turn out to be a good advice, but is actually not an answer to the question.
      $endgroup$
      – drhab
      Oct 14 '17 at 8:39
















    $begingroup$
    This could turn out to be a good advice, but is actually not an answer to the question.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:39




    $begingroup$
    This could turn out to be a good advice, but is actually not an answer to the question.
    $endgroup$
    – drhab
    Oct 14 '17 at 8:39











    0












    $begingroup$

    You can do that, but then you must be precise:$$mathsf{Cov}(X^2,Y)=mathbb E(X^2-mathbb EX^2)(Y-mathbb EY)=sum_xsum_y(x^2-mu_{X^2})(y-mu_Y)f(x,y)tag1$$



    Note that in $(1)$ we have $mu_{X^2}=mathbb EX^2$ and not $mu_X^2=(mathbb EX)^2$.






    share|cite|improve this answer











    $endgroup$


















      0












      $begingroup$

      You can do that, but then you must be precise:$$mathsf{Cov}(X^2,Y)=mathbb E(X^2-mathbb EX^2)(Y-mathbb EY)=sum_xsum_y(x^2-mu_{X^2})(y-mu_Y)f(x,y)tag1$$



      Note that in $(1)$ we have $mu_{X^2}=mathbb EX^2$ and not $mu_X^2=(mathbb EX)^2$.






      share|cite|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        You can do that, but then you must be precise:$$mathsf{Cov}(X^2,Y)=mathbb E(X^2-mathbb EX^2)(Y-mathbb EY)=sum_xsum_y(x^2-mu_{X^2})(y-mu_Y)f(x,y)tag1$$



        Note that in $(1)$ we have $mu_{X^2}=mathbb EX^2$ and not $mu_X^2=(mathbb EX)^2$.






        share|cite|improve this answer











        $endgroup$



        You can do that, but then you must be precise:$$mathsf{Cov}(X^2,Y)=mathbb E(X^2-mathbb EX^2)(Y-mathbb EY)=sum_xsum_y(x^2-mu_{X^2})(y-mu_Y)f(x,y)tag1$$



        Note that in $(1)$ we have $mu_{X^2}=mathbb EX^2$ and not $mu_X^2=(mathbb EX)^2$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Oct 14 '17 at 8:30

























        answered Oct 14 '17 at 8:19









        drhabdrhab

        103k545136




        103k545136






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2471666%2fhow-do-i-calculate-ex2y-for-discrete-and-dependent-random-variable-given%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

            Npm cannot find a required file even through it is in the searched directory

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