If $Xsim Unif[0,1]$ what is $f_Y$ if $Y=g(X)$?












3














Let $Xsim Uniform[0,1]$ and $$g(x)=begin{cases}3x&xin [0,1/3]\ 0&otherwiseend{cases}.$$
What is the density function of $Y$ ? (denoted $f_Y$).





I'm a bit confuse. The cumulative function is given by $$F_Y(y)=mathbb P{Yleq y}=mathbb P{g(X)leq y},$$
but I have problem to continue. Is it $$mathbb P{G(X)leq y}=mathbb P{G(X)leq y, Xin [0,1]}$$
$$=mathbb P{g(X)leq y,Xin[0,1/3]}+mathbb P{g(X)leq y, Xin [1/3,1]}=mathbb P{3Xleq y, Xin [0,1/3]}+mathbb P{0leq y,Xin [1/3,1]} ?$$



I'm confuse on how to continue.










share|cite|improve this question



























    3














    Let $Xsim Uniform[0,1]$ and $$g(x)=begin{cases}3x&xin [0,1/3]\ 0&otherwiseend{cases}.$$
    What is the density function of $Y$ ? (denoted $f_Y$).





    I'm a bit confuse. The cumulative function is given by $$F_Y(y)=mathbb P{Yleq y}=mathbb P{g(X)leq y},$$
    but I have problem to continue. Is it $$mathbb P{G(X)leq y}=mathbb P{G(X)leq y, Xin [0,1]}$$
    $$=mathbb P{g(X)leq y,Xin[0,1/3]}+mathbb P{g(X)leq y, Xin [1/3,1]}=mathbb P{3Xleq y, Xin [0,1/3]}+mathbb P{0leq y,Xin [1/3,1]} ?$$



    I'm confuse on how to continue.










    share|cite|improve this question

























      3












      3








      3


      1





      Let $Xsim Uniform[0,1]$ and $$g(x)=begin{cases}3x&xin [0,1/3]\ 0&otherwiseend{cases}.$$
      What is the density function of $Y$ ? (denoted $f_Y$).





      I'm a bit confuse. The cumulative function is given by $$F_Y(y)=mathbb P{Yleq y}=mathbb P{g(X)leq y},$$
      but I have problem to continue. Is it $$mathbb P{G(X)leq y}=mathbb P{G(X)leq y, Xin [0,1]}$$
      $$=mathbb P{g(X)leq y,Xin[0,1/3]}+mathbb P{g(X)leq y, Xin [1/3,1]}=mathbb P{3Xleq y, Xin [0,1/3]}+mathbb P{0leq y,Xin [1/3,1]} ?$$



      I'm confuse on how to continue.










      share|cite|improve this question













      Let $Xsim Uniform[0,1]$ and $$g(x)=begin{cases}3x&xin [0,1/3]\ 0&otherwiseend{cases}.$$
      What is the density function of $Y$ ? (denoted $f_Y$).





      I'm a bit confuse. The cumulative function is given by $$F_Y(y)=mathbb P{Yleq y}=mathbb P{g(X)leq y},$$
      but I have problem to continue. Is it $$mathbb P{G(X)leq y}=mathbb P{G(X)leq y, Xin [0,1]}$$
      $$=mathbb P{g(X)leq y,Xin[0,1/3]}+mathbb P{g(X)leq y, Xin [1/3,1]}=mathbb P{3Xleq y, Xin [0,1/3]}+mathbb P{0leq y,Xin [1/3,1]} ?$$



      I'm confuse on how to continue.







      probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Nov 29 '18 at 20:19









      user621128user621128

      161




      161






















          2 Answers
          2






          active

          oldest

          votes


















          2














          The truth is $Y$ has no density function, since it's not a continuous random variable. It's actually not a discrete one, either.



          Note that $P(Y=0)=Pleft(Xnotin left[0,frac13right]right)=frac23$, so $Y$ is not continuous, since it has positive probability in one point ($Y=0$), but this is the only point with non-zero probability, so that $Y$ can't be discrete (because only $frac23$ of the probability are accumulated at points, the other $frac13$ is continuously accumulated in the interval $(0,1)$.



          That is, $Y$ has a mixed type probability distribution.



          While it has no PDF nor PMF, it has a CDF (any random variable does) and it is
          $$F_Y(y)=left{begin{matrix}0 & y<0\ frac23+frac y3 & 0le y<1\ 1 & yge 1.end{matrix}right.$$






          share|cite|improve this answer























          • Nice answer. I was in the wrong way since the beginning. (+1)
            – Surb
            Nov 29 '18 at 21:11










          • But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
            – Surb
            Nov 29 '18 at 21:32












          • Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:46










          • Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:48





















          -1














          A simpler approach is



          $$
          f_X{rm d}X = f_Y {rm d}Y ~~Rightarrow ~~~ f_Y(y) = f_X(x)left|frac{{rm d}X}{{rm d}Y}right| = 1 cdot frac{1}{3} = frac{1}{3}
          $$






          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%2f3019146%2fif-x-sim-unif0-1-what-is-f-y-if-y-gx%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









            2














            The truth is $Y$ has no density function, since it's not a continuous random variable. It's actually not a discrete one, either.



            Note that $P(Y=0)=Pleft(Xnotin left[0,frac13right]right)=frac23$, so $Y$ is not continuous, since it has positive probability in one point ($Y=0$), but this is the only point with non-zero probability, so that $Y$ can't be discrete (because only $frac23$ of the probability are accumulated at points, the other $frac13$ is continuously accumulated in the interval $(0,1)$.



            That is, $Y$ has a mixed type probability distribution.



            While it has no PDF nor PMF, it has a CDF (any random variable does) and it is
            $$F_Y(y)=left{begin{matrix}0 & y<0\ frac23+frac y3 & 0le y<1\ 1 & yge 1.end{matrix}right.$$






            share|cite|improve this answer























            • Nice answer. I was in the wrong way since the beginning. (+1)
              – Surb
              Nov 29 '18 at 21:11










            • But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
              – Surb
              Nov 29 '18 at 21:32












            • Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:46










            • Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:48


















            2














            The truth is $Y$ has no density function, since it's not a continuous random variable. It's actually not a discrete one, either.



            Note that $P(Y=0)=Pleft(Xnotin left[0,frac13right]right)=frac23$, so $Y$ is not continuous, since it has positive probability in one point ($Y=0$), but this is the only point with non-zero probability, so that $Y$ can't be discrete (because only $frac23$ of the probability are accumulated at points, the other $frac13$ is continuously accumulated in the interval $(0,1)$.



            That is, $Y$ has a mixed type probability distribution.



            While it has no PDF nor PMF, it has a CDF (any random variable does) and it is
            $$F_Y(y)=left{begin{matrix}0 & y<0\ frac23+frac y3 & 0le y<1\ 1 & yge 1.end{matrix}right.$$






            share|cite|improve this answer























            • Nice answer. I was in the wrong way since the beginning. (+1)
              – Surb
              Nov 29 '18 at 21:11










            • But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
              – Surb
              Nov 29 '18 at 21:32












            • Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:46










            • Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:48
















            2












            2








            2






            The truth is $Y$ has no density function, since it's not a continuous random variable. It's actually not a discrete one, either.



            Note that $P(Y=0)=Pleft(Xnotin left[0,frac13right]right)=frac23$, so $Y$ is not continuous, since it has positive probability in one point ($Y=0$), but this is the only point with non-zero probability, so that $Y$ can't be discrete (because only $frac23$ of the probability are accumulated at points, the other $frac13$ is continuously accumulated in the interval $(0,1)$.



            That is, $Y$ has a mixed type probability distribution.



            While it has no PDF nor PMF, it has a CDF (any random variable does) and it is
            $$F_Y(y)=left{begin{matrix}0 & y<0\ frac23+frac y3 & 0le y<1\ 1 & yge 1.end{matrix}right.$$






            share|cite|improve this answer














            The truth is $Y$ has no density function, since it's not a continuous random variable. It's actually not a discrete one, either.



            Note that $P(Y=0)=Pleft(Xnotin left[0,frac13right]right)=frac23$, so $Y$ is not continuous, since it has positive probability in one point ($Y=0$), but this is the only point with non-zero probability, so that $Y$ can't be discrete (because only $frac23$ of the probability are accumulated at points, the other $frac13$ is continuously accumulated in the interval $(0,1)$.



            That is, $Y$ has a mixed type probability distribution.



            While it has no PDF nor PMF, it has a CDF (any random variable does) and it is
            $$F_Y(y)=left{begin{matrix}0 & y<0\ frac23+frac y3 & 0le y<1\ 1 & yge 1.end{matrix}right.$$







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Nov 29 '18 at 21:03

























            answered Nov 29 '18 at 20:58









            Alejandro Nasif SalumAlejandro Nasif Salum

            4,409118




            4,409118












            • Nice answer. I was in the wrong way since the beginning. (+1)
              – Surb
              Nov 29 '18 at 21:11










            • But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
              – Surb
              Nov 29 '18 at 21:32












            • Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:46










            • Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:48




















            • Nice answer. I was in the wrong way since the beginning. (+1)
              – Surb
              Nov 29 '18 at 21:11










            • But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
              – Surb
              Nov 29 '18 at 21:32












            • Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:46










            • Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
              – Alejandro Nasif Salum
              Nov 29 '18 at 21:48


















            Nice answer. I was in the wrong way since the beginning. (+1)
            – Surb
            Nov 29 '18 at 21:11




            Nice answer. I was in the wrong way since the beginning. (+1)
            – Surb
            Nov 29 '18 at 21:11












            But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
            – Surb
            Nov 29 '18 at 21:32






            But for $yin (0,1)$ can't we say that $f_Y(y)=frac{1}{3}$ ? (i.e. it has a density for all $yin (0,1)$ ?
            – Surb
            Nov 29 '18 at 21:32














            Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:46




            Well... that would not be a density since it does not integrate $1$. We could say that $Y$ has a density conditioned on $Yneq 0$, though, but that density would be $1$, not $frac 13$. If $Yneq 0$, then $Ysim mathbb U(0,1)$, but if $Y=0$, then... well... then $Y=0$, and that's it.
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:46












            Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:48






            Another way to see a mixed r.v. is to take a r.v. $U$ which is $0$ with probability $frac13$ and $1$ with probability $frac23$ (that is, a Bernoulli r.v. with $p=frac23$). Then define: $$Y=left{begin{matrix}W& U=0\ 0 & U=1\end{matrix}right.$$
            – Alejandro Nasif Salum
            Nov 29 '18 at 21:48













            -1














            A simpler approach is



            $$
            f_X{rm d}X = f_Y {rm d}Y ~~Rightarrow ~~~ f_Y(y) = f_X(x)left|frac{{rm d}X}{{rm d}Y}right| = 1 cdot frac{1}{3} = frac{1}{3}
            $$






            share|cite|improve this answer




























              -1














              A simpler approach is



              $$
              f_X{rm d}X = f_Y {rm d}Y ~~Rightarrow ~~~ f_Y(y) = f_X(x)left|frac{{rm d}X}{{rm d}Y}right| = 1 cdot frac{1}{3} = frac{1}{3}
              $$






              share|cite|improve this answer


























                -1












                -1








                -1






                A simpler approach is



                $$
                f_X{rm d}X = f_Y {rm d}Y ~~Rightarrow ~~~ f_Y(y) = f_X(x)left|frac{{rm d}X}{{rm d}Y}right| = 1 cdot frac{1}{3} = frac{1}{3}
                $$






                share|cite|improve this answer














                A simpler approach is



                $$
                f_X{rm d}X = f_Y {rm d}Y ~~Rightarrow ~~~ f_Y(y) = f_X(x)left|frac{{rm d}X}{{rm d}Y}right| = 1 cdot frac{1}{3} = frac{1}{3}
                $$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Nov 29 '18 at 20:38

























                answered Nov 29 '18 at 20:32









                caveraccaverac

                14k21130




                14k21130






























                    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%2f3019146%2fif-x-sim-unif0-1-what-is-f-y-if-y-gx%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

                    Bundesstraße 106

                    Verónica Boquete

                    Ida-Boy-Ed-Garten