How to prove that $E(Y|D=1)=E(DY)/E(D)$











up vote
1
down vote

favorite












How to prove that
$$E(Y|D=1)=E(DY)/E(D)$$
and
$$E(Y|X,D=1)=E(DY|X)/E(D|X),$$
where $D$ is a binary variable and takes value of 0 and 1.










share|cite|improve this question
























  • Have you tried Bayes' Theorem? That's the first thing that pops to mind
    – kcborys
    yesterday






  • 1




    This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
    – NCh
    yesterday










  • Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
    – J.Mike
    yesterday

















up vote
1
down vote

favorite












How to prove that
$$E(Y|D=1)=E(DY)/E(D)$$
and
$$E(Y|X,D=1)=E(DY|X)/E(D|X),$$
where $D$ is a binary variable and takes value of 0 and 1.










share|cite|improve this question
























  • Have you tried Bayes' Theorem? That's the first thing that pops to mind
    – kcborys
    yesterday






  • 1




    This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
    – NCh
    yesterday










  • Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
    – J.Mike
    yesterday















up vote
1
down vote

favorite









up vote
1
down vote

favorite











How to prove that
$$E(Y|D=1)=E(DY)/E(D)$$
and
$$E(Y|X,D=1)=E(DY|X)/E(D|X),$$
where $D$ is a binary variable and takes value of 0 and 1.










share|cite|improve this question















How to prove that
$$E(Y|D=1)=E(DY)/E(D)$$
and
$$E(Y|X,D=1)=E(DY|X)/E(D|X),$$
where $D$ is a binary variable and takes value of 0 and 1.







probability probability-theory statistics probability-distributions conditional-expectation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday

























asked yesterday









J.Mike

315110




315110












  • Have you tried Bayes' Theorem? That's the first thing that pops to mind
    – kcborys
    yesterday






  • 1




    This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
    – NCh
    yesterday










  • Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
    – J.Mike
    yesterday




















  • Have you tried Bayes' Theorem? That's the first thing that pops to mind
    – kcborys
    yesterday






  • 1




    This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
    – NCh
    yesterday










  • Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
    – J.Mike
    yesterday


















Have you tried Bayes' Theorem? That's the first thing that pops to mind
– kcborys
yesterday




Have you tried Bayes' Theorem? That's the first thing that pops to mind
– kcborys
yesterday




1




1




This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
– NCh
yesterday




This is not true, in general. Say, $Y=D$, $E(D|D=1)=1$, and the r.h.s. $E(D^2)/E(D)$ need not to be $1$.
– NCh
yesterday












Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
– J.Mike
yesterday






Thank you for your comment. Sorry, I forgot to give the definition of $D$. $D$ is a binary variable which takes value of 0 and 1. So $D^2=D$, then $E(D^2)/E(D)=E(D)/E(D)=1$
– J.Mike
yesterday












2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










First observe that $$mathbb E[D]=1cdot P(D=1)+0cdot P(D=0)=P(D=1)tag{1}$$
So, begin{align}mathbb E[YD]&=mathbb E[Ycdot 1mid D=1]P(D=1)+mathbb E[Ycdot 0mid D=0]P(D=0)\&overset{(1)}=mathbb E[Ymid D=1]mathbb E[D]+0end{align} and the result follows by rearranging terms and assuming that $P(D=1)>0$. Can you do the same for the $X$ part?






share|cite|improve this answer

















  • 1




    Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
    – J.Mike
    yesterday


















up vote
1
down vote













The unconditional case is shown as above. For the conditional case, first observe that
$$mathbb E[D|X]=1cdot P(D=1|X)+0cdot P(D=0|X)=P(D=1|X)tag{1}$$
So,
begin{align}mathbb E[YD|X]&=mathbb E[YD|X,D=1]cdot P(D=1|X)+mathbb E[YD|X,D=0]cdot P(D=0|X)\&overset{(1)}=mathbb E[Y| X, D=1]cdotmathbb E[D|X]end{align}
and the conditional equation follows by rearranging terms and assuming that $P(D=1|X)neq0$.






share|cite|improve this answer























    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',
    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%2f3005188%2fhow-to-prove-that-eyd-1-edy-ed%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








    up vote
    1
    down vote



    accepted










    First observe that $$mathbb E[D]=1cdot P(D=1)+0cdot P(D=0)=P(D=1)tag{1}$$
    So, begin{align}mathbb E[YD]&=mathbb E[Ycdot 1mid D=1]P(D=1)+mathbb E[Ycdot 0mid D=0]P(D=0)\&overset{(1)}=mathbb E[Ymid D=1]mathbb E[D]+0end{align} and the result follows by rearranging terms and assuming that $P(D=1)>0$. Can you do the same for the $X$ part?






    share|cite|improve this answer

















    • 1




      Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
      – J.Mike
      yesterday















    up vote
    1
    down vote



    accepted










    First observe that $$mathbb E[D]=1cdot P(D=1)+0cdot P(D=0)=P(D=1)tag{1}$$
    So, begin{align}mathbb E[YD]&=mathbb E[Ycdot 1mid D=1]P(D=1)+mathbb E[Ycdot 0mid D=0]P(D=0)\&overset{(1)}=mathbb E[Ymid D=1]mathbb E[D]+0end{align} and the result follows by rearranging terms and assuming that $P(D=1)>0$. Can you do the same for the $X$ part?






    share|cite|improve this answer

















    • 1




      Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
      – J.Mike
      yesterday













    up vote
    1
    down vote



    accepted







    up vote
    1
    down vote



    accepted






    First observe that $$mathbb E[D]=1cdot P(D=1)+0cdot P(D=0)=P(D=1)tag{1}$$
    So, begin{align}mathbb E[YD]&=mathbb E[Ycdot 1mid D=1]P(D=1)+mathbb E[Ycdot 0mid D=0]P(D=0)\&overset{(1)}=mathbb E[Ymid D=1]mathbb E[D]+0end{align} and the result follows by rearranging terms and assuming that $P(D=1)>0$. Can you do the same for the $X$ part?






    share|cite|improve this answer












    First observe that $$mathbb E[D]=1cdot P(D=1)+0cdot P(D=0)=P(D=1)tag{1}$$
    So, begin{align}mathbb E[YD]&=mathbb E[Ycdot 1mid D=1]P(D=1)+mathbb E[Ycdot 0mid D=0]P(D=0)\&overset{(1)}=mathbb E[Ymid D=1]mathbb E[D]+0end{align} and the result follows by rearranging terms and assuming that $P(D=1)>0$. Can you do the same for the $X$ part?







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered yesterday









    Jimmy R.

    32.8k42156




    32.8k42156








    • 1




      Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
      – J.Mike
      yesterday














    • 1




      Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
      – J.Mike
      yesterday








    1




    1




    Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
    – J.Mike
    yesterday




    Thank you very much for your kind help. Following your solution, I prove the conditional case as below.
    – J.Mike
    yesterday










    up vote
    1
    down vote













    The unconditional case is shown as above. For the conditional case, first observe that
    $$mathbb E[D|X]=1cdot P(D=1|X)+0cdot P(D=0|X)=P(D=1|X)tag{1}$$
    So,
    begin{align}mathbb E[YD|X]&=mathbb E[YD|X,D=1]cdot P(D=1|X)+mathbb E[YD|X,D=0]cdot P(D=0|X)\&overset{(1)}=mathbb E[Y| X, D=1]cdotmathbb E[D|X]end{align}
    and the conditional equation follows by rearranging terms and assuming that $P(D=1|X)neq0$.






    share|cite|improve this answer



























      up vote
      1
      down vote













      The unconditional case is shown as above. For the conditional case, first observe that
      $$mathbb E[D|X]=1cdot P(D=1|X)+0cdot P(D=0|X)=P(D=1|X)tag{1}$$
      So,
      begin{align}mathbb E[YD|X]&=mathbb E[YD|X,D=1]cdot P(D=1|X)+mathbb E[YD|X,D=0]cdot P(D=0|X)\&overset{(1)}=mathbb E[Y| X, D=1]cdotmathbb E[D|X]end{align}
      and the conditional equation follows by rearranging terms and assuming that $P(D=1|X)neq0$.






      share|cite|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        The unconditional case is shown as above. For the conditional case, first observe that
        $$mathbb E[D|X]=1cdot P(D=1|X)+0cdot P(D=0|X)=P(D=1|X)tag{1}$$
        So,
        begin{align}mathbb E[YD|X]&=mathbb E[YD|X,D=1]cdot P(D=1|X)+mathbb E[YD|X,D=0]cdot P(D=0|X)\&overset{(1)}=mathbb E[Y| X, D=1]cdotmathbb E[D|X]end{align}
        and the conditional equation follows by rearranging terms and assuming that $P(D=1|X)neq0$.






        share|cite|improve this answer














        The unconditional case is shown as above. For the conditional case, first observe that
        $$mathbb E[D|X]=1cdot P(D=1|X)+0cdot P(D=0|X)=P(D=1|X)tag{1}$$
        So,
        begin{align}mathbb E[YD|X]&=mathbb E[YD|X,D=1]cdot P(D=1|X)+mathbb E[YD|X,D=0]cdot P(D=0|X)\&overset{(1)}=mathbb E[Y| X, D=1]cdotmathbb E[D|X]end{align}
        and the conditional equation follows by rearranging terms and assuming that $P(D=1|X)neq0$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited yesterday

























        answered yesterday









        J.Mike

        315110




        315110






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005188%2fhow-to-prove-that-eyd-1-edy-ed%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

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules