How to choose degree for polynomial regression?












0












$begingroup$


I know how to perform polynomial regression. But is there any method to use for estimating the degree of the polynomial that is best suited? Some kind of meta-regression.



With best suited I mean the grade that has the highest probability of being the true degree of the source for the data.



For example, if we look at this picture we can easily "see" that a polynomial of degree 4 would fit nicely:



enter image description here



A more generalized question is if there is any method to determine if the source is polynomial at all or if it is exponential or something else.










share|cite|improve this question











$endgroup$












  • $begingroup$
    @saulspatz Fixed. Thanks.
    $endgroup$
    – Broman
    Jan 11 at 1:38






  • 1




    $begingroup$
    The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
    $endgroup$
    – angryavian
    Jan 11 at 1:43






  • 1




    $begingroup$
    I think cross-validation is a popular technique for this.
    $endgroup$
    – littleO
    Jan 11 at 2:36










  • $begingroup$
    Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
    $endgroup$
    – Henry
    Jan 11 at 8:19
















0












$begingroup$


I know how to perform polynomial regression. But is there any method to use for estimating the degree of the polynomial that is best suited? Some kind of meta-regression.



With best suited I mean the grade that has the highest probability of being the true degree of the source for the data.



For example, if we look at this picture we can easily "see" that a polynomial of degree 4 would fit nicely:



enter image description here



A more generalized question is if there is any method to determine if the source is polynomial at all or if it is exponential or something else.










share|cite|improve this question











$endgroup$












  • $begingroup$
    @saulspatz Fixed. Thanks.
    $endgroup$
    – Broman
    Jan 11 at 1:38






  • 1




    $begingroup$
    The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
    $endgroup$
    – angryavian
    Jan 11 at 1:43






  • 1




    $begingroup$
    I think cross-validation is a popular technique for this.
    $endgroup$
    – littleO
    Jan 11 at 2:36










  • $begingroup$
    Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
    $endgroup$
    – Henry
    Jan 11 at 8:19














0












0








0





$begingroup$


I know how to perform polynomial regression. But is there any method to use for estimating the degree of the polynomial that is best suited? Some kind of meta-regression.



With best suited I mean the grade that has the highest probability of being the true degree of the source for the data.



For example, if we look at this picture we can easily "see" that a polynomial of degree 4 would fit nicely:



enter image description here



A more generalized question is if there is any method to determine if the source is polynomial at all or if it is exponential or something else.










share|cite|improve this question











$endgroup$




I know how to perform polynomial regression. But is there any method to use for estimating the degree of the polynomial that is best suited? Some kind of meta-regression.



With best suited I mean the grade that has the highest probability of being the true degree of the source for the data.



For example, if we look at this picture we can easily "see" that a polynomial of degree 4 would fit nicely:



enter image description here



A more generalized question is if there is any method to determine if the source is polynomial at all or if it is exponential or something else.







statistics regression regression-analysis






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 11 at 9:53







Broman

















asked Jan 11 at 0:45









BromanBroman

1034




1034












  • $begingroup$
    @saulspatz Fixed. Thanks.
    $endgroup$
    – Broman
    Jan 11 at 1:38






  • 1




    $begingroup$
    The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
    $endgroup$
    – angryavian
    Jan 11 at 1:43






  • 1




    $begingroup$
    I think cross-validation is a popular technique for this.
    $endgroup$
    – littleO
    Jan 11 at 2:36










  • $begingroup$
    Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
    $endgroup$
    – Henry
    Jan 11 at 8:19


















  • $begingroup$
    @saulspatz Fixed. Thanks.
    $endgroup$
    – Broman
    Jan 11 at 1:38






  • 1




    $begingroup$
    The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
    $endgroup$
    – angryavian
    Jan 11 at 1:43






  • 1




    $begingroup$
    I think cross-validation is a popular technique for this.
    $endgroup$
    – littleO
    Jan 11 at 2:36










  • $begingroup$
    Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
    $endgroup$
    – Henry
    Jan 11 at 8:19
















$begingroup$
@saulspatz Fixed. Thanks.
$endgroup$
– Broman
Jan 11 at 1:38




$begingroup$
@saulspatz Fixed. Thanks.
$endgroup$
– Broman
Jan 11 at 1:38




1




1




$begingroup$
The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
$endgroup$
– angryavian
Jan 11 at 1:43




$begingroup$
The keyword you're looking for is "model selection." In general there are various approaches to decide which model (in this case, which degree) is better, such as AIC, BIC, or cross validation.
$endgroup$
– angryavian
Jan 11 at 1:43




1




1




$begingroup$
I think cross-validation is a popular technique for this.
$endgroup$
– littleO
Jan 11 at 2:36




$begingroup$
I think cross-validation is a popular technique for this.
$endgroup$
– littleO
Jan 11 at 2:36












$begingroup$
Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
$endgroup$
– Henry
Jan 11 at 8:19




$begingroup$
Polynomial regression is only really of use for interpolation, and can be disastrous for extrapolation
$endgroup$
– Henry
Jan 11 at 8:19










2 Answers
2






active

oldest

votes


















0












$begingroup$

An alternative to
polynomial regression
is to a fit with
Chebychev polynomials,
which essentially is a
least squares fit.



Usually the coefficients
will decrease from the
low order terms,
and you can stop when
the coefficients
get small enough.



You can then convert from
Chebychev form to
polynomial form.



Hope this is
hand-wavey enough.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    AIC or BIC is the right path to go. These criteria helps you to determine the model that best approximates the generating mechanism. Another, more basic approach is Ramsey RESET test for model misspecification. For example, see here http://lipas.uwasa.fi/~sjp/Teaching/ecm/lectures/ecmc8.pdf






    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%2f3069369%2fhow-to-choose-degree-for-polynomial-regression%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









      0












      $begingroup$

      An alternative to
      polynomial regression
      is to a fit with
      Chebychev polynomials,
      which essentially is a
      least squares fit.



      Usually the coefficients
      will decrease from the
      low order terms,
      and you can stop when
      the coefficients
      get small enough.



      You can then convert from
      Chebychev form to
      polynomial form.



      Hope this is
      hand-wavey enough.






      share|cite|improve this answer









      $endgroup$


















        0












        $begingroup$

        An alternative to
        polynomial regression
        is to a fit with
        Chebychev polynomials,
        which essentially is a
        least squares fit.



        Usually the coefficients
        will decrease from the
        low order terms,
        and you can stop when
        the coefficients
        get small enough.



        You can then convert from
        Chebychev form to
        polynomial form.



        Hope this is
        hand-wavey enough.






        share|cite|improve this answer









        $endgroup$
















          0












          0








          0





          $begingroup$

          An alternative to
          polynomial regression
          is to a fit with
          Chebychev polynomials,
          which essentially is a
          least squares fit.



          Usually the coefficients
          will decrease from the
          low order terms,
          and you can stop when
          the coefficients
          get small enough.



          You can then convert from
          Chebychev form to
          polynomial form.



          Hope this is
          hand-wavey enough.






          share|cite|improve this answer









          $endgroup$



          An alternative to
          polynomial regression
          is to a fit with
          Chebychev polynomials,
          which essentially is a
          least squares fit.



          Usually the coefficients
          will decrease from the
          low order terms,
          and you can stop when
          the coefficients
          get small enough.



          You can then convert from
          Chebychev form to
          polynomial form.



          Hope this is
          hand-wavey enough.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 11 at 2:20









          marty cohenmarty cohen

          73.5k549128




          73.5k549128























              0












              $begingroup$

              AIC or BIC is the right path to go. These criteria helps you to determine the model that best approximates the generating mechanism. Another, more basic approach is Ramsey RESET test for model misspecification. For example, see here http://lipas.uwasa.fi/~sjp/Teaching/ecm/lectures/ecmc8.pdf






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                AIC or BIC is the right path to go. These criteria helps you to determine the model that best approximates the generating mechanism. Another, more basic approach is Ramsey RESET test for model misspecification. For example, see here http://lipas.uwasa.fi/~sjp/Teaching/ecm/lectures/ecmc8.pdf






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  AIC or BIC is the right path to go. These criteria helps you to determine the model that best approximates the generating mechanism. Another, more basic approach is Ramsey RESET test for model misspecification. For example, see here http://lipas.uwasa.fi/~sjp/Teaching/ecm/lectures/ecmc8.pdf






                  share|cite|improve this answer









                  $endgroup$



                  AIC or BIC is the right path to go. These criteria helps you to determine the model that best approximates the generating mechanism. Another, more basic approach is Ramsey RESET test for model misspecification. For example, see here http://lipas.uwasa.fi/~sjp/Teaching/ecm/lectures/ecmc8.pdf







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 14 at 8:21









                  V. VancakV. Vancak

                  11.1k2926




                  11.1k2926






























                      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%2f3069369%2fhow-to-choose-degree-for-polynomial-regression%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

                      android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                      SQL update select statement

                      'app-layout' is not a known element: how to share Component with different Modules