$Var[W]$ when $W = X - 2Y$












0












$begingroup$


I am trying to solve $Var[W]$ when $W = X - 2Y$ for independent discrete RVs $X$ & $Y$:




$$E[X] = 9, Var[X] = 4; E[Y] = 2, Var[Y] = 1.$$




I understand




$$ Var[W] = Var[X] + Var[2Y]$$
$$= Var[X] + 4Var[Y]$$
$$ = 4 + 4*1 = 8$$




But I am trying to answer the same using:




$$ Var[W] = E[W^2] - E[W]^2$$




I think




$$E[W] = 1 implies E[W]^2 = 1$$




But when I calculate




$$ E[(X-2Y)^2] = E[X^2 - 4XY + 4Y^2]$$
$$ = E[X^2] - 4E[X]E[Y] + 4[Y^2]$$
$$ = 85 -72 + 20 = 33$$
$$ implies Var[W] = 32$$




Which I don't think is correct.



Where have I gone wrong the second calculation?
Thanks










share|cite|improve this question











$endgroup$

















    0












    $begingroup$


    I am trying to solve $Var[W]$ when $W = X - 2Y$ for independent discrete RVs $X$ & $Y$:




    $$E[X] = 9, Var[X] = 4; E[Y] = 2, Var[Y] = 1.$$




    I understand




    $$ Var[W] = Var[X] + Var[2Y]$$
    $$= Var[X] + 4Var[Y]$$
    $$ = 4 + 4*1 = 8$$




    But I am trying to answer the same using:




    $$ Var[W] = E[W^2] - E[W]^2$$




    I think




    $$E[W] = 1 implies E[W]^2 = 1$$




    But when I calculate




    $$ E[(X-2Y)^2] = E[X^2 - 4XY + 4Y^2]$$
    $$ = E[X^2] - 4E[X]E[Y] + 4[Y^2]$$
    $$ = 85 -72 + 20 = 33$$
    $$ implies Var[W] = 32$$




    Which I don't think is correct.



    Where have I gone wrong the second calculation?
    Thanks










    share|cite|improve this question











    $endgroup$















      0












      0








      0





      $begingroup$


      I am trying to solve $Var[W]$ when $W = X - 2Y$ for independent discrete RVs $X$ & $Y$:




      $$E[X] = 9, Var[X] = 4; E[Y] = 2, Var[Y] = 1.$$




      I understand




      $$ Var[W] = Var[X] + Var[2Y]$$
      $$= Var[X] + 4Var[Y]$$
      $$ = 4 + 4*1 = 8$$




      But I am trying to answer the same using:




      $$ Var[W] = E[W^2] - E[W]^2$$




      I think




      $$E[W] = 1 implies E[W]^2 = 1$$




      But when I calculate




      $$ E[(X-2Y)^2] = E[X^2 - 4XY + 4Y^2]$$
      $$ = E[X^2] - 4E[X]E[Y] + 4[Y^2]$$
      $$ = 85 -72 + 20 = 33$$
      $$ implies Var[W] = 32$$




      Which I don't think is correct.



      Where have I gone wrong the second calculation?
      Thanks










      share|cite|improve this question











      $endgroup$




      I am trying to solve $Var[W]$ when $W = X - 2Y$ for independent discrete RVs $X$ & $Y$:




      $$E[X] = 9, Var[X] = 4; E[Y] = 2, Var[Y] = 1.$$




      I understand




      $$ Var[W] = Var[X] + Var[2Y]$$
      $$= Var[X] + 4Var[Y]$$
      $$ = 4 + 4*1 = 8$$




      But I am trying to answer the same using:




      $$ Var[W] = E[W^2] - E[W]^2$$




      I think




      $$E[W] = 1 implies E[W]^2 = 1$$




      But when I calculate




      $$ E[(X-2Y)^2] = E[X^2 - 4XY + 4Y^2]$$
      $$ = E[X^2] - 4E[X]E[Y] + 4[Y^2]$$
      $$ = 85 -72 + 20 = 33$$
      $$ implies Var[W] = 32$$




      Which I don't think is correct.



      Where have I gone wrong the second calculation?
      Thanks







      probability statistics random-variables variance expected-value






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 13 '18 at 23:30







      user614671

















      asked Dec 13 '18 at 23:24









      number8number8

      9318




      9318






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Your mistake is $E[W]=1$. Note that
          $$E[W]=E[X-2Y]=E[X]-2E[Y]=9-2cdot 2=5.$$
          The rest is correct except
          $$Var(W)=33-5^2=8.$$
          Alternatively, use
          $$Var(X-2Y)=Var(X)+Var(-2Y)+2Cor(X,-2Y).$$
          Since $X$ and $Y$ are independent, $Cor(X,-2Y)=-2Cor(X,Y)=0$. Hence,
          $$Var(X-2Y)=Var(X)+Var(-2Y)=Var(X)+4Var(Y)=4+4cdot 1=8.$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
            $endgroup$
            – number8
            Dec 13 '18 at 23:33













          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%2f3038730%2fvarw-when-w-x-2y%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












          $begingroup$

          Your mistake is $E[W]=1$. Note that
          $$E[W]=E[X-2Y]=E[X]-2E[Y]=9-2cdot 2=5.$$
          The rest is correct except
          $$Var(W)=33-5^2=8.$$
          Alternatively, use
          $$Var(X-2Y)=Var(X)+Var(-2Y)+2Cor(X,-2Y).$$
          Since $X$ and $Y$ are independent, $Cor(X,-2Y)=-2Cor(X,Y)=0$. Hence,
          $$Var(X-2Y)=Var(X)+Var(-2Y)=Var(X)+4Var(Y)=4+4cdot 1=8.$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
            $endgroup$
            – number8
            Dec 13 '18 at 23:33


















          1












          $begingroup$

          Your mistake is $E[W]=1$. Note that
          $$E[W]=E[X-2Y]=E[X]-2E[Y]=9-2cdot 2=5.$$
          The rest is correct except
          $$Var(W)=33-5^2=8.$$
          Alternatively, use
          $$Var(X-2Y)=Var(X)+Var(-2Y)+2Cor(X,-2Y).$$
          Since $X$ and $Y$ are independent, $Cor(X,-2Y)=-2Cor(X,Y)=0$. Hence,
          $$Var(X-2Y)=Var(X)+Var(-2Y)=Var(X)+4Var(Y)=4+4cdot 1=8.$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
            $endgroup$
            – number8
            Dec 13 '18 at 23:33
















          1












          1








          1





          $begingroup$

          Your mistake is $E[W]=1$. Note that
          $$E[W]=E[X-2Y]=E[X]-2E[Y]=9-2cdot 2=5.$$
          The rest is correct except
          $$Var(W)=33-5^2=8.$$
          Alternatively, use
          $$Var(X-2Y)=Var(X)+Var(-2Y)+2Cor(X,-2Y).$$
          Since $X$ and $Y$ are independent, $Cor(X,-2Y)=-2Cor(X,Y)=0$. Hence,
          $$Var(X-2Y)=Var(X)+Var(-2Y)=Var(X)+4Var(Y)=4+4cdot 1=8.$$






          share|cite|improve this answer









          $endgroup$



          Your mistake is $E[W]=1$. Note that
          $$E[W]=E[X-2Y]=E[X]-2E[Y]=9-2cdot 2=5.$$
          The rest is correct except
          $$Var(W)=33-5^2=8.$$
          Alternatively, use
          $$Var(X-2Y)=Var(X)+Var(-2Y)+2Cor(X,-2Y).$$
          Since $X$ and $Y$ are independent, $Cor(X,-2Y)=-2Cor(X,Y)=0$. Hence,
          $$Var(X-2Y)=Var(X)+Var(-2Y)=Var(X)+4Var(Y)=4+4cdot 1=8.$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 13 '18 at 23:30







          user614671



















          • $begingroup$
            Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
            $endgroup$
            – number8
            Dec 13 '18 at 23:33




















          • $begingroup$
            Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
            $endgroup$
            – number8
            Dec 13 '18 at 23:33


















          $begingroup$
          Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
          $endgroup$
          – number8
          Dec 13 '18 at 23:33






          $begingroup$
          Ah yes, sorry I was multiplying $2^2 * 2$ for $2E[Y]$ for some reason. Late at night I guess. Thanks.
          $endgroup$
          – number8
          Dec 13 '18 at 23:33




















          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%2f3038730%2fvarw-when-w-x-2y%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

          Plaza Victoria

          Puebla de Zaragoza

          Musa