CDF function formed by vertices.












2














Below is the problem:



Choose a point uniformly at random from the triangle with vertices (0,0), (0, 30), and (20, 30). Let (X, Y ) be the coordinates of the chosen point. (a) Find the cumulative distribution function of X. (b) Use part (a) to find the density of X.



First, for the first part of the question, a triangle is formed by three vertices in the question. Therefore it would look something like an inverted triangle whose right angle is formed by y-axis and the line that goes through (0,30) and (20, 30)



If I find the area of this triangle it would be 300 since
(30)(20) / 2 = 300



so for (X, Y) coordinates in the area, the probability of the point being in the triangle is 1/300.



So to find cdf, since the equation of the line that goes through the origin and (20, 30) is y = (3/2)x, I think cdf is



F(X) =
1. (3/2)x * x * 1/2 * 1/300 = (1/400) * x^2 for 0 <= x <= 20
2. 0 for x < 0
3. 1 for x > 20



But I am not really sure if my process is right



For part (b), I know I just have to take the derivative but the if I take the derivative, I am only calculating the area of the slope but I am suppose to find the area of the inverted triangle.
Since the area of two triangles are equal, can I just take the derivative? or should the area be something like 1 - (derivative) ?










share|cite|improve this question





























    2














    Below is the problem:



    Choose a point uniformly at random from the triangle with vertices (0,0), (0, 30), and (20, 30). Let (X, Y ) be the coordinates of the chosen point. (a) Find the cumulative distribution function of X. (b) Use part (a) to find the density of X.



    First, for the first part of the question, a triangle is formed by three vertices in the question. Therefore it would look something like an inverted triangle whose right angle is formed by y-axis and the line that goes through (0,30) and (20, 30)



    If I find the area of this triangle it would be 300 since
    (30)(20) / 2 = 300



    so for (X, Y) coordinates in the area, the probability of the point being in the triangle is 1/300.



    So to find cdf, since the equation of the line that goes through the origin and (20, 30) is y = (3/2)x, I think cdf is



    F(X) =
    1. (3/2)x * x * 1/2 * 1/300 = (1/400) * x^2 for 0 <= x <= 20
    2. 0 for x < 0
    3. 1 for x > 20



    But I am not really sure if my process is right



    For part (b), I know I just have to take the derivative but the if I take the derivative, I am only calculating the area of the slope but I am suppose to find the area of the inverted triangle.
    Since the area of two triangles are equal, can I just take the derivative? or should the area be something like 1 - (derivative) ?










    share|cite|improve this question



























      2












      2








      2







      Below is the problem:



      Choose a point uniformly at random from the triangle with vertices (0,0), (0, 30), and (20, 30). Let (X, Y ) be the coordinates of the chosen point. (a) Find the cumulative distribution function of X. (b) Use part (a) to find the density of X.



      First, for the first part of the question, a triangle is formed by three vertices in the question. Therefore it would look something like an inverted triangle whose right angle is formed by y-axis and the line that goes through (0,30) and (20, 30)



      If I find the area of this triangle it would be 300 since
      (30)(20) / 2 = 300



      so for (X, Y) coordinates in the area, the probability of the point being in the triangle is 1/300.



      So to find cdf, since the equation of the line that goes through the origin and (20, 30) is y = (3/2)x, I think cdf is



      F(X) =
      1. (3/2)x * x * 1/2 * 1/300 = (1/400) * x^2 for 0 <= x <= 20
      2. 0 for x < 0
      3. 1 for x > 20



      But I am not really sure if my process is right



      For part (b), I know I just have to take the derivative but the if I take the derivative, I am only calculating the area of the slope but I am suppose to find the area of the inverted triangle.
      Since the area of two triangles are equal, can I just take the derivative? or should the area be something like 1 - (derivative) ?










      share|cite|improve this question















      Below is the problem:



      Choose a point uniformly at random from the triangle with vertices (0,0), (0, 30), and (20, 30). Let (X, Y ) be the coordinates of the chosen point. (a) Find the cumulative distribution function of X. (b) Use part (a) to find the density of X.



      First, for the first part of the question, a triangle is formed by three vertices in the question. Therefore it would look something like an inverted triangle whose right angle is formed by y-axis and the line that goes through (0,30) and (20, 30)



      If I find the area of this triangle it would be 300 since
      (30)(20) / 2 = 300



      so for (X, Y) coordinates in the area, the probability of the point being in the triangle is 1/300.



      So to find cdf, since the equation of the line that goes through the origin and (20, 30) is y = (3/2)x, I think cdf is



      F(X) =
      1. (3/2)x * x * 1/2 * 1/300 = (1/400) * x^2 for 0 <= x <= 20
      2. 0 for x < 0
      3. 1 for x > 20



      But I am not really sure if my process is right



      For part (b), I know I just have to take the derivative but the if I take the derivative, I am only calculating the area of the slope but I am suppose to find the area of the inverted triangle.
      Since the area of two triangles are equal, can I just take the derivative? or should the area be something like 1 - (derivative) ?







      probability-distributions






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 20 '18 at 20:54









      David G. Stork

      9,81521232




      9,81521232










      asked Oct 7 '15 at 2:45









      Cheul Hee Jason Yoo

      204




      204






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Since both $X$ and $Y$ are continuous random variables, the probability of a specific point is actually zero, $frac{1}{300}$ is not a probability, it is the joint density function. Since the point is chosen randomly, the joint distribution is uniform over the region defined by the triangle:



          $$
          f_{X,Y}(x,y) = left {
          begin{array}{rl}
          frac{1}{300} & 0 < x < 20, frac{3}{2}x < y < 30\
          0 & text{otherwise}
          end{array}
          right .
          $$



          From this you can compute the marginal PDF of $X$, as



          $$f_X(x) = int_{-infty}^{infty} f_{X,Y}(x,y) dy = int_{frac{3}{2}x}^{30} frac{1}{300} dy$$



          And from this you can compute the CDF of $X$ as



          $$F_X(x) = int_{-infty}^{x} f_{X}(t) dt $$



          Another view:



          $$F_X(x) = P(X < x) = P(X < x, Y < 30) = int_{0}^{x}int_{frac{3}{2}x}^{30} frac{1}{300} dydx$$



          Geometric interpretation



          The joint PDF is the height of a uniform triangular prism whose base is the triangle in the $XY$ plane where the point is chosen. To visualize $P(X < x, Y < 30)$, imagine that you cut that prism at $X=x$ (some point between 0 and 20), parallel to its height, and you keep the part that goes from $0 < X < x$. That part would be now a general prism with the same height and a base that is in general a trapezoid. The CDF of $X$ would be then the volume of that prism. You can see then that as you move your "cutting" point $x$ to 20, your general prism becomes the uniform triangular prism, whose volume is 1, which agrees with the fact that $F_X(infty)=1$.



          You can compute $F_X(x)$ using geometric arguments, by multiplying the area of base of the general prism that you kept times its heigth $left(frac{1}{300}right)$, or you can integrate, as was shown before.






          share|cite|improve this answer































            0














            We want the cdf $F_X(x)$ of $X$. So we want to find an expression for $Pr(Xle x)$.



            Let I forget, if $xlt 0$, then $Pr(Xle x)=0$, so $F_X(x)=0$. And if $xgt 20$, then $Pr(Xle x)=1$.



            We now deal with the interesting part, when $0le xle 20$. Draw the vertical line that goes through the point $(x,0)$. We want the probability that $X$ lands in the region $K$ which is to the left of our vertical line, and inside the triangle.



            This probability is the area of $K$, divided by the area $300$ of the full triangle.



            The region $K$ is a trapezoid, one base equal to $30$. What is the other base? The line oining $(0,0)$ to $(20,30)$ has equation $y=frac{3x}{2}$. So the other base is $30-frac{3x}{2}$.



            The "height" of the trapezoid is $x$. So the area of $K$, after a little simplification, is $xleft(30-frac{3x}{4}right)$. Finally, divide by $300$.



            For the density function, differentiate. Don't forget about the parts outside $(0,20)$.






            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%2f1468097%2fcdf-function-formed-by-vertices%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









              0














              Since both $X$ and $Y$ are continuous random variables, the probability of a specific point is actually zero, $frac{1}{300}$ is not a probability, it is the joint density function. Since the point is chosen randomly, the joint distribution is uniform over the region defined by the triangle:



              $$
              f_{X,Y}(x,y) = left {
              begin{array}{rl}
              frac{1}{300} & 0 < x < 20, frac{3}{2}x < y < 30\
              0 & text{otherwise}
              end{array}
              right .
              $$



              From this you can compute the marginal PDF of $X$, as



              $$f_X(x) = int_{-infty}^{infty} f_{X,Y}(x,y) dy = int_{frac{3}{2}x}^{30} frac{1}{300} dy$$



              And from this you can compute the CDF of $X$ as



              $$F_X(x) = int_{-infty}^{x} f_{X}(t) dt $$



              Another view:



              $$F_X(x) = P(X < x) = P(X < x, Y < 30) = int_{0}^{x}int_{frac{3}{2}x}^{30} frac{1}{300} dydx$$



              Geometric interpretation



              The joint PDF is the height of a uniform triangular prism whose base is the triangle in the $XY$ plane where the point is chosen. To visualize $P(X < x, Y < 30)$, imagine that you cut that prism at $X=x$ (some point between 0 and 20), parallel to its height, and you keep the part that goes from $0 < X < x$. That part would be now a general prism with the same height and a base that is in general a trapezoid. The CDF of $X$ would be then the volume of that prism. You can see then that as you move your "cutting" point $x$ to 20, your general prism becomes the uniform triangular prism, whose volume is 1, which agrees with the fact that $F_X(infty)=1$.



              You can compute $F_X(x)$ using geometric arguments, by multiplying the area of base of the general prism that you kept times its heigth $left(frac{1}{300}right)$, or you can integrate, as was shown before.






              share|cite|improve this answer




























                0














                Since both $X$ and $Y$ are continuous random variables, the probability of a specific point is actually zero, $frac{1}{300}$ is not a probability, it is the joint density function. Since the point is chosen randomly, the joint distribution is uniform over the region defined by the triangle:



                $$
                f_{X,Y}(x,y) = left {
                begin{array}{rl}
                frac{1}{300} & 0 < x < 20, frac{3}{2}x < y < 30\
                0 & text{otherwise}
                end{array}
                right .
                $$



                From this you can compute the marginal PDF of $X$, as



                $$f_X(x) = int_{-infty}^{infty} f_{X,Y}(x,y) dy = int_{frac{3}{2}x}^{30} frac{1}{300} dy$$



                And from this you can compute the CDF of $X$ as



                $$F_X(x) = int_{-infty}^{x} f_{X}(t) dt $$



                Another view:



                $$F_X(x) = P(X < x) = P(X < x, Y < 30) = int_{0}^{x}int_{frac{3}{2}x}^{30} frac{1}{300} dydx$$



                Geometric interpretation



                The joint PDF is the height of a uniform triangular prism whose base is the triangle in the $XY$ plane where the point is chosen. To visualize $P(X < x, Y < 30)$, imagine that you cut that prism at $X=x$ (some point between 0 and 20), parallel to its height, and you keep the part that goes from $0 < X < x$. That part would be now a general prism with the same height and a base that is in general a trapezoid. The CDF of $X$ would be then the volume of that prism. You can see then that as you move your "cutting" point $x$ to 20, your general prism becomes the uniform triangular prism, whose volume is 1, which agrees with the fact that $F_X(infty)=1$.



                You can compute $F_X(x)$ using geometric arguments, by multiplying the area of base of the general prism that you kept times its heigth $left(frac{1}{300}right)$, or you can integrate, as was shown before.






                share|cite|improve this answer


























                  0












                  0








                  0






                  Since both $X$ and $Y$ are continuous random variables, the probability of a specific point is actually zero, $frac{1}{300}$ is not a probability, it is the joint density function. Since the point is chosen randomly, the joint distribution is uniform over the region defined by the triangle:



                  $$
                  f_{X,Y}(x,y) = left {
                  begin{array}{rl}
                  frac{1}{300} & 0 < x < 20, frac{3}{2}x < y < 30\
                  0 & text{otherwise}
                  end{array}
                  right .
                  $$



                  From this you can compute the marginal PDF of $X$, as



                  $$f_X(x) = int_{-infty}^{infty} f_{X,Y}(x,y) dy = int_{frac{3}{2}x}^{30} frac{1}{300} dy$$



                  And from this you can compute the CDF of $X$ as



                  $$F_X(x) = int_{-infty}^{x} f_{X}(t) dt $$



                  Another view:



                  $$F_X(x) = P(X < x) = P(X < x, Y < 30) = int_{0}^{x}int_{frac{3}{2}x}^{30} frac{1}{300} dydx$$



                  Geometric interpretation



                  The joint PDF is the height of a uniform triangular prism whose base is the triangle in the $XY$ plane where the point is chosen. To visualize $P(X < x, Y < 30)$, imagine that you cut that prism at $X=x$ (some point between 0 and 20), parallel to its height, and you keep the part that goes from $0 < X < x$. That part would be now a general prism with the same height and a base that is in general a trapezoid. The CDF of $X$ would be then the volume of that prism. You can see then that as you move your "cutting" point $x$ to 20, your general prism becomes the uniform triangular prism, whose volume is 1, which agrees with the fact that $F_X(infty)=1$.



                  You can compute $F_X(x)$ using geometric arguments, by multiplying the area of base of the general prism that you kept times its heigth $left(frac{1}{300}right)$, or you can integrate, as was shown before.






                  share|cite|improve this answer














                  Since both $X$ and $Y$ are continuous random variables, the probability of a specific point is actually zero, $frac{1}{300}$ is not a probability, it is the joint density function. Since the point is chosen randomly, the joint distribution is uniform over the region defined by the triangle:



                  $$
                  f_{X,Y}(x,y) = left {
                  begin{array}{rl}
                  frac{1}{300} & 0 < x < 20, frac{3}{2}x < y < 30\
                  0 & text{otherwise}
                  end{array}
                  right .
                  $$



                  From this you can compute the marginal PDF of $X$, as



                  $$f_X(x) = int_{-infty}^{infty} f_{X,Y}(x,y) dy = int_{frac{3}{2}x}^{30} frac{1}{300} dy$$



                  And from this you can compute the CDF of $X$ as



                  $$F_X(x) = int_{-infty}^{x} f_{X}(t) dt $$



                  Another view:



                  $$F_X(x) = P(X < x) = P(X < x, Y < 30) = int_{0}^{x}int_{frac{3}{2}x}^{30} frac{1}{300} dydx$$



                  Geometric interpretation



                  The joint PDF is the height of a uniform triangular prism whose base is the triangle in the $XY$ plane where the point is chosen. To visualize $P(X < x, Y < 30)$, imagine that you cut that prism at $X=x$ (some point between 0 and 20), parallel to its height, and you keep the part that goes from $0 < X < x$. That part would be now a general prism with the same height and a base that is in general a trapezoid. The CDF of $X$ would be then the volume of that prism. You can see then that as you move your "cutting" point $x$ to 20, your general prism becomes the uniform triangular prism, whose volume is 1, which agrees with the fact that $F_X(infty)=1$.



                  You can compute $F_X(x)$ using geometric arguments, by multiplying the area of base of the general prism that you kept times its heigth $left(frac{1}{300}right)$, or you can integrate, as was shown before.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Oct 7 '15 at 4:21

























                  answered Oct 7 '15 at 3:15









                  Carlos Mendoza

                  1,451518




                  1,451518























                      0














                      We want the cdf $F_X(x)$ of $X$. So we want to find an expression for $Pr(Xle x)$.



                      Let I forget, if $xlt 0$, then $Pr(Xle x)=0$, so $F_X(x)=0$. And if $xgt 20$, then $Pr(Xle x)=1$.



                      We now deal with the interesting part, when $0le xle 20$. Draw the vertical line that goes through the point $(x,0)$. We want the probability that $X$ lands in the region $K$ which is to the left of our vertical line, and inside the triangle.



                      This probability is the area of $K$, divided by the area $300$ of the full triangle.



                      The region $K$ is a trapezoid, one base equal to $30$. What is the other base? The line oining $(0,0)$ to $(20,30)$ has equation $y=frac{3x}{2}$. So the other base is $30-frac{3x}{2}$.



                      The "height" of the trapezoid is $x$. So the area of $K$, after a little simplification, is $xleft(30-frac{3x}{4}right)$. Finally, divide by $300$.



                      For the density function, differentiate. Don't forget about the parts outside $(0,20)$.






                      share|cite|improve this answer


























                        0














                        We want the cdf $F_X(x)$ of $X$. So we want to find an expression for $Pr(Xle x)$.



                        Let I forget, if $xlt 0$, then $Pr(Xle x)=0$, so $F_X(x)=0$. And if $xgt 20$, then $Pr(Xle x)=1$.



                        We now deal with the interesting part, when $0le xle 20$. Draw the vertical line that goes through the point $(x,0)$. We want the probability that $X$ lands in the region $K$ which is to the left of our vertical line, and inside the triangle.



                        This probability is the area of $K$, divided by the area $300$ of the full triangle.



                        The region $K$ is a trapezoid, one base equal to $30$. What is the other base? The line oining $(0,0)$ to $(20,30)$ has equation $y=frac{3x}{2}$. So the other base is $30-frac{3x}{2}$.



                        The "height" of the trapezoid is $x$. So the area of $K$, after a little simplification, is $xleft(30-frac{3x}{4}right)$. Finally, divide by $300$.



                        For the density function, differentiate. Don't forget about the parts outside $(0,20)$.






                        share|cite|improve this answer
























                          0












                          0








                          0






                          We want the cdf $F_X(x)$ of $X$. So we want to find an expression for $Pr(Xle x)$.



                          Let I forget, if $xlt 0$, then $Pr(Xle x)=0$, so $F_X(x)=0$. And if $xgt 20$, then $Pr(Xle x)=1$.



                          We now deal with the interesting part, when $0le xle 20$. Draw the vertical line that goes through the point $(x,0)$. We want the probability that $X$ lands in the region $K$ which is to the left of our vertical line, and inside the triangle.



                          This probability is the area of $K$, divided by the area $300$ of the full triangle.



                          The region $K$ is a trapezoid, one base equal to $30$. What is the other base? The line oining $(0,0)$ to $(20,30)$ has equation $y=frac{3x}{2}$. So the other base is $30-frac{3x}{2}$.



                          The "height" of the trapezoid is $x$. So the area of $K$, after a little simplification, is $xleft(30-frac{3x}{4}right)$. Finally, divide by $300$.



                          For the density function, differentiate. Don't forget about the parts outside $(0,20)$.






                          share|cite|improve this answer












                          We want the cdf $F_X(x)$ of $X$. So we want to find an expression for $Pr(Xle x)$.



                          Let I forget, if $xlt 0$, then $Pr(Xle x)=0$, so $F_X(x)=0$. And if $xgt 20$, then $Pr(Xle x)=1$.



                          We now deal with the interesting part, when $0le xle 20$. Draw the vertical line that goes through the point $(x,0)$. We want the probability that $X$ lands in the region $K$ which is to the left of our vertical line, and inside the triangle.



                          This probability is the area of $K$, divided by the area $300$ of the full triangle.



                          The region $K$ is a trapezoid, one base equal to $30$. What is the other base? The line oining $(0,0)$ to $(20,30)$ has equation $y=frac{3x}{2}$. So the other base is $30-frac{3x}{2}$.



                          The "height" of the trapezoid is $x$. So the area of $K$, after a little simplification, is $xleft(30-frac{3x}{4}right)$. Finally, divide by $300$.



                          For the density function, differentiate. Don't forget about the parts outside $(0,20)$.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Oct 7 '15 at 3:15









                          André Nicolas

                          451k36422806




                          451k36422806






























                              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%2f1468097%2fcdf-function-formed-by-vertices%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