Using change of variables to transform density functions












0












$begingroup$


I'm was working on some exercises on statistical inference and came across a question I could not solve. After a while I decided to take a look at the solution to hopefully understand the problem better.



Situation: Let $X_{1} dots X_{n}$ be independent and identically distributed random variables, each with the $N(mu,sigma^2)$ distribution. We have that $mu inmathbb{R}$ is a known parameter and $sigma^2$ is unknown. We consider $T=frac{sum^{n}_{i=i}(X_{i}-bar{X})^{2}}{n-1}$ and can use the fact that $frac{(n-1)}{sigma^2} Tsim Gamma(frac{n-1}{2},frac{1}{2})$.



My problem: In the solution is the following line:




Since $T=cY$, where $c=frac{sigma^2}{n-1}$ and $Ysim
Gamma(frac{n-1}{2},frac{1}{2})$
, using a change of variables yields
that $f_{T}(x)=c^{-1}f_{Y}(x/c)$.




How does this change of variables work? How is it computed and why is it even necessary? Is it because the distribution of $T$ itself isn't explicitly given, but rather the distribution of $cT$? Any help is appreciated.










share|cite|improve this question











$endgroup$

















    0












    $begingroup$


    I'm was working on some exercises on statistical inference and came across a question I could not solve. After a while I decided to take a look at the solution to hopefully understand the problem better.



    Situation: Let $X_{1} dots X_{n}$ be independent and identically distributed random variables, each with the $N(mu,sigma^2)$ distribution. We have that $mu inmathbb{R}$ is a known parameter and $sigma^2$ is unknown. We consider $T=frac{sum^{n}_{i=i}(X_{i}-bar{X})^{2}}{n-1}$ and can use the fact that $frac{(n-1)}{sigma^2} Tsim Gamma(frac{n-1}{2},frac{1}{2})$.



    My problem: In the solution is the following line:




    Since $T=cY$, where $c=frac{sigma^2}{n-1}$ and $Ysim
    Gamma(frac{n-1}{2},frac{1}{2})$
    , using a change of variables yields
    that $f_{T}(x)=c^{-1}f_{Y}(x/c)$.




    How does this change of variables work? How is it computed and why is it even necessary? Is it because the distribution of $T$ itself isn't explicitly given, but rather the distribution of $cT$? Any help is appreciated.










    share|cite|improve this question











    $endgroup$















      0












      0








      0





      $begingroup$


      I'm was working on some exercises on statistical inference and came across a question I could not solve. After a while I decided to take a look at the solution to hopefully understand the problem better.



      Situation: Let $X_{1} dots X_{n}$ be independent and identically distributed random variables, each with the $N(mu,sigma^2)$ distribution. We have that $mu inmathbb{R}$ is a known parameter and $sigma^2$ is unknown. We consider $T=frac{sum^{n}_{i=i}(X_{i}-bar{X})^{2}}{n-1}$ and can use the fact that $frac{(n-1)}{sigma^2} Tsim Gamma(frac{n-1}{2},frac{1}{2})$.



      My problem: In the solution is the following line:




      Since $T=cY$, where $c=frac{sigma^2}{n-1}$ and $Ysim
      Gamma(frac{n-1}{2},frac{1}{2})$
      , using a change of variables yields
      that $f_{T}(x)=c^{-1}f_{Y}(x/c)$.




      How does this change of variables work? How is it computed and why is it even necessary? Is it because the distribution of $T$ itself isn't explicitly given, but rather the distribution of $cT$? Any help is appreciated.










      share|cite|improve this question











      $endgroup$




      I'm was working on some exercises on statistical inference and came across a question I could not solve. After a while I decided to take a look at the solution to hopefully understand the problem better.



      Situation: Let $X_{1} dots X_{n}$ be independent and identically distributed random variables, each with the $N(mu,sigma^2)$ distribution. We have that $mu inmathbb{R}$ is a known parameter and $sigma^2$ is unknown. We consider $T=frac{sum^{n}_{i=i}(X_{i}-bar{X})^{2}}{n-1}$ and can use the fact that $frac{(n-1)}{sigma^2} Tsim Gamma(frac{n-1}{2},frac{1}{2})$.



      My problem: In the solution is the following line:




      Since $T=cY$, where $c=frac{sigma^2}{n-1}$ and $Ysim
      Gamma(frac{n-1}{2},frac{1}{2})$
      , using a change of variables yields
      that $f_{T}(x)=c^{-1}f_{Y}(x/c)$.




      How does this change of variables work? How is it computed and why is it even necessary? Is it because the distribution of $T$ itself isn't explicitly given, but rather the distribution of $cT$? Any help is appreciated.







      statistics normal-distribution statistical-inference change-of-variable gamma-distribution






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 3 at 15:59







      S. Crim

















      asked Jan 3 at 15:52









      S. CrimS. Crim

      396212




      396212






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          You can see this as a simple change of variable in an integral:



          $$ P(T < t) = P(cY < t) = P(Y < frac{t}{c}) =int_{-infty}^{frac{t}{c}} f^Y(x)dx $$



          define $ u = cx Rightarrow " du = c dx" iff dx "=" frac{1}{c}du.$



          This yields



          $$ P(T< t) = int_{-infty}^{frac{t}{c}} f^Y(x)dx = int_{-infty}^t frac{1}{c} f^Y(u/c) du .$$



          And $c^{-1}f^Y(xc^{-1})$ is a probability density function for $T$.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
            $endgroup$
            – S. Crim
            Jan 3 at 16:16










          • $begingroup$
            I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
            $endgroup$
            – Digitalis
            Jan 3 at 16:55










          • $begingroup$
            Fair enough, thanks for the help anyway!
            $endgroup$
            – S. Crim
            Jan 3 at 17:16










          • $begingroup$
            Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
            $endgroup$
            – S. Crim
            Jan 15 at 18:44






          • 1




            $begingroup$
            @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
            $endgroup$
            – Digitalis
            Jan 16 at 8:15














          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%2f3060705%2fusing-change-of-variables-to-transform-density-functions%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









          1












          $begingroup$

          You can see this as a simple change of variable in an integral:



          $$ P(T < t) = P(cY < t) = P(Y < frac{t}{c}) =int_{-infty}^{frac{t}{c}} f^Y(x)dx $$



          define $ u = cx Rightarrow " du = c dx" iff dx "=" frac{1}{c}du.$



          This yields



          $$ P(T< t) = int_{-infty}^{frac{t}{c}} f^Y(x)dx = int_{-infty}^t frac{1}{c} f^Y(u/c) du .$$



          And $c^{-1}f^Y(xc^{-1})$ is a probability density function for $T$.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
            $endgroup$
            – S. Crim
            Jan 3 at 16:16










          • $begingroup$
            I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
            $endgroup$
            – Digitalis
            Jan 3 at 16:55










          • $begingroup$
            Fair enough, thanks for the help anyway!
            $endgroup$
            – S. Crim
            Jan 3 at 17:16










          • $begingroup$
            Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
            $endgroup$
            – S. Crim
            Jan 15 at 18:44






          • 1




            $begingroup$
            @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
            $endgroup$
            – Digitalis
            Jan 16 at 8:15


















          1












          $begingroup$

          You can see this as a simple change of variable in an integral:



          $$ P(T < t) = P(cY < t) = P(Y < frac{t}{c}) =int_{-infty}^{frac{t}{c}} f^Y(x)dx $$



          define $ u = cx Rightarrow " du = c dx" iff dx "=" frac{1}{c}du.$



          This yields



          $$ P(T< t) = int_{-infty}^{frac{t}{c}} f^Y(x)dx = int_{-infty}^t frac{1}{c} f^Y(u/c) du .$$



          And $c^{-1}f^Y(xc^{-1})$ is a probability density function for $T$.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
            $endgroup$
            – S. Crim
            Jan 3 at 16:16










          • $begingroup$
            I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
            $endgroup$
            – Digitalis
            Jan 3 at 16:55










          • $begingroup$
            Fair enough, thanks for the help anyway!
            $endgroup$
            – S. Crim
            Jan 3 at 17:16










          • $begingroup$
            Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
            $endgroup$
            – S. Crim
            Jan 15 at 18:44






          • 1




            $begingroup$
            @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
            $endgroup$
            – Digitalis
            Jan 16 at 8:15
















          1












          1








          1





          $begingroup$

          You can see this as a simple change of variable in an integral:



          $$ P(T < t) = P(cY < t) = P(Y < frac{t}{c}) =int_{-infty}^{frac{t}{c}} f^Y(x)dx $$



          define $ u = cx Rightarrow " du = c dx" iff dx "=" frac{1}{c}du.$



          This yields



          $$ P(T< t) = int_{-infty}^{frac{t}{c}} f^Y(x)dx = int_{-infty}^t frac{1}{c} f^Y(u/c) du .$$



          And $c^{-1}f^Y(xc^{-1})$ is a probability density function for $T$.






          share|cite|improve this answer









          $endgroup$



          You can see this as a simple change of variable in an integral:



          $$ P(T < t) = P(cY < t) = P(Y < frac{t}{c}) =int_{-infty}^{frac{t}{c}} f^Y(x)dx $$



          define $ u = cx Rightarrow " du = c dx" iff dx "=" frac{1}{c}du.$



          This yields



          $$ P(T< t) = int_{-infty}^{frac{t}{c}} f^Y(x)dx = int_{-infty}^t frac{1}{c} f^Y(u/c) du .$$



          And $c^{-1}f^Y(xc^{-1})$ is a probability density function for $T$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 3 at 16:09









          DigitalisDigitalis

          530216




          530216












          • $begingroup$
            The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
            $endgroup$
            – S. Crim
            Jan 3 at 16:16










          • $begingroup$
            I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
            $endgroup$
            – Digitalis
            Jan 3 at 16:55










          • $begingroup$
            Fair enough, thanks for the help anyway!
            $endgroup$
            – S. Crim
            Jan 3 at 17:16










          • $begingroup$
            Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
            $endgroup$
            – S. Crim
            Jan 15 at 18:44






          • 1




            $begingroup$
            @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
            $endgroup$
            – Digitalis
            Jan 16 at 8:15




















          • $begingroup$
            The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
            $endgroup$
            – S. Crim
            Jan 3 at 16:16










          • $begingroup$
            I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
            $endgroup$
            – Digitalis
            Jan 3 at 16:55










          • $begingroup$
            Fair enough, thanks for the help anyway!
            $endgroup$
            – S. Crim
            Jan 3 at 17:16










          • $begingroup$
            Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
            $endgroup$
            – S. Crim
            Jan 15 at 18:44






          • 1




            $begingroup$
            @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
            $endgroup$
            – Digitalis
            Jan 16 at 8:15


















          $begingroup$
          The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
          $endgroup$
          – S. Crim
          Jan 3 at 16:16




          $begingroup$
          The originial exercise was about computing the Fisher information based on $T$, i.e. $I_{T}(sigma^2)$. Is this step necessary because we only know the distribution of $cT$ and not $T$? Or is there another reason for having to change the variables?
          $endgroup$
          – S. Crim
          Jan 3 at 16:16












          $begingroup$
          I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
          $endgroup$
          – Digitalis
          Jan 3 at 16:55




          $begingroup$
          I'm afraid I'm not able to help you with that, I'm not very gifted when it comes to computing Fischer information. I'm also not familiar with the concept of calculating the fisher information based on a given statistic $T$. :(
          $endgroup$
          – Digitalis
          Jan 3 at 16:55












          $begingroup$
          Fair enough, thanks for the help anyway!
          $endgroup$
          – S. Crim
          Jan 3 at 17:16




          $begingroup$
          Fair enough, thanks for the help anyway!
          $endgroup$
          – S. Crim
          Jan 3 at 17:16












          $begingroup$
          Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
          $endgroup$
          – S. Crim
          Jan 15 at 18:44




          $begingroup$
          Hope I can revive this question. Shouldn't there be a $t/c$ as the upper boundary of your last integral in the last line? If not, why did it turn into a $t$?
          $endgroup$
          – S. Crim
          Jan 15 at 18:44




          1




          1




          $begingroup$
          @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
          $endgroup$
          – Digitalis
          Jan 16 at 8:15






          $begingroup$
          @S.Crim By using the substitution $u = cx$ then $u$ is a function of $x$ and we can write it as $u(x) = cx$. Then when $x$ approches $-infty$ then so does $u$ since $c > 0$. When $x = frac{t}{c}$ then $u = u(frac{t}{c}) = c cdot frac{t}{c} = t.$
          $endgroup$
          – Digitalis
          Jan 16 at 8:15




















          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%2f3060705%2fusing-change-of-variables-to-transform-density-functions%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

          Wiesbaden

          Marschland

          Dieringhausen