could you help me solve this : Conditioning on a household is affected by this virus, what is the probability...











up vote
0
down vote

favorite












virus is spreading in a city. 6% of households who have pets will be affected, while 1% of households without pets will be affected. In this city, about 20% of the households have pets and 80% don't. Conditioning on a household is affected by this virus, what is the probability that this household has a pet?










share|cite|improve this question


















  • 2




    What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
    – Arthur
    Nov 21 at 15:43












  • I know that this is Bayes' formula application but I got stuck to apply it to this condition
    – Mohamed Medhat Ali
    Nov 21 at 16:11










  • Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
    – Arthur
    Nov 21 at 16:17












  • % of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
    – Mohamed Medhat Ali
    Nov 21 at 16:37

















up vote
0
down vote

favorite












virus is spreading in a city. 6% of households who have pets will be affected, while 1% of households without pets will be affected. In this city, about 20% of the households have pets and 80% don't. Conditioning on a household is affected by this virus, what is the probability that this household has a pet?










share|cite|improve this question


















  • 2




    What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
    – Arthur
    Nov 21 at 15:43












  • I know that this is Bayes' formula application but I got stuck to apply it to this condition
    – Mohamed Medhat Ali
    Nov 21 at 16:11










  • Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
    – Arthur
    Nov 21 at 16:17












  • % of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
    – Mohamed Medhat Ali
    Nov 21 at 16:37















up vote
0
down vote

favorite









up vote
0
down vote

favorite











virus is spreading in a city. 6% of households who have pets will be affected, while 1% of households without pets will be affected. In this city, about 20% of the households have pets and 80% don't. Conditioning on a household is affected by this virus, what is the probability that this household has a pet?










share|cite|improve this question













virus is spreading in a city. 6% of households who have pets will be affected, while 1% of households without pets will be affected. In this city, about 20% of the households have pets and 80% don't. Conditioning on a household is affected by this virus, what is the probability that this household has a pet?







conditional-probability






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 21 at 15:40









Mohamed Medhat Ali

31




31








  • 2




    What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
    – Arthur
    Nov 21 at 15:43












  • I know that this is Bayes' formula application but I got stuck to apply it to this condition
    – Mohamed Medhat Ali
    Nov 21 at 16:11










  • Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
    – Arthur
    Nov 21 at 16:17












  • % of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
    – Mohamed Medhat Ali
    Nov 21 at 16:37
















  • 2




    What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
    – Arthur
    Nov 21 at 15:43












  • I know that this is Bayes' formula application but I got stuck to apply it to this condition
    – Mohamed Medhat Ali
    Nov 21 at 16:11










  • Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
    – Arthur
    Nov 21 at 16:17












  • % of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
    – Mohamed Medhat Ali
    Nov 21 at 16:37










2




2




What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
– Arthur
Nov 21 at 15:43






What you're looking for is Bayes' theorem. Have a look, try to apply it, and if it still doesn't work, then you can tell us where you got stuck and we will try to help you.
– Arthur
Nov 21 at 15:43














I know that this is Bayes' formula application but I got stuck to apply it to this condition
– Mohamed Medhat Ali
Nov 21 at 16:11




I know that this is Bayes' formula application but I got stuck to apply it to this condition
– Mohamed Medhat Ali
Nov 21 at 16:11












Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
– Arthur
Nov 21 at 16:17






Where did you get stuck? How did you try to apply it? Please edit your post and tell us more so we can help you where you are.
– Arthur
Nov 21 at 16:17














% of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
– Mohamed Medhat Ali
Nov 21 at 16:37






% of affected households with pets divided by the percentage of households that are affected . Do I need to multiply 0.2 * 0.06 and 0.01 * 0.8 ? and by Bayes' formula I try this (0.06*0.20)/[(0.06*0.20)+(0.01*0.80)
– Mohamed Medhat Ali
Nov 21 at 16:37












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










We should formulate the problem to be able to attain the answer:
$$Pr(text{Being affected}|text{Having pets})=6%\Pr(text{Being affected}|text{Not having pets})=1%\Pr(text{Having pets})=20%\$$Then we are looking for$$Pr(text{Having pets}|text{Being affected})$$which using Bayes's theorem can be calculated as$$Pr(text{Having pets}|text{Being affected})\=\{Pr(text{Having pets})Pr(text{Being affected}|text{Having pets})overPr(text{Having pets})Pr(text{Being affected}|text{Having pets})+Pr(text{Not having pets})Pr(text{Being affected}|text{Not having pets})}\=\{20%times 6%over 20%times 6%+80%times 1%}=60%$$






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',
    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%2f3007890%2fcould-you-help-me-solve-this-conditioning-on-a-household-is-affected-by-this-v%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








    up vote
    0
    down vote



    accepted










    We should formulate the problem to be able to attain the answer:
    $$Pr(text{Being affected}|text{Having pets})=6%\Pr(text{Being affected}|text{Not having pets})=1%\Pr(text{Having pets})=20%\$$Then we are looking for$$Pr(text{Having pets}|text{Being affected})$$which using Bayes's theorem can be calculated as$$Pr(text{Having pets}|text{Being affected})\=\{Pr(text{Having pets})Pr(text{Being affected}|text{Having pets})overPr(text{Having pets})Pr(text{Being affected}|text{Having pets})+Pr(text{Not having pets})Pr(text{Being affected}|text{Not having pets})}\=\{20%times 6%over 20%times 6%+80%times 1%}=60%$$






    share|cite|improve this answer

























      up vote
      0
      down vote



      accepted










      We should formulate the problem to be able to attain the answer:
      $$Pr(text{Being affected}|text{Having pets})=6%\Pr(text{Being affected}|text{Not having pets})=1%\Pr(text{Having pets})=20%\$$Then we are looking for$$Pr(text{Having pets}|text{Being affected})$$which using Bayes's theorem can be calculated as$$Pr(text{Having pets}|text{Being affected})\=\{Pr(text{Having pets})Pr(text{Being affected}|text{Having pets})overPr(text{Having pets})Pr(text{Being affected}|text{Having pets})+Pr(text{Not having pets})Pr(text{Being affected}|text{Not having pets})}\=\{20%times 6%over 20%times 6%+80%times 1%}=60%$$






      share|cite|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        We should formulate the problem to be able to attain the answer:
        $$Pr(text{Being affected}|text{Having pets})=6%\Pr(text{Being affected}|text{Not having pets})=1%\Pr(text{Having pets})=20%\$$Then we are looking for$$Pr(text{Having pets}|text{Being affected})$$which using Bayes's theorem can be calculated as$$Pr(text{Having pets}|text{Being affected})\=\{Pr(text{Having pets})Pr(text{Being affected}|text{Having pets})overPr(text{Having pets})Pr(text{Being affected}|text{Having pets})+Pr(text{Not having pets})Pr(text{Being affected}|text{Not having pets})}\=\{20%times 6%over 20%times 6%+80%times 1%}=60%$$






        share|cite|improve this answer












        We should formulate the problem to be able to attain the answer:
        $$Pr(text{Being affected}|text{Having pets})=6%\Pr(text{Being affected}|text{Not having pets})=1%\Pr(text{Having pets})=20%\$$Then we are looking for$$Pr(text{Having pets}|text{Being affected})$$which using Bayes's theorem can be calculated as$$Pr(text{Having pets}|text{Being affected})\=\{Pr(text{Having pets})Pr(text{Being affected}|text{Having pets})overPr(text{Having pets})Pr(text{Being affected}|text{Having pets})+Pr(text{Not having pets})Pr(text{Being affected}|text{Not having pets})}\=\{20%times 6%over 20%times 6%+80%times 1%}=60%$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 21 at 17:09









        Mostafa Ayaz

        13.6k3836




        13.6k3836






























            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%2f3007890%2fcould-you-help-me-solve-this-conditioning-on-a-household-is-affected-by-this-v%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