HP Forums

Full Version: Best fit funtion reprenting raw data points
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
(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 :-)
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.
There was some time ago a detailed thread discussion on this topic, including a BestFit function for linear models (post #12).
Interesting link. Thank you for it.
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.
Reference URL's