Hacker News new | ask | show | jobs
by CamperBob2 2056 days ago
Not only are the other replies correct, in that you can 'prove' anything with enough degrees in your poly fit, but any attempt to actually use a 12th-degree fit will probably suffer from math precision errors.

Often it's better to use a spline fit or other interpolation technique, once you find yourself needing to go beyond five- or six-degree polynomial fits.