Best statistical fit « Next Oldest | Next Newest »

 ▼ Richard Berler Unregistered Posts: 109 Threads: 38 Joined: Dec 2012 10-29-2013, 10:36 PM Is there a way to have the Prime choose the best model fit of a 2 Var statistical data set as on the HP 30b? Thanks for including trig fit model and user created fit option! ▼ Walter B Unregistered Posts: 4,587 Threads: 105 Joined: Jul 2005 10-30-2013, 12:02 AM I don't own a Prime for reasons explained elsewhere, but I'd recommend writing a little program using alll the fit models applicable and then choosing the one which returns the maximum r^2. At least that's what the BEST setting in the HP-42S does - and BESTF in the WP 34S. It's an automatic 'brute force' approach though, so watch the result. d:-) ▼ Joe Horn Unregistered Posts: 153 Threads: 7 Joined: Jun 2008 10-30-2013, 12:48 AM While we're on the subject, are the EXPONENTIAL and EXPONENT fits just two different ways of expressing the same fit? Everything data set I've tried gets the same r^2 for both fits. ▼ Dieter Unregistered Posts: 653 Threads: 26 Joined: Aug 2010 10-30-2013, 06:10 AM Yes, EXPONENTIAL and EXPONENT are essentially the same regression model. Take a look at the manual, p. 231: In EXPONENTIAL mode, y equals  b · em·x In EXPONENT mode, y equals b · mx Since mx = eln m · x both ways describe the same regression curve. Parameter b is the same in both cases, and the value for m in EXPONENTIAL mode simply is the natural logarithm of the m returned in EXPONENT mode. Dieter ▼ Joe Horn Unregistered Posts: 153 Threads: 7 Joined: Jun 2008 10-30-2013, 01:07 PM Thanks, Dieter! Tim Wessman Unregistered Posts: 1,278 Threads: 44 Joined: Jul 2007 10-30-2013, 01:32 PM Just a note - the user fit is not really for fitting, rather for editing and adjusting the line in the plot more then anything. There is not a best fit because the trig/logarithm ones can go so awry and take way too long. I suppose it could be limited to the well behaved fits or something... TW ▼ Harold A Climer Unregistered Posts: 64 Threads: 25 Joined: Oct 2013 10-30-2013, 04:07 PM Quote: Just a note - the user fit is not really for fitting, rather for editing and adjusting the line in the plot more then anything. There is not a best fit because the trig/logarithm ones can go so awry and take way too long. I suppose it could be limited to the well behaved fits or something... TW In my years of teaching, I have always thought that the best fit selection on previous HP calculators was not the best way to fit data . It is sometimes misleading to students to use this selection when fitting data. Sometimes it is possible to get a higher regression coefficient or a smaller RMSE using the best fit of data to a linear function when the student is supposed to know(Since they have already been told this by their instructor or it is in the lab handouts,[which most of them do not read] that the phenomena should behave as a natural exponential function. This the same kind of idea that Tim talked about as regards the CAS not being a Black Box, I have students every semester that do not know that a numerical result is incorrect,even when they are told up front the possible range of values they should expect to get beforehand. Charles Dickens had a quote about Medical Students,but I think it applies to students in general. ▼ Richard Berler Unregistered Posts: 109 Threads: 38 Joined: Dec 2012 10-30-2013, 08:06 PM I agree! I was initially disappointed that some HP 50g integrations required substitutions in order to accomplish the integration. Yet, I find that I feel a bit more in touch with the problems when I carry out the substitutions, and get the correct solutions. In my field, meteorology, folks will see a digital bank thermometer display or car thermometer display that is far from the true air temperature, and accept it as true simply because a digital display seems authoritative... In statistics, the normal distributions are often blindly applied to data that is not truly normally distributed. With the statistic apps on calculators and computers, it's easy to come up with nice tables of standard deviations and so on, and folks will make probabilistic statements that are inaccurate (especially for the tails of the distributions)... ▼ Walter B Unregistered Posts: 4,587 Threads: 105 Joined: Jul 2005 10-30-2013, 11:25 PM Please see the footnote on p. 229 of the WP 34S Owner's Manual (print edition). Its predecessor is on p. 204 of the pdf (v3.1). You'll find a lot of statistics in the WP 34S. d:-)

 Possibly Related Threads… Thread Author Replies Views Last Post WP34s program submission: Quadratic fit Andrew Nikitin 2 1,232 06-13-2013, 02:44 AM Last Post: Paul Dale Statistical Question Namir 3 1,370 12-22-2012, 03:39 AM Last Post: Bruce Larrabee New empirical fit for ln(x) Namir 0 805 12-11-2012, 12:49 PM Last Post: Namir Where does the 17B-II fit in? Matt Agajanian 22 5,398 03-25-2012, 10:52 AM Last Post: Don Shepherd Where does the 38G fit in? Matt Agajanian 5 1,665 03-10-2012, 01:08 PM Last Post: Marcus von Cube, Germany Project Euler Problem 39: Statistical Mode on the HP 48GX? Peter Murphy (Livermore) 3 1,422 07-29-2011, 09:44 PM Last Post: Peter Murphy (Livermore) Statistical analysis galore Geir Isene 9 2,551 11-19-2010, 09:51 PM Last Post: Palmer O. Hanson, Jr. Will a micro sd card fit Hp 50g? ferroburak 6 2,036 11-24-2009, 10:17 AM Last Post: Brian Walsh OT: Tutorials for R statistical language Namir 8 2,449 10-29-2009, 01:37 PM Last Post: Tim Wessman HP-50G CASE FIT designnut 3 1,362 03-17-2008, 11:28 AM Last Post: Namir

Forum Jump: