How to prove $P(Acup B) = P(A) + P(B) - P(Acap B)$












2












$begingroup$


Let $X$ and $Y$ any random variables. $A$ and $B$ are two events $in Omega$ (the sample space):



How can I prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ using the equation: $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],; A, B in Omega$ (my sample space)



I believe to prove this $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)]$
I will have to test for $X>Y$, $X<Y$ and $X=Y$ right?



And to use this equation to prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ I will have to use the idea of $A subset B, ; B subset A$ and $A = B,$ right?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    you should porably explain your notations.
    $endgroup$
    – J.F
    Jan 18 at 20:33










  • $begingroup$
    @G.F Iedited the question. Thanks.
    $endgroup$
    – Laura
    Jan 18 at 20:36






  • 1




    $begingroup$
    I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
    $endgroup$
    – WaveX
    Jan 18 at 20:37






  • 1




    $begingroup$
    It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
    $endgroup$
    – JMoravitz
    Jan 18 at 20:37












  • $begingroup$
    @JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
    $endgroup$
    – Laura
    Jan 18 at 20:41


















2












$begingroup$


Let $X$ and $Y$ any random variables. $A$ and $B$ are two events $in Omega$ (the sample space):



How can I prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ using the equation: $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],; A, B in Omega$ (my sample space)



I believe to prove this $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)]$
I will have to test for $X>Y$, $X<Y$ and $X=Y$ right?



And to use this equation to prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ I will have to use the idea of $A subset B, ; B subset A$ and $A = B,$ right?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    you should porably explain your notations.
    $endgroup$
    – J.F
    Jan 18 at 20:33










  • $begingroup$
    @G.F Iedited the question. Thanks.
    $endgroup$
    – Laura
    Jan 18 at 20:36






  • 1




    $begingroup$
    I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
    $endgroup$
    – WaveX
    Jan 18 at 20:37






  • 1




    $begingroup$
    It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
    $endgroup$
    – JMoravitz
    Jan 18 at 20:37












  • $begingroup$
    @JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
    $endgroup$
    – Laura
    Jan 18 at 20:41
















2












2








2


2



$begingroup$


Let $X$ and $Y$ any random variables. $A$ and $B$ are two events $in Omega$ (the sample space):



How can I prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ using the equation: $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],; A, B in Omega$ (my sample space)



I believe to prove this $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)]$
I will have to test for $X>Y$, $X<Y$ and $X=Y$ right?



And to use this equation to prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ I will have to use the idea of $A subset B, ; B subset A$ and $A = B,$ right?










share|cite|improve this question











$endgroup$




Let $X$ and $Y$ any random variables. $A$ and $B$ are two events $in Omega$ (the sample space):



How can I prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ using the equation: $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],; A, B in Omega$ (my sample space)



I believe to prove this $E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)]$
I will have to test for $X>Y$, $X<Y$ and $X=Y$ right?



And to use this equation to prove $P(A cup B) = P(A) + P(B) - P(A cap B)$ I will have to use the idea of $A subset B, ; B subset A$ and $A = B,$ right?







probability






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 18 at 22:05









Andrés E. Caicedo

66.1k8160252




66.1k8160252










asked Jan 18 at 20:31









LauraLaura

3758




3758








  • 1




    $begingroup$
    you should porably explain your notations.
    $endgroup$
    – J.F
    Jan 18 at 20:33










  • $begingroup$
    @G.F Iedited the question. Thanks.
    $endgroup$
    – Laura
    Jan 18 at 20:36






  • 1




    $begingroup$
    I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
    $endgroup$
    – WaveX
    Jan 18 at 20:37






  • 1




    $begingroup$
    It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
    $endgroup$
    – JMoravitz
    Jan 18 at 20:37












  • $begingroup$
    @JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
    $endgroup$
    – Laura
    Jan 18 at 20:41
















  • 1




    $begingroup$
    you should porably explain your notations.
    $endgroup$
    – J.F
    Jan 18 at 20:33










  • $begingroup$
    @G.F Iedited the question. Thanks.
    $endgroup$
    – Laura
    Jan 18 at 20:36






  • 1




    $begingroup$
    I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
    $endgroup$
    – WaveX
    Jan 18 at 20:37






  • 1




    $begingroup$
    It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
    $endgroup$
    – JMoravitz
    Jan 18 at 20:37












  • $begingroup$
    @JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
    $endgroup$
    – Laura
    Jan 18 at 20:41










1




1




$begingroup$
you should porably explain your notations.
$endgroup$
– J.F
Jan 18 at 20:33




$begingroup$
you should porably explain your notations.
$endgroup$
– J.F
Jan 18 at 20:33












$begingroup$
@G.F Iedited the question. Thanks.
$endgroup$
– Laura
Jan 18 at 20:36




$begingroup$
@G.F Iedited the question. Thanks.
$endgroup$
– Laura
Jan 18 at 20:36




1




1




$begingroup$
I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
$endgroup$
– WaveX
Jan 18 at 20:37




$begingroup$
I think you mean to write $$P(Acup B) = P(A) + P(B) - P(Acap B)$$ but you have it miswritten in your problem
$endgroup$
– WaveX
Jan 18 at 20:37




1




1




$begingroup$
It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
$endgroup$
– JMoravitz
Jan 18 at 20:37






$begingroup$
It helps to note that $Acup B$ can be written as a disjoint union as $Acup B = (Asetminus B)cup (Acap B)cup (Bsetminus A)$ and similarly that $A = (Asetminus B)cup (Acap B)$, etc...
$endgroup$
– JMoravitz
Jan 18 at 20:37














$begingroup$
@JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
$endgroup$
– Laura
Jan 18 at 20:41






$begingroup$
@JMoravitz but how can I use the idea from $E[max(X,Y)]=E[X]+E[Y]−E[min(X,Y)] $ proof?
$endgroup$
– Laura
Jan 18 at 20:41












2 Answers
2






active

oldest

votes


















6












$begingroup$

If $X$ is the indicator variable of $A$ and $Y$ is the indicator variable of $B$, then $E(X)=P(A)$ and $E(Y)=P(B)$. Furthermore, $max{X,Y}$ is the indicator variable of $Acup B$, and $min{A,B}$ of $Acap B$; thus, $E(max{X,Y})=P(Acup B)$ and $E(min{X,Y})=P(Acap B)$. Therefore, with this choice of $X$ and $Y$, the relation $E(max{X,Y})=E(X)+E(Y)-E(min{X,Y})$ can be rewritten as $P(Acup B)=P(A)+P(B)-P(Acap B)$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    thanks @W-t-P! But how can I understand this concept of Indicator variable?
    $endgroup$
    – Laura
    Jan 19 at 1:20






  • 1




    $begingroup$
    @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
    $endgroup$
    – WaveX
    Jan 19 at 3:41





















1












$begingroup$

If you need to prove that
$$
E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],
$$

simply note that the relation is valid even before you take expectations:
$$
max(X,Y) = X + Y - min(X,Y),
$$

which is the same as
$$
X + Y = min(X,Y) + max(X,Y),
$$

which is true since you can find the sum of two numbers by adding the smaller number (the min) to the larger number (the max).






share|cite|improve this answer









$endgroup$














    Your Answer








    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%2f3078719%2fhow-to-prove-pa-cup-b-pa-pb-pa-cap-b%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









    6












    $begingroup$

    If $X$ is the indicator variable of $A$ and $Y$ is the indicator variable of $B$, then $E(X)=P(A)$ and $E(Y)=P(B)$. Furthermore, $max{X,Y}$ is the indicator variable of $Acup B$, and $min{A,B}$ of $Acap B$; thus, $E(max{X,Y})=P(Acup B)$ and $E(min{X,Y})=P(Acap B)$. Therefore, with this choice of $X$ and $Y$, the relation $E(max{X,Y})=E(X)+E(Y)-E(min{X,Y})$ can be rewritten as $P(Acup B)=P(A)+P(B)-P(Acap B)$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      thanks @W-t-P! But how can I understand this concept of Indicator variable?
      $endgroup$
      – Laura
      Jan 19 at 1:20






    • 1




      $begingroup$
      @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
      $endgroup$
      – WaveX
      Jan 19 at 3:41


















    6












    $begingroup$

    If $X$ is the indicator variable of $A$ and $Y$ is the indicator variable of $B$, then $E(X)=P(A)$ and $E(Y)=P(B)$. Furthermore, $max{X,Y}$ is the indicator variable of $Acup B$, and $min{A,B}$ of $Acap B$; thus, $E(max{X,Y})=P(Acup B)$ and $E(min{X,Y})=P(Acap B)$. Therefore, with this choice of $X$ and $Y$, the relation $E(max{X,Y})=E(X)+E(Y)-E(min{X,Y})$ can be rewritten as $P(Acup B)=P(A)+P(B)-P(Acap B)$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      thanks @W-t-P! But how can I understand this concept of Indicator variable?
      $endgroup$
      – Laura
      Jan 19 at 1:20






    • 1




      $begingroup$
      @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
      $endgroup$
      – WaveX
      Jan 19 at 3:41
















    6












    6








    6





    $begingroup$

    If $X$ is the indicator variable of $A$ and $Y$ is the indicator variable of $B$, then $E(X)=P(A)$ and $E(Y)=P(B)$. Furthermore, $max{X,Y}$ is the indicator variable of $Acup B$, and $min{A,B}$ of $Acap B$; thus, $E(max{X,Y})=P(Acup B)$ and $E(min{X,Y})=P(Acap B)$. Therefore, with this choice of $X$ and $Y$, the relation $E(max{X,Y})=E(X)+E(Y)-E(min{X,Y})$ can be rewritten as $P(Acup B)=P(A)+P(B)-P(Acap B)$.






    share|cite|improve this answer









    $endgroup$



    If $X$ is the indicator variable of $A$ and $Y$ is the indicator variable of $B$, then $E(X)=P(A)$ and $E(Y)=P(B)$. Furthermore, $max{X,Y}$ is the indicator variable of $Acup B$, and $min{A,B}$ of $Acap B$; thus, $E(max{X,Y})=P(Acup B)$ and $E(min{X,Y})=P(Acap B)$. Therefore, with this choice of $X$ and $Y$, the relation $E(max{X,Y})=E(X)+E(Y)-E(min{X,Y})$ can be rewritten as $P(Acup B)=P(A)+P(B)-P(Acap B)$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jan 18 at 20:44









    W-t-PW-t-P

    1,954612




    1,954612












    • $begingroup$
      thanks @W-t-P! But how can I understand this concept of Indicator variable?
      $endgroup$
      – Laura
      Jan 19 at 1:20






    • 1




      $begingroup$
      @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
      $endgroup$
      – WaveX
      Jan 19 at 3:41




















    • $begingroup$
      thanks @W-t-P! But how can I understand this concept of Indicator variable?
      $endgroup$
      – Laura
      Jan 19 at 1:20






    • 1




      $begingroup$
      @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
      $endgroup$
      – WaveX
      Jan 19 at 3:41


















    $begingroup$
    thanks @W-t-P! But how can I understand this concept of Indicator variable?
    $endgroup$
    – Laura
    Jan 19 at 1:20




    $begingroup$
    thanks @W-t-P! But how can I understand this concept of Indicator variable?
    $endgroup$
    – Laura
    Jan 19 at 1:20




    1




    1




    $begingroup$
    @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
    $endgroup$
    – WaveX
    Jan 19 at 3:41






    $begingroup$
    @Laura an Indicator Variable is a binary variable: it only takes the value $0$ or $1$. For example, $X$ can be thought to be an indicator for whether or not event $A$ had happened; if it did, then $X$ will take the value $1$, and if event $A$ does not happen, it is $0$
    $endgroup$
    – WaveX
    Jan 19 at 3:41













    1












    $begingroup$

    If you need to prove that
    $$
    E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],
    $$

    simply note that the relation is valid even before you take expectations:
    $$
    max(X,Y) = X + Y - min(X,Y),
    $$

    which is the same as
    $$
    X + Y = min(X,Y) + max(X,Y),
    $$

    which is true since you can find the sum of two numbers by adding the smaller number (the min) to the larger number (the max).






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      If you need to prove that
      $$
      E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],
      $$

      simply note that the relation is valid even before you take expectations:
      $$
      max(X,Y) = X + Y - min(X,Y),
      $$

      which is the same as
      $$
      X + Y = min(X,Y) + max(X,Y),
      $$

      which is true since you can find the sum of two numbers by adding the smaller number (the min) to the larger number (the max).






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        If you need to prove that
        $$
        E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],
        $$

        simply note that the relation is valid even before you take expectations:
        $$
        max(X,Y) = X + Y - min(X,Y),
        $$

        which is the same as
        $$
        X + Y = min(X,Y) + max(X,Y),
        $$

        which is true since you can find the sum of two numbers by adding the smaller number (the min) to the larger number (the max).






        share|cite|improve this answer









        $endgroup$



        If you need to prove that
        $$
        E[max(X,Y)] = E[X] + E[Y] - E[min(X,Y)],
        $$

        simply note that the relation is valid even before you take expectations:
        $$
        max(X,Y) = X + Y - min(X,Y),
        $$

        which is the same as
        $$
        X + Y = min(X,Y) + max(X,Y),
        $$

        which is true since you can find the sum of two numbers by adding the smaller number (the min) to the larger number (the max).







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 18 at 22:50









        grand_chatgrand_chat

        20.5k11327




        20.5k11327






























            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%2f3078719%2fhow-to-prove-pa-cup-b-pa-pb-pa-cap-b%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅