HP Forums
Best fit funtion reprenting raw data points - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Best fit funtion reprenting raw data points (/thread-629.html)



Best fit funtion reprenting raw data points - uys - 02-07-2014 06:19 AM

If you have a set of raw data points (x;y), how do you enter the data points on the HP Prime and fit a graph/funtion to the data points, eg a best fit quadratic or linear function to represent the data points? Cant find it in the manual.


RE: Best fit funtion reprenting raw data points - Tim Wessman - 02-07-2014 01:55 PM

Use the statistics 2 var app, enter the data in NUM, SYMB to setup your regressions, PLOT to display/calculate.

The QSG that comes with the calculator has 2 pages describing this (p37-38) and the full manual has complete info (p223-238). Note that is in the english pagination.


RE: Best fit funtion reprenting raw data points - uys - 02-07-2014 07:18 PM

(02-07-2014 01:55 PM)Tim Wessman Wrote:  Use the statistics 2 var app, enter the data in NUM, SYMB to setup your regressions, PLOT to display/calculate.

The QSG that comes with the calculator has 2 pages describing this (p37-38) and the full manual has complete info (p223-238). Note that is in the english pagination.

Thank you Tim. You are always so helpful.
I hope the HP bosses notice and give you a big bonus :-)


RE: Best fit funtion reprenting raw data points - akmon - 08-29-2017 08:01 AM

Refloating this question for a deeper answer.

Is there any command that analyzes all types of curves for getting the best fit (best correlative factor) without manual searching? I know HP48 had this function. Thank you.


RE: Best fit funtion reprenting raw data points - Didier Lachieze - 08-29-2017 08:43 AM

There was some time ago a detailed thread discussion on this topic, including a BestFit function for linear models (post #12).


RE: Best fit funtion reprenting raw data points - akmon - 08-29-2017 09:43 AM

Interesting link. Thank you for it.


RE: Best fit funtion reprenting raw data points - AlexFekken - 08-29-2017 12:27 PM

I just read that thread and was surprised that nobody suggested doing a Lagrange interpolation of all the points to get "the best fit" :-)

In my opinion Lagrange interpolation clearly shows how meaningless the idea of "the best fit" is if you do not restrict the domain of your models (and even if you do not restrict it enough, e.g. to all polynomials). Especially when you consider that you can add any number of randomly generated additional points to an existing data set (as long as all of the x values are different) and still always produce a perfect fit.