Estimate parameters with moments method

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am trying to know how to estimate a parameter with the moments method. The wikipedia article and similar websites are too confusing and formal for me to understand. I'm looking for a more basic and school type "how-to".



For example ;
Let $Z_1,Z_2,...,Z_n$ a simple sample of an Erlang random variable whose function of probability density is given by:
$$ f(z)begincaseslambda^2ze^-lambda z & z ge 0\0 & elseendcases$$



How do I estimate $lambda$ with the moments method ? How can I generalize the method to any (maybe not extra-hard) problem of the same type ?



EDIT :
I am now trying to solve the problem and so far;
$$E[X] = n/lambda$$
$$widehatE[X] = int_0^infty lambda z^2 e^-lambda z dz = frac2lambda^2$$



And now I'm stuck, what to do with the second moment ? Or do I equal both the theorical and empirical, giving $lambda = 2/n$ ?







share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    I am trying to know how to estimate a parameter with the moments method. The wikipedia article and similar websites are too confusing and formal for me to understand. I'm looking for a more basic and school type "how-to".



    For example ;
    Let $Z_1,Z_2,...,Z_n$ a simple sample of an Erlang random variable whose function of probability density is given by:
    $$ f(z)begincaseslambda^2ze^-lambda z & z ge 0\0 & elseendcases$$



    How do I estimate $lambda$ with the moments method ? How can I generalize the method to any (maybe not extra-hard) problem of the same type ?



    EDIT :
    I am now trying to solve the problem and so far;
    $$E[X] = n/lambda$$
    $$widehatE[X] = int_0^infty lambda z^2 e^-lambda z dz = frac2lambda^2$$



    And now I'm stuck, what to do with the second moment ? Or do I equal both the theorical and empirical, giving $lambda = 2/n$ ?







    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to know how to estimate a parameter with the moments method. The wikipedia article and similar websites are too confusing and formal for me to understand. I'm looking for a more basic and school type "how-to".



      For example ;
      Let $Z_1,Z_2,...,Z_n$ a simple sample of an Erlang random variable whose function of probability density is given by:
      $$ f(z)begincaseslambda^2ze^-lambda z & z ge 0\0 & elseendcases$$



      How do I estimate $lambda$ with the moments method ? How can I generalize the method to any (maybe not extra-hard) problem of the same type ?



      EDIT :
      I am now trying to solve the problem and so far;
      $$E[X] = n/lambda$$
      $$widehatE[X] = int_0^infty lambda z^2 e^-lambda z dz = frac2lambda^2$$



      And now I'm stuck, what to do with the second moment ? Or do I equal both the theorical and empirical, giving $lambda = 2/n$ ?







      share|cite|improve this question













      I am trying to know how to estimate a parameter with the moments method. The wikipedia article and similar websites are too confusing and formal for me to understand. I'm looking for a more basic and school type "how-to".



      For example ;
      Let $Z_1,Z_2,...,Z_n$ a simple sample of an Erlang random variable whose function of probability density is given by:
      $$ f(z)begincaseslambda^2ze^-lambda z & z ge 0\0 & elseendcases$$



      How do I estimate $lambda$ with the moments method ? How can I generalize the method to any (maybe not extra-hard) problem of the same type ?



      EDIT :
      I am now trying to solve the problem and so far;
      $$E[X] = n/lambda$$
      $$widehatE[X] = int_0^infty lambda z^2 e^-lambda z dz = frac2lambda^2$$



      And now I'm stuck, what to do with the second moment ? Or do I equal both the theorical and empirical, giving $lambda = 2/n$ ?









      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 21 at 16:52
























      asked Jul 21 at 14:58









      Dranna

      1105




      1105




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          A very simple guide:



          1) Determine the amount of parameters you need to estimate.



          2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.



          3) Calculate the corresponding empirical moments from your sample.



          4) Now you have (2) equations that can be solved for the parameters.



          I hope this helps.



          Edit:



          The empirical first moment is simply the sample mean. This applies for any of the moments: $frac1nsum_i=1^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $frac2lambda$. As this type of Erlang distribution has only one parameter, $hatlambda=frac2frac1nsum_i=1^n X_i$.






          share|cite|improve this answer























          • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
            – Dranna
            Jul 21 at 15:39










          • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
            – Dranna
            Jul 21 at 16:53






          • 1




            I edited my response to elaborate a bit.
            – Rasmus
            Jul 21 at 19:24










          • Thank you, I now understand. I accepter your post as the answer.
            – Dranna
            Jul 21 at 19:27










          • You are welcome. Note that i changed the formula for $hatlambda$.
            – Rasmus
            Jul 21 at 19:29










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2858553%2festimate-parameters-with-moments-method%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          A very simple guide:



          1) Determine the amount of parameters you need to estimate.



          2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.



          3) Calculate the corresponding empirical moments from your sample.



          4) Now you have (2) equations that can be solved for the parameters.



          I hope this helps.



          Edit:



          The empirical first moment is simply the sample mean. This applies for any of the moments: $frac1nsum_i=1^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $frac2lambda$. As this type of Erlang distribution has only one parameter, $hatlambda=frac2frac1nsum_i=1^n X_i$.






          share|cite|improve this answer























          • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
            – Dranna
            Jul 21 at 15:39










          • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
            – Dranna
            Jul 21 at 16:53






          • 1




            I edited my response to elaborate a bit.
            – Rasmus
            Jul 21 at 19:24










          • Thank you, I now understand. I accepter your post as the answer.
            – Dranna
            Jul 21 at 19:27










          • You are welcome. Note that i changed the formula for $hatlambda$.
            – Rasmus
            Jul 21 at 19:29














          up vote
          1
          down vote



          accepted










          A very simple guide:



          1) Determine the amount of parameters you need to estimate.



          2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.



          3) Calculate the corresponding empirical moments from your sample.



          4) Now you have (2) equations that can be solved for the parameters.



          I hope this helps.



          Edit:



          The empirical first moment is simply the sample mean. This applies for any of the moments: $frac1nsum_i=1^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $frac2lambda$. As this type of Erlang distribution has only one parameter, $hatlambda=frac2frac1nsum_i=1^n X_i$.






          share|cite|improve this answer























          • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
            – Dranna
            Jul 21 at 15:39










          • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
            – Dranna
            Jul 21 at 16:53






          • 1




            I edited my response to elaborate a bit.
            – Rasmus
            Jul 21 at 19:24










          • Thank you, I now understand. I accepter your post as the answer.
            – Dranna
            Jul 21 at 19:27










          • You are welcome. Note that i changed the formula for $hatlambda$.
            – Rasmus
            Jul 21 at 19:29












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          A very simple guide:



          1) Determine the amount of parameters you need to estimate.



          2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.



          3) Calculate the corresponding empirical moments from your sample.



          4) Now you have (2) equations that can be solved for the parameters.



          I hope this helps.



          Edit:



          The empirical first moment is simply the sample mean. This applies for any of the moments: $frac1nsum_i=1^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $frac2lambda$. As this type of Erlang distribution has only one parameter, $hatlambda=frac2frac1nsum_i=1^n X_i$.






          share|cite|improve this answer















          A very simple guide:



          1) Determine the amount of parameters you need to estimate.



          2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.



          3) Calculate the corresponding empirical moments from your sample.



          4) Now you have (2) equations that can be solved for the parameters.



          I hope this helps.



          Edit:



          The empirical first moment is simply the sample mean. This applies for any of the moments: $frac1nsum_i=1^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $frac2lambda$. As this type of Erlang distribution has only one parameter, $hatlambda=frac2frac1nsum_i=1^n X_i$.







          share|cite|improve this answer















          share|cite|improve this answer



          share|cite|improve this answer








          edited Jul 21 at 19:27


























          answered Jul 21 at 15:21









          Rasmus

          364




          364











          • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
            – Dranna
            Jul 21 at 15:39










          • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
            – Dranna
            Jul 21 at 16:53






          • 1




            I edited my response to elaborate a bit.
            – Rasmus
            Jul 21 at 19:24










          • Thank you, I now understand. I accepter your post as the answer.
            – Dranna
            Jul 21 at 19:27










          • You are welcome. Note that i changed the formula for $hatlambda$.
            – Rasmus
            Jul 21 at 19:29
















          • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
            – Dranna
            Jul 21 at 15:39










          • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
            – Dranna
            Jul 21 at 16:53






          • 1




            I edited my response to elaborate a bit.
            – Rasmus
            Jul 21 at 19:24










          • Thank you, I now understand. I accepter your post as the answer.
            – Dranna
            Jul 21 at 19:27










          • You are welcome. Note that i changed the formula for $hatlambda$.
            – Rasmus
            Jul 21 at 19:29















          Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
          – Dranna
          Jul 21 at 15:39




          Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment
          – Dranna
          Jul 21 at 15:39












          I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
          – Dranna
          Jul 21 at 16:53




          I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ?
          – Dranna
          Jul 21 at 16:53




          1




          1




          I edited my response to elaborate a bit.
          – Rasmus
          Jul 21 at 19:24




          I edited my response to elaborate a bit.
          – Rasmus
          Jul 21 at 19:24












          Thank you, I now understand. I accepter your post as the answer.
          – Dranna
          Jul 21 at 19:27




          Thank you, I now understand. I accepter your post as the answer.
          – Dranna
          Jul 21 at 19:27












          You are welcome. Note that i changed the formula for $hatlambda$.
          – Rasmus
          Jul 21 at 19:29




          You are welcome. Note that i changed the formula for $hatlambda$.
          – Rasmus
          Jul 21 at 19:29












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2858553%2festimate-parameters-with-moments-method%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Color the edges and diagonals of a regular polygon

          Relationship between determinant of matrix and determinant of adjoint?