$(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$. Find $Var(X).$ The Next CEO of Stack OverflowWhen is $mboxVar(X|mathbf Y = mathbf y) < mboxVar(X)$ for all $mathbf y$?Calculate conditional expected value$Xsimmathcal N(0,1); Y = sqrt$; find $f_Y(y)$Variance of Random Exponential VariablesProperty of conditional expectations$operatorname Var[e^Z-X]$ where $X ~ operatornameExp(1)$ and $P(Z = 1) = P(Z = -1) = frac12$Need counter-examples to disprove “mean independence implies variance independence” and “ variance independence implies mean independence”Show that if $XsimtextPois(theta)$, then $I(theta;X) = 1/theta$.Convergence of sum of Bernoulli random variables $X_ksim textBernoullileft(fracpkright)$$Var(f(X))$ when $Var(X)to 0$

How to unfasten electrical subpanel attached with ramset

Simplify trigonometric expression using trigonometric identities

Is it possible to create a QR code using text?

Gauss' Posthumous Publications?

How do I keep Mac Emacs from trapping M-`?

Compilation of a 2d array and a 1d array

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

Is it possible to make a 9x9 table fit within the default margins?

Direct Implications Between USA and UK in Event of No-Deal Brexit

Shortening a title without changing its meaning

Does the Idaho Potato Commission associate potato skins with healthy eating?

It it possible to avoid kiwi.com's automatic online check-in and instead do it manually by yourself?

How to show a landlord what we have in savings?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Variance of Monte Carlo integration with importance sampling

Strange use of "whether ... than ..." in official text

Free fall ellipse or parabola?

Find a path from s to t using as few red nodes as possible

What are the unusually-enlarged wing sections on this P-38 Lightning?

Cannot restore registry to default in Windows 10?

Why was Sir Cadogan fired?

Is it OK to decorate a log book cover?

Is a linearly independent set whose span is dense a Schauder basis?

Prodigo = pro + ago?



$(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$. Find $Var(X).$



The Next CEO of Stack OverflowWhen is $mboxVar(X|mathbf Y = mathbf y) < mboxVar(X)$ for all $mathbf y$?Calculate conditional expected value$Xsimmathcal N(0,1); Y = sqrt$; find $f_Y(y)$Variance of Random Exponential VariablesProperty of conditional expectations$operatorname Var[e^Z-X]$ where $X ~ operatornameExp(1)$ and $P(Z = 1) = P(Z = -1) = frac12$Need counter-examples to disprove “mean independence implies variance independence” and “ variance independence implies mean independence”Show that if $XsimtextPois(theta)$, then $I(theta;X) = 1/theta$.Convergence of sum of Bernoulli random variables $X_ksim textBernoullileft(fracpkright)$$Var(f(X))$ when $Var(X)to 0$










1












$begingroup$


$(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$, where $N(y,y^2)$ is a normal distribution with mean $y$ and variance $y^2$, $U[3,9]$ is a uniform distribution on $[3,9].$



On this condition, find $Var(X).$



My attempt:



Use the law of total variance : $Var(X) = E(Var(X|Y))+Var(E(X|Y)).$



Since $(X|Y=y)sim N(y,y^2)$, $E(X|Y)=Y$ and $Var(X|Y)=Y^2$ (?)



Plug them into the law : $Var(X)=E(Y^2)+Var(Y).$



Since $Ysim U[3,9]implies Var(Y)=frac(9-3)^212=3, E(Y)=frac9+32=6implies E(Y^2)=Var(Y)+E(Y)^2=3+6^2=39.$



$implies Var(X)=39+3=42.$



The thing is, I'm not sure about the part I marked with (?).



I'm comfortable with saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y=y)=y, Var(X|Y=y)=y^2$ because it's just what it is.



But I don't quite feel right about saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y)=Y, Var(X|Y)=Y^2$, because $y$ is just a number and $Y$ is a random variable. (and of course $E(X|Y=y)$ and $E(X|Y)$ are different things, I guess)



Actually my answer is correct, and it makes me feel more uncomfortable since I don't know what exactly I'm doing right now.



More specifically, I know by the definition that $E(X|Y=y)=int xfracf(x,y)f_Y(y)dx$, but not sure what $E(X|Y)$ means. Is $E(X|Y)=int xfracf(x,Y)f_Y(Y)dx$ a valid expression? But does $f(x,Y)$ make sense? And what's the relationship between $(X|Y=y)$ and $X|Y$? The right side of $|$ symbol only affects to the PDF?



I want to know what I'm doing. Any help would be appreciated.










share|cite|improve this question









$endgroup$
















    1












    $begingroup$


    $(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$, where $N(y,y^2)$ is a normal distribution with mean $y$ and variance $y^2$, $U[3,9]$ is a uniform distribution on $[3,9].$



    On this condition, find $Var(X).$



    My attempt:



    Use the law of total variance : $Var(X) = E(Var(X|Y))+Var(E(X|Y)).$



    Since $(X|Y=y)sim N(y,y^2)$, $E(X|Y)=Y$ and $Var(X|Y)=Y^2$ (?)



    Plug them into the law : $Var(X)=E(Y^2)+Var(Y).$



    Since $Ysim U[3,9]implies Var(Y)=frac(9-3)^212=3, E(Y)=frac9+32=6implies E(Y^2)=Var(Y)+E(Y)^2=3+6^2=39.$



    $implies Var(X)=39+3=42.$



    The thing is, I'm not sure about the part I marked with (?).



    I'm comfortable with saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y=y)=y, Var(X|Y=y)=y^2$ because it's just what it is.



    But I don't quite feel right about saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y)=Y, Var(X|Y)=Y^2$, because $y$ is just a number and $Y$ is a random variable. (and of course $E(X|Y=y)$ and $E(X|Y)$ are different things, I guess)



    Actually my answer is correct, and it makes me feel more uncomfortable since I don't know what exactly I'm doing right now.



    More specifically, I know by the definition that $E(X|Y=y)=int xfracf(x,y)f_Y(y)dx$, but not sure what $E(X|Y)$ means. Is $E(X|Y)=int xfracf(x,Y)f_Y(Y)dx$ a valid expression? But does $f(x,Y)$ make sense? And what's the relationship between $(X|Y=y)$ and $X|Y$? The right side of $|$ symbol only affects to the PDF?



    I want to know what I'm doing. Any help would be appreciated.










    share|cite|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      $(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$, where $N(y,y^2)$ is a normal distribution with mean $y$ and variance $y^2$, $U[3,9]$ is a uniform distribution on $[3,9].$



      On this condition, find $Var(X).$



      My attempt:



      Use the law of total variance : $Var(X) = E(Var(X|Y))+Var(E(X|Y)).$



      Since $(X|Y=y)sim N(y,y^2)$, $E(X|Y)=Y$ and $Var(X|Y)=Y^2$ (?)



      Plug them into the law : $Var(X)=E(Y^2)+Var(Y).$



      Since $Ysim U[3,9]implies Var(Y)=frac(9-3)^212=3, E(Y)=frac9+32=6implies E(Y^2)=Var(Y)+E(Y)^2=3+6^2=39.$



      $implies Var(X)=39+3=42.$



      The thing is, I'm not sure about the part I marked with (?).



      I'm comfortable with saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y=y)=y, Var(X|Y=y)=y^2$ because it's just what it is.



      But I don't quite feel right about saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y)=Y, Var(X|Y)=Y^2$, because $y$ is just a number and $Y$ is a random variable. (and of course $E(X|Y=y)$ and $E(X|Y)$ are different things, I guess)



      Actually my answer is correct, and it makes me feel more uncomfortable since I don't know what exactly I'm doing right now.



      More specifically, I know by the definition that $E(X|Y=y)=int xfracf(x,y)f_Y(y)dx$, but not sure what $E(X|Y)$ means. Is $E(X|Y)=int xfracf(x,Y)f_Y(Y)dx$ a valid expression? But does $f(x,Y)$ make sense? And what's the relationship between $(X|Y=y)$ and $X|Y$? The right side of $|$ symbol only affects to the PDF?



      I want to know what I'm doing. Any help would be appreciated.










      share|cite|improve this question









      $endgroup$




      $(X|Y=y)sim N(y,y^2)$, $Ysim U[3,9]$, where $N(y,y^2)$ is a normal distribution with mean $y$ and variance $y^2$, $U[3,9]$ is a uniform distribution on $[3,9].$



      On this condition, find $Var(X).$



      My attempt:



      Use the law of total variance : $Var(X) = E(Var(X|Y))+Var(E(X|Y)).$



      Since $(X|Y=y)sim N(y,y^2)$, $E(X|Y)=Y$ and $Var(X|Y)=Y^2$ (?)



      Plug them into the law : $Var(X)=E(Y^2)+Var(Y).$



      Since $Ysim U[3,9]implies Var(Y)=frac(9-3)^212=3, E(Y)=frac9+32=6implies E(Y^2)=Var(Y)+E(Y)^2=3+6^2=39.$



      $implies Var(X)=39+3=42.$



      The thing is, I'm not sure about the part I marked with (?).



      I'm comfortable with saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y=y)=y, Var(X|Y=y)=y^2$ because it's just what it is.



      But I don't quite feel right about saying that $(X|Y=y)sim N(y,y^2)implies E(X|Y)=Y, Var(X|Y)=Y^2$, because $y$ is just a number and $Y$ is a random variable. (and of course $E(X|Y=y)$ and $E(X|Y)$ are different things, I guess)



      Actually my answer is correct, and it makes me feel more uncomfortable since I don't know what exactly I'm doing right now.



      More specifically, I know by the definition that $E(X|Y=y)=int xfracf(x,y)f_Y(y)dx$, but not sure what $E(X|Y)$ means. Is $E(X|Y)=int xfracf(x,Y)f_Y(Y)dx$ a valid expression? But does $f(x,Y)$ make sense? And what's the relationship between $(X|Y=y)$ and $X|Y$? The right side of $|$ symbol only affects to the PDF?



      I want to know what I'm doing. Any help would be appreciated.







      probability probability-theory random-variables conditional-expectation conditional-probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 20 at 7:48









      user642721user642721

      735




      735




















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          Your calculation and reasoning are correct.



          The conditional distribution of $X$ given $Y$ is normal with mean $Y$ and variance $Y^2$; so by construction, what this means is $$operatornameVar[X mid Y] = Y^2.$$ In fact, the property that $X mid Y$ is normally distributed is not relevant to the total variance calculation. So long as $X mid Y$ is a random variable whose mean is $Y$ and variance $Y^2$, you will get the same result for $operatornameVar[X]$.



          I am a bit puzzled as to why you accept $operatornameE[X mid Y = y] = y$, yet not $operatornameE[X mid Y] = Y$. The latter has simply replaced a deterministic variable with a random one. The result is that the moment is itself a random variable. So when we write something like $operatornameVar[X mid Y]$, we are talking about a random variable that is a function of the random variable $Y$. For example, $W = Y^2$ is also a function of the random variable $Y$. I could even write something like $$int_x=0^infty Y x^2 e^-Y x , dx$$ and this is a random variable that is a function of $Y$. In fact, it is $$operatornameE[X^2 mid Y]$$ when $X mid Y sim operatornameExponential(Y)$ where $Y$ is a rate parameter. So long as $Y ge 0$ this integral and the resulting conditional expectation, is well-defined.






          share|cite|improve this answer









          $endgroup$













            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%2f3155137%2fxy-y-sim-ny-y2-y-sim-u3-9-find-varx%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$

            Your calculation and reasoning are correct.



            The conditional distribution of $X$ given $Y$ is normal with mean $Y$ and variance $Y^2$; so by construction, what this means is $$operatornameVar[X mid Y] = Y^2.$$ In fact, the property that $X mid Y$ is normally distributed is not relevant to the total variance calculation. So long as $X mid Y$ is a random variable whose mean is $Y$ and variance $Y^2$, you will get the same result for $operatornameVar[X]$.



            I am a bit puzzled as to why you accept $operatornameE[X mid Y = y] = y$, yet not $operatornameE[X mid Y] = Y$. The latter has simply replaced a deterministic variable with a random one. The result is that the moment is itself a random variable. So when we write something like $operatornameVar[X mid Y]$, we are talking about a random variable that is a function of the random variable $Y$. For example, $W = Y^2$ is also a function of the random variable $Y$. I could even write something like $$int_x=0^infty Y x^2 e^-Y x , dx$$ and this is a random variable that is a function of $Y$. In fact, it is $$operatornameE[X^2 mid Y]$$ when $X mid Y sim operatornameExponential(Y)$ where $Y$ is a rate parameter. So long as $Y ge 0$ this integral and the resulting conditional expectation, is well-defined.






            share|cite|improve this answer









            $endgroup$

















              2












              $begingroup$

              Your calculation and reasoning are correct.



              The conditional distribution of $X$ given $Y$ is normal with mean $Y$ and variance $Y^2$; so by construction, what this means is $$operatornameVar[X mid Y] = Y^2.$$ In fact, the property that $X mid Y$ is normally distributed is not relevant to the total variance calculation. So long as $X mid Y$ is a random variable whose mean is $Y$ and variance $Y^2$, you will get the same result for $operatornameVar[X]$.



              I am a bit puzzled as to why you accept $operatornameE[X mid Y = y] = y$, yet not $operatornameE[X mid Y] = Y$. The latter has simply replaced a deterministic variable with a random one. The result is that the moment is itself a random variable. So when we write something like $operatornameVar[X mid Y]$, we are talking about a random variable that is a function of the random variable $Y$. For example, $W = Y^2$ is also a function of the random variable $Y$. I could even write something like $$int_x=0^infty Y x^2 e^-Y x , dx$$ and this is a random variable that is a function of $Y$. In fact, it is $$operatornameE[X^2 mid Y]$$ when $X mid Y sim operatornameExponential(Y)$ where $Y$ is a rate parameter. So long as $Y ge 0$ this integral and the resulting conditional expectation, is well-defined.






              share|cite|improve this answer









              $endgroup$















                2












                2








                2





                $begingroup$

                Your calculation and reasoning are correct.



                The conditional distribution of $X$ given $Y$ is normal with mean $Y$ and variance $Y^2$; so by construction, what this means is $$operatornameVar[X mid Y] = Y^2.$$ In fact, the property that $X mid Y$ is normally distributed is not relevant to the total variance calculation. So long as $X mid Y$ is a random variable whose mean is $Y$ and variance $Y^2$, you will get the same result for $operatornameVar[X]$.



                I am a bit puzzled as to why you accept $operatornameE[X mid Y = y] = y$, yet not $operatornameE[X mid Y] = Y$. The latter has simply replaced a deterministic variable with a random one. The result is that the moment is itself a random variable. So when we write something like $operatornameVar[X mid Y]$, we are talking about a random variable that is a function of the random variable $Y$. For example, $W = Y^2$ is also a function of the random variable $Y$. I could even write something like $$int_x=0^infty Y x^2 e^-Y x , dx$$ and this is a random variable that is a function of $Y$. In fact, it is $$operatornameE[X^2 mid Y]$$ when $X mid Y sim operatornameExponential(Y)$ where $Y$ is a rate parameter. So long as $Y ge 0$ this integral and the resulting conditional expectation, is well-defined.






                share|cite|improve this answer









                $endgroup$



                Your calculation and reasoning are correct.



                The conditional distribution of $X$ given $Y$ is normal with mean $Y$ and variance $Y^2$; so by construction, what this means is $$operatornameVar[X mid Y] = Y^2.$$ In fact, the property that $X mid Y$ is normally distributed is not relevant to the total variance calculation. So long as $X mid Y$ is a random variable whose mean is $Y$ and variance $Y^2$, you will get the same result for $operatornameVar[X]$.



                I am a bit puzzled as to why you accept $operatornameE[X mid Y = y] = y$, yet not $operatornameE[X mid Y] = Y$. The latter has simply replaced a deterministic variable with a random one. The result is that the moment is itself a random variable. So when we write something like $operatornameVar[X mid Y]$, we are talking about a random variable that is a function of the random variable $Y$. For example, $W = Y^2$ is also a function of the random variable $Y$. I could even write something like $$int_x=0^infty Y x^2 e^-Y x , dx$$ and this is a random variable that is a function of $Y$. In fact, it is $$operatornameE[X^2 mid Y]$$ when $X mid Y sim operatornameExponential(Y)$ where $Y$ is a rate parameter. So long as $Y ge 0$ this integral and the resulting conditional expectation, is well-defined.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Mar 20 at 7:59









                heropupheropup

                64.8k764103




                64.8k764103



























                    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%2f3155137%2fxy-y-sim-ny-y2-y-sim-u3-9-find-varx%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

                    Moe incest case Sentencing See also References Navigation menu"'Australian Josef Fritzl' fathered four children by daughter""Small town recoils in horror at 'Australian Fritzl' incest case""Victorian rape allegations echo Fritzl case - Just In (Australian Broadcasting Corporation)""Incest father jailed for 22 years""'Australian Fritzl' sentenced to 22 years in prison for abusing daughter for three decades""RSJ v The Queen"

                    Who is our nearest planetary neighbor, on average?Santa Claus flies to the South PoleSeven Spheres of Unequal Mass, a weighing problem with a twistDescribe a large integerFast Mental Calculation of $7.5^7$Math in Space (without the help of celebrities)Find the value of $bigstar$: Puzzle 8 - InequalityWho drinks beer while running anyway?A Crucial DeliveryRanking And AverageHow long will my money last at roulette?

                    Daza language Contents Vocabulary Phonology References External links Navigation menudaza1242Daza"Dazaga"eeee178086576