CDF of $max(X,X^2)$ for $X$ uniformly distributed on $[-1,1]$












2












$begingroup$


$X$ is uniformly distributed on $[-1,1]$. And $Y=max(X,X^2)$.



What is $F_{Y}(t)$ , the CDF of $Y$?



My attempt:



I tried to graph it, but I think I found wrong. I found the joint pdf $5/6$. Is this correct? And what can I do next?










share|cite|improve this question











$endgroup$

















    2












    $begingroup$


    $X$ is uniformly distributed on $[-1,1]$. And $Y=max(X,X^2)$.



    What is $F_{Y}(t)$ , the CDF of $Y$?



    My attempt:



    I tried to graph it, but I think I found wrong. I found the joint pdf $5/6$. Is this correct? And what can I do next?










    share|cite|improve this question











    $endgroup$















      2












      2








      2


      2



      $begingroup$


      $X$ is uniformly distributed on $[-1,1]$. And $Y=max(X,X^2)$.



      What is $F_{Y}(t)$ , the CDF of $Y$?



      My attempt:



      I tried to graph it, but I think I found wrong. I found the joint pdf $5/6$. Is this correct? And what can I do next?










      share|cite|improve this question











      $endgroup$




      $X$ is uniformly distributed on $[-1,1]$. And $Y=max(X,X^2)$.



      What is $F_{Y}(t)$ , the CDF of $Y$?



      My attempt:



      I tried to graph it, but I think I found wrong. I found the joint pdf $5/6$. Is this correct? And what can I do next?







      probability-theory probability-distributions






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 11 at 21:46









      Did

      248k23223460




      248k23223460










      asked May 4 '14 at 19:27









      SomeoneSomeone

      226




      226






















          2 Answers
          2






          active

          oldest

          votes


















          4












          $begingroup$

          Note that $0leqslant Yleqslant1$ almost surely and that $[Yleqslant y]=[-sqrt{y}leqslant Xleqslant y]$ for every $y$ in $(0,1)$. The length of the interval $[-sqrt{y},y]$ is $y+sqrt{y}$ hence $$F_Y(y)=P(Yleqslant y)=tfrac12(y+sqrt{y}).$$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            How can you understand that $[−y<X<sqrt(y)]$
            $endgroup$
            – Someone
            May 4 '14 at 19:56






          • 1




            $begingroup$
            I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
            $endgroup$
            – Alex Zorn
            May 4 '14 at 19:58






          • 1




            $begingroup$
            Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
            $endgroup$
            – Did
            May 4 '14 at 20:00



















          5












          $begingroup$

          Using the joint cdf may not be the easiest way.



          If $Xle 0$, then $Y=X^2$. If $Xgt 0$, then $Y=X$.
          Let us find the cdf of $Y$. The only interesting part is for $0le yle 1$.



          With probability $frac{1}{2}$, we have $Xle 0$. Conditional on $Xle 0$, the distribution of $X$ is uniform on $[-1,0]$. Thus

          $$Pr(Yle y|Xle 0)=Pr(X^2le y|Xle 0)=Pr(-sqrt{y}le Xle 0|Xle 0)=sqrt{y}.$$



          With probability $frac{1}{2}$ we have $Xgt 0$. Conditional on $Xgt 0$, the distribution of $X$ is uniform on $[0,1]$. Thus
          $$Pr(Yle y|Xgt 0)=Pr(Xle y|Xgt 0)=y.$$
          We conclude that
          $$F_Y(y)=frac{1}{2}(sqrt{y})+frac{1}{2}y$$
          for $0le yle 1$.






          share|cite|improve this answer











          $endgroup$









          • 1




            $begingroup$
            I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
            $endgroup$
            – Someone
            May 4 '14 at 20:00










          • $begingroup$
            @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
            $endgroup$
            – André Nicolas
            May 4 '14 at 20:07











          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%2f781252%2fcdf-of-maxx-x2-for-x-uniformly-distributed-on-1-1%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









          4












          $begingroup$

          Note that $0leqslant Yleqslant1$ almost surely and that $[Yleqslant y]=[-sqrt{y}leqslant Xleqslant y]$ for every $y$ in $(0,1)$. The length of the interval $[-sqrt{y},y]$ is $y+sqrt{y}$ hence $$F_Y(y)=P(Yleqslant y)=tfrac12(y+sqrt{y}).$$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            How can you understand that $[−y<X<sqrt(y)]$
            $endgroup$
            – Someone
            May 4 '14 at 19:56






          • 1




            $begingroup$
            I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
            $endgroup$
            – Alex Zorn
            May 4 '14 at 19:58






          • 1




            $begingroup$
            Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
            $endgroup$
            – Did
            May 4 '14 at 20:00
















          4












          $begingroup$

          Note that $0leqslant Yleqslant1$ almost surely and that $[Yleqslant y]=[-sqrt{y}leqslant Xleqslant y]$ for every $y$ in $(0,1)$. The length of the interval $[-sqrt{y},y]$ is $y+sqrt{y}$ hence $$F_Y(y)=P(Yleqslant y)=tfrac12(y+sqrt{y}).$$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            How can you understand that $[−y<X<sqrt(y)]$
            $endgroup$
            – Someone
            May 4 '14 at 19:56






          • 1




            $begingroup$
            I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
            $endgroup$
            – Alex Zorn
            May 4 '14 at 19:58






          • 1




            $begingroup$
            Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
            $endgroup$
            – Did
            May 4 '14 at 20:00














          4












          4








          4





          $begingroup$

          Note that $0leqslant Yleqslant1$ almost surely and that $[Yleqslant y]=[-sqrt{y}leqslant Xleqslant y]$ for every $y$ in $(0,1)$. The length of the interval $[-sqrt{y},y]$ is $y+sqrt{y}$ hence $$F_Y(y)=P(Yleqslant y)=tfrac12(y+sqrt{y}).$$






          share|cite|improve this answer











          $endgroup$



          Note that $0leqslant Yleqslant1$ almost surely and that $[Yleqslant y]=[-sqrt{y}leqslant Xleqslant y]$ for every $y$ in $(0,1)$. The length of the interval $[-sqrt{y},y]$ is $y+sqrt{y}$ hence $$F_Y(y)=P(Yleqslant y)=tfrac12(y+sqrt{y}).$$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited May 5 '14 at 6:54

























          answered May 4 '14 at 19:43









          DidDid

          248k23223460




          248k23223460












          • $begingroup$
            How can you understand that $[−y<X<sqrt(y)]$
            $endgroup$
            – Someone
            May 4 '14 at 19:56






          • 1




            $begingroup$
            I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
            $endgroup$
            – Alex Zorn
            May 4 '14 at 19:58






          • 1




            $begingroup$
            Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
            $endgroup$
            – Did
            May 4 '14 at 20:00


















          • $begingroup$
            How can you understand that $[−y<X<sqrt(y)]$
            $endgroup$
            – Someone
            May 4 '14 at 19:56






          • 1




            $begingroup$
            I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
            $endgroup$
            – Alex Zorn
            May 4 '14 at 19:58






          • 1




            $begingroup$
            Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
            $endgroup$
            – Did
            May 4 '14 at 20:00
















          $begingroup$
          How can you understand that $[−y<X<sqrt(y)]$
          $endgroup$
          – Someone
          May 4 '14 at 19:56




          $begingroup$
          How can you understand that $[−y<X<sqrt(y)]$
          $endgroup$
          – Someone
          May 4 '14 at 19:56




          1




          1




          $begingroup$
          I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
          $endgroup$
          – Alex Zorn
          May 4 '14 at 19:58




          $begingroup$
          I think your interval should be -sqrt(y) < X < y, since y^2 < y on (-1,1), but the final answer is correct.
          $endgroup$
          – Alex Zorn
          May 4 '14 at 19:58




          1




          1




          $begingroup$
          Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
          $endgroup$
          – Did
          May 4 '14 at 20:00




          $begingroup$
          Indeed: $Ylt y$ means that $Xlt y$ and $X^2lt y$, that is, $Xlt y$ and $-sqrt{y}lt Xltsqrt{y}$, and $sqrt{y}gt y$ hence this is $-sqrt{y}lt Xlt y$. Thanks for notifying me.
          $endgroup$
          – Did
          May 4 '14 at 20:00











          5












          $begingroup$

          Using the joint cdf may not be the easiest way.



          If $Xle 0$, then $Y=X^2$. If $Xgt 0$, then $Y=X$.
          Let us find the cdf of $Y$. The only interesting part is for $0le yle 1$.



          With probability $frac{1}{2}$, we have $Xle 0$. Conditional on $Xle 0$, the distribution of $X$ is uniform on $[-1,0]$. Thus

          $$Pr(Yle y|Xle 0)=Pr(X^2le y|Xle 0)=Pr(-sqrt{y}le Xle 0|Xle 0)=sqrt{y}.$$



          With probability $frac{1}{2}$ we have $Xgt 0$. Conditional on $Xgt 0$, the distribution of $X$ is uniform on $[0,1]$. Thus
          $$Pr(Yle y|Xgt 0)=Pr(Xle y|Xgt 0)=y.$$
          We conclude that
          $$F_Y(y)=frac{1}{2}(sqrt{y})+frac{1}{2}y$$
          for $0le yle 1$.






          share|cite|improve this answer











          $endgroup$









          • 1




            $begingroup$
            I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
            $endgroup$
            – Someone
            May 4 '14 at 20:00










          • $begingroup$
            @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
            $endgroup$
            – André Nicolas
            May 4 '14 at 20:07
















          5












          $begingroup$

          Using the joint cdf may not be the easiest way.



          If $Xle 0$, then $Y=X^2$. If $Xgt 0$, then $Y=X$.
          Let us find the cdf of $Y$. The only interesting part is for $0le yle 1$.



          With probability $frac{1}{2}$, we have $Xle 0$. Conditional on $Xle 0$, the distribution of $X$ is uniform on $[-1,0]$. Thus

          $$Pr(Yle y|Xle 0)=Pr(X^2le y|Xle 0)=Pr(-sqrt{y}le Xle 0|Xle 0)=sqrt{y}.$$



          With probability $frac{1}{2}$ we have $Xgt 0$. Conditional on $Xgt 0$, the distribution of $X$ is uniform on $[0,1]$. Thus
          $$Pr(Yle y|Xgt 0)=Pr(Xle y|Xgt 0)=y.$$
          We conclude that
          $$F_Y(y)=frac{1}{2}(sqrt{y})+frac{1}{2}y$$
          for $0le yle 1$.






          share|cite|improve this answer











          $endgroup$









          • 1




            $begingroup$
            I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
            $endgroup$
            – Someone
            May 4 '14 at 20:00










          • $begingroup$
            @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
            $endgroup$
            – André Nicolas
            May 4 '14 at 20:07














          5












          5








          5





          $begingroup$

          Using the joint cdf may not be the easiest way.



          If $Xle 0$, then $Y=X^2$. If $Xgt 0$, then $Y=X$.
          Let us find the cdf of $Y$. The only interesting part is for $0le yle 1$.



          With probability $frac{1}{2}$, we have $Xle 0$. Conditional on $Xle 0$, the distribution of $X$ is uniform on $[-1,0]$. Thus

          $$Pr(Yle y|Xle 0)=Pr(X^2le y|Xle 0)=Pr(-sqrt{y}le Xle 0|Xle 0)=sqrt{y}.$$



          With probability $frac{1}{2}$ we have $Xgt 0$. Conditional on $Xgt 0$, the distribution of $X$ is uniform on $[0,1]$. Thus
          $$Pr(Yle y|Xgt 0)=Pr(Xle y|Xgt 0)=y.$$
          We conclude that
          $$F_Y(y)=frac{1}{2}(sqrt{y})+frac{1}{2}y$$
          for $0le yle 1$.






          share|cite|improve this answer











          $endgroup$



          Using the joint cdf may not be the easiest way.



          If $Xle 0$, then $Y=X^2$. If $Xgt 0$, then $Y=X$.
          Let us find the cdf of $Y$. The only interesting part is for $0le yle 1$.



          With probability $frac{1}{2}$, we have $Xle 0$. Conditional on $Xle 0$, the distribution of $X$ is uniform on $[-1,0]$. Thus

          $$Pr(Yle y|Xle 0)=Pr(X^2le y|Xle 0)=Pr(-sqrt{y}le Xle 0|Xle 0)=sqrt{y}.$$



          With probability $frac{1}{2}$ we have $Xgt 0$. Conditional on $Xgt 0$, the distribution of $X$ is uniform on $[0,1]$. Thus
          $$Pr(Yle y|Xgt 0)=Pr(Xle y|Xgt 0)=y.$$
          We conclude that
          $$F_Y(y)=frac{1}{2}(sqrt{y})+frac{1}{2}y$$
          for $0le yle 1$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited May 4 '14 at 20:06

























          answered May 4 '14 at 19:54









          André NicolasAndré Nicolas

          453k36425810




          453k36425810








          • 1




            $begingroup$
            I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
            $endgroup$
            – Someone
            May 4 '14 at 20:00










          • $begingroup$
            @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
            $endgroup$
            – André Nicolas
            May 4 '14 at 20:07














          • 1




            $begingroup$
            I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
            $endgroup$
            – Someone
            May 4 '14 at 20:00










          • $begingroup$
            @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
            $endgroup$
            – André Nicolas
            May 4 '14 at 20:07








          1




          1




          $begingroup$
          I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
          $endgroup$
          – Someone
          May 4 '14 at 20:00




          $begingroup$
          I don't think that your solution is right. Because when we put $y=1$ the result is $1/2$. But it must be $1$ I think. @Andre Nicolas
          $endgroup$
          – Someone
          May 4 '14 at 20:00












          $begingroup$
          @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
          $endgroup$
          – André Nicolas
          May 4 '14 at 20:07




          $begingroup$
          @Someone: Thanks, got tangled up with $1-(1-dots)$. Fixed.
          $endgroup$
          – André Nicolas
          May 4 '14 at 20:07


















          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%2f781252%2fcdf-of-maxx-x2-for-x-uniformly-distributed-on-1-1%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith