Uniform Distribution - Is my solution correct?












1












$begingroup$


I'm preparing for an exam in Probability and Statistics and since I am self-studying, I don't have answers to refer to. So would be really great if someone would please take the time and check if my solution for the following problem is correct. Thank you in advance!



X corresponds to the duration of Mary's commute to work, and Y to the duration of John's. X is uniformly distributed in [15,25] and Y in [15,30]. X and Y are assumed to be independent.
What is the probability that Mary and John both take more than 20 minutes to get to work?



So we are looking for: P(X>20,Y>20)=P(X>20)xP(Y>20). In other words we are looking for: P[1-(P(X≦20),1-(P(Y≦20).



As per the rule P with Uniform Distribution:
P([c,d])= $int_c^dfrac{1}{b-a}dx=frac{d-c}{b-a}$



So in our cases:






  1. $P(X≦20)= P([15,20])= int_{15}^{20}frac{1}{25-15}dx=frac{20-15}{25-15}=0.5$ from here
    follows that $1-P(X≦20)= 1-0.5=0.5$


So $P(X>20)=0.5$





  1. $P(Y≦20)= P([15,20])= int_{15}^{20}frac{1}{30-15}dx=frac{20-15}{30-15}=0.33$ from here
    follows that $1-P(Y≦20)= 1-0.33=0.67$


So $P(Y>20)=0.57$




Going back to




P(X>20,Y>20)=P(X>20)xP(Y>20)=0.5x0.67=0.335




In conclusion, that probability that both Mary and John take more than 20 minutes to get to work is 0.335.










share|cite|improve this question









$endgroup$












  • $begingroup$
    In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
    $endgroup$
    – Antoni Parellada
    Feb 2 at 16:25


















1












$begingroup$


I'm preparing for an exam in Probability and Statistics and since I am self-studying, I don't have answers to refer to. So would be really great if someone would please take the time and check if my solution for the following problem is correct. Thank you in advance!



X corresponds to the duration of Mary's commute to work, and Y to the duration of John's. X is uniformly distributed in [15,25] and Y in [15,30]. X and Y are assumed to be independent.
What is the probability that Mary and John both take more than 20 minutes to get to work?



So we are looking for: P(X>20,Y>20)=P(X>20)xP(Y>20). In other words we are looking for: P[1-(P(X≦20),1-(P(Y≦20).



As per the rule P with Uniform Distribution:
P([c,d])= $int_c^dfrac{1}{b-a}dx=frac{d-c}{b-a}$



So in our cases:






  1. $P(X≦20)= P([15,20])= int_{15}^{20}frac{1}{25-15}dx=frac{20-15}{25-15}=0.5$ from here
    follows that $1-P(X≦20)= 1-0.5=0.5$


So $P(X>20)=0.5$





  1. $P(Y≦20)= P([15,20])= int_{15}^{20}frac{1}{30-15}dx=frac{20-15}{30-15}=0.33$ from here
    follows that $1-P(Y≦20)= 1-0.33=0.67$


So $P(Y>20)=0.57$




Going back to




P(X>20,Y>20)=P(X>20)xP(Y>20)=0.5x0.67=0.335




In conclusion, that probability that both Mary and John take more than 20 minutes to get to work is 0.335.










share|cite|improve this question









$endgroup$












  • $begingroup$
    In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
    $endgroup$
    – Antoni Parellada
    Feb 2 at 16:25
















1












1








1





$begingroup$


I'm preparing for an exam in Probability and Statistics and since I am self-studying, I don't have answers to refer to. So would be really great if someone would please take the time and check if my solution for the following problem is correct. Thank you in advance!



X corresponds to the duration of Mary's commute to work, and Y to the duration of John's. X is uniformly distributed in [15,25] and Y in [15,30]. X and Y are assumed to be independent.
What is the probability that Mary and John both take more than 20 minutes to get to work?



So we are looking for: P(X>20,Y>20)=P(X>20)xP(Y>20). In other words we are looking for: P[1-(P(X≦20),1-(P(Y≦20).



As per the rule P with Uniform Distribution:
P([c,d])= $int_c^dfrac{1}{b-a}dx=frac{d-c}{b-a}$



So in our cases:






  1. $P(X≦20)= P([15,20])= int_{15}^{20}frac{1}{25-15}dx=frac{20-15}{25-15}=0.5$ from here
    follows that $1-P(X≦20)= 1-0.5=0.5$


So $P(X>20)=0.5$





  1. $P(Y≦20)= P([15,20])= int_{15}^{20}frac{1}{30-15}dx=frac{20-15}{30-15}=0.33$ from here
    follows that $1-P(Y≦20)= 1-0.33=0.67$


So $P(Y>20)=0.57$




Going back to




P(X>20,Y>20)=P(X>20)xP(Y>20)=0.5x0.67=0.335




In conclusion, that probability that both Mary and John take more than 20 minutes to get to work is 0.335.










share|cite|improve this question









$endgroup$




I'm preparing for an exam in Probability and Statistics and since I am self-studying, I don't have answers to refer to. So would be really great if someone would please take the time and check if my solution for the following problem is correct. Thank you in advance!



X corresponds to the duration of Mary's commute to work, and Y to the duration of John's. X is uniformly distributed in [15,25] and Y in [15,30]. X and Y are assumed to be independent.
What is the probability that Mary and John both take more than 20 minutes to get to work?



So we are looking for: P(X>20,Y>20)=P(X>20)xP(Y>20). In other words we are looking for: P[1-(P(X≦20),1-(P(Y≦20).



As per the rule P with Uniform Distribution:
P([c,d])= $int_c^dfrac{1}{b-a}dx=frac{d-c}{b-a}$



So in our cases:






  1. $P(X≦20)= P([15,20])= int_{15}^{20}frac{1}{25-15}dx=frac{20-15}{25-15}=0.5$ from here
    follows that $1-P(X≦20)= 1-0.5=0.5$


So $P(X>20)=0.5$





  1. $P(Y≦20)= P([15,20])= int_{15}^{20}frac{1}{30-15}dx=frac{20-15}{30-15}=0.33$ from here
    follows that $1-P(Y≦20)= 1-0.33=0.67$


So $P(Y>20)=0.57$




Going back to




P(X>20,Y>20)=P(X>20)xP(Y>20)=0.5x0.67=0.335




In conclusion, that probability that both Mary and John take more than 20 minutes to get to work is 0.335.







probability statistics uniform-distribution






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Feb 2 at 16:05









VRTVRT

957




957












  • $begingroup$
    In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
    $endgroup$
    – Antoni Parellada
    Feb 2 at 16:25




















  • $begingroup$
    In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
    $endgroup$
    – Antoni Parellada
    Feb 2 at 16:25


















$begingroup$
In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
$endgroup$
– Antoni Parellada
Feb 2 at 16:25






$begingroup$
In your situation, it can behoove you to use some programming language to double check with a few lines of code if your answer is at least plausible. For instance, in R: X = runif(n = 1e6, min = 15, max = 25) > 20; Y = runif(n = 1e6, min = 15, max = 30) > 20; XY = cbind(X,Y); mean(rowSums(XY) == 2) [1] 0.332743
$endgroup$
– Antoni Parellada
Feb 2 at 16:25












2 Answers
2






active

oldest

votes


















1












$begingroup$

Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.



Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(aleq{X}leq{b})$, but that might be my background.



Also I’m not sure what you meant here:




P[1-(P(X≦20),1-(P(Y≦20)




I think you meant $$[1-P(Xleq20)]cdot[1-P(Yleq20)],$$ so be careful with notation.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thank you so much! :)
    $endgroup$
    – VRT
    Feb 2 at 16:25



















0












$begingroup$

To check this intuitively, You could as well calculated it easily $P(X>20)$ and $P(Y>20)$.
Uniform distribution means every event is equally likely
So for X commute time is uniformly distributed between 15 and 25.
So the probability of reaching exactly at a particular minute between 15 and 25 is $1/10$. Similarly for Y it is $1/15$. Now how many minutes above 20 are there for X and Y in their respective ranges?
5 for X and 10 for Y. So, $P(X> 20)=5/10=1/2$ and $P(Y>20)=10/15=2/3$. Since the events are independent,
$P(X>20, Y>20)= 1/2 *2/3 =1/3$. If you look at the Probablity graph of the distribution, the integral that you posted is nothing but the rectangular area between $c=21$ and $d=25$ for X and $c=21$ and $d=30$ for Y. The height is the probablity which is $1/10$ and $1/15$ Respectively. Since it’s the same for every event you form a nice $y=f(x) = 1/(b-a)$ line.Now if the distribution is not Uniform, then each such event would have differing probability and so the integral area under the curve will vary.






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%2f3097447%2funiform-distribution-is-my-solution-correct%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









    1












    $begingroup$

    Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.



    Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(aleq{X}leq{b})$, but that might be my background.



    Also I’m not sure what you meant here:




    P[1-(P(X≦20),1-(P(Y≦20)




    I think you meant $$[1-P(Xleq20)]cdot[1-P(Yleq20)],$$ so be careful with notation.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Thank you so much! :)
      $endgroup$
      – VRT
      Feb 2 at 16:25
















    1












    $begingroup$

    Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.



    Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(aleq{X}leq{b})$, but that might be my background.



    Also I’m not sure what you meant here:




    P[1-(P(X≦20),1-(P(Y≦20)




    I think you meant $$[1-P(Xleq20)]cdot[1-P(Yleq20)],$$ so be careful with notation.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Thank you so much! :)
      $endgroup$
      – VRT
      Feb 2 at 16:25














    1












    1








    1





    $begingroup$

    Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.



    Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(aleq{X}leq{b})$, but that might be my background.



    Also I’m not sure what you meant here:




    P[1-(P(X≦20),1-(P(Y≦20)




    I think you meant $$[1-P(Xleq20)]cdot[1-P(Yleq20)],$$ so be careful with notation.






    share|cite|improve this answer









    $endgroup$



    Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.



    Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(aleq{X}leq{b})$, but that might be my background.



    Also I’m not sure what you meant here:




    P[1-(P(X≦20),1-(P(Y≦20)




    I think you meant $$[1-P(Xleq20)]cdot[1-P(Yleq20)],$$ so be careful with notation.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Feb 2 at 16:11









    David M.David M.

    2,232421




    2,232421












    • $begingroup$
      Thank you so much! :)
      $endgroup$
      – VRT
      Feb 2 at 16:25


















    • $begingroup$
      Thank you so much! :)
      $endgroup$
      – VRT
      Feb 2 at 16:25
















    $begingroup$
    Thank you so much! :)
    $endgroup$
    – VRT
    Feb 2 at 16:25




    $begingroup$
    Thank you so much! :)
    $endgroup$
    – VRT
    Feb 2 at 16:25











    0












    $begingroup$

    To check this intuitively, You could as well calculated it easily $P(X>20)$ and $P(Y>20)$.
    Uniform distribution means every event is equally likely
    So for X commute time is uniformly distributed between 15 and 25.
    So the probability of reaching exactly at a particular minute between 15 and 25 is $1/10$. Similarly for Y it is $1/15$. Now how many minutes above 20 are there for X and Y in their respective ranges?
    5 for X and 10 for Y. So, $P(X> 20)=5/10=1/2$ and $P(Y>20)=10/15=2/3$. Since the events are independent,
    $P(X>20, Y>20)= 1/2 *2/3 =1/3$. If you look at the Probablity graph of the distribution, the integral that you posted is nothing but the rectangular area between $c=21$ and $d=25$ for X and $c=21$ and $d=30$ for Y. The height is the probablity which is $1/10$ and $1/15$ Respectively. Since it’s the same for every event you form a nice $y=f(x) = 1/(b-a)$ line.Now if the distribution is not Uniform, then each such event would have differing probability and so the integral area under the curve will vary.






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      To check this intuitively, You could as well calculated it easily $P(X>20)$ and $P(Y>20)$.
      Uniform distribution means every event is equally likely
      So for X commute time is uniformly distributed between 15 and 25.
      So the probability of reaching exactly at a particular minute between 15 and 25 is $1/10$. Similarly for Y it is $1/15$. Now how many minutes above 20 are there for X and Y in their respective ranges?
      5 for X and 10 for Y. So, $P(X> 20)=5/10=1/2$ and $P(Y>20)=10/15=2/3$. Since the events are independent,
      $P(X>20, Y>20)= 1/2 *2/3 =1/3$. If you look at the Probablity graph of the distribution, the integral that you posted is nothing but the rectangular area between $c=21$ and $d=25$ for X and $c=21$ and $d=30$ for Y. The height is the probablity which is $1/10$ and $1/15$ Respectively. Since it’s the same for every event you form a nice $y=f(x) = 1/(b-a)$ line.Now if the distribution is not Uniform, then each such event would have differing probability and so the integral area under the curve will vary.






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        To check this intuitively, You could as well calculated it easily $P(X>20)$ and $P(Y>20)$.
        Uniform distribution means every event is equally likely
        So for X commute time is uniformly distributed between 15 and 25.
        So the probability of reaching exactly at a particular minute between 15 and 25 is $1/10$. Similarly for Y it is $1/15$. Now how many minutes above 20 are there for X and Y in their respective ranges?
        5 for X and 10 for Y. So, $P(X> 20)=5/10=1/2$ and $P(Y>20)=10/15=2/3$. Since the events are independent,
        $P(X>20, Y>20)= 1/2 *2/3 =1/3$. If you look at the Probablity graph of the distribution, the integral that you posted is nothing but the rectangular area between $c=21$ and $d=25$ for X and $c=21$ and $d=30$ for Y. The height is the probablity which is $1/10$ and $1/15$ Respectively. Since it’s the same for every event you form a nice $y=f(x) = 1/(b-a)$ line.Now if the distribution is not Uniform, then each such event would have differing probability and so the integral area under the curve will vary.






        share|cite|improve this answer









        $endgroup$



        To check this intuitively, You could as well calculated it easily $P(X>20)$ and $P(Y>20)$.
        Uniform distribution means every event is equally likely
        So for X commute time is uniformly distributed between 15 and 25.
        So the probability of reaching exactly at a particular minute between 15 and 25 is $1/10$. Similarly for Y it is $1/15$. Now how many minutes above 20 are there for X and Y in their respective ranges?
        5 for X and 10 for Y. So, $P(X> 20)=5/10=1/2$ and $P(Y>20)=10/15=2/3$. Since the events are independent,
        $P(X>20, Y>20)= 1/2 *2/3 =1/3$. If you look at the Probablity graph of the distribution, the integral that you posted is nothing but the rectangular area between $c=21$ and $d=25$ for X and $c=21$ and $d=30$ for Y. The height is the probablity which is $1/10$ and $1/15$ Respectively. Since it’s the same for every event you form a nice $y=f(x) = 1/(b-a)$ line.Now if the distribution is not Uniform, then each such event would have differing probability and so the integral area under the curve will vary.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Feb 2 at 17:05









        Gopal AnantharamanGopal Anantharaman

        826




        826






























            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%2f3097447%2funiform-distribution-is-my-solution-correct%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

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            ts Property 'filter' does not exist on type '{}'

            mat-slide-toggle shouldn't change it's state when I click cancel in confirmation window