The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

Advantage Pac Curve Fitting
Message #1 Posted by mbrethen on 21 June 2011, 5:28 p.m.

After the regression coefficients have been calculated, projections may be made based on the curve fit. I'm disappointed that you may only key in an x value to see an estimated y value. How about keying in a known y value? I thought about adding this feature to the CFIT program, similar to the Curve Fitting program originally published in the HP-67 Standard Pac. Are there any issues with running a tweaked program from main memory, with the advantage pac still installed?

      
Re: Advantage Pac Curve Fitting
Message #2 Posted by Namir on 21 June 2011, 8:06 p.m.,
in response to message #1 by mbrethen

Projecting Y onto X may seem harmless from a mathematical point of view. However, some statistician may frown upon that, because (the way I understand it) the measurement in variable X have no error in its measurement while those of variable Y has normally distributed errors. For some reason statisticians frown on calculating X^ ... and the really get into a hissy fit (pun intended) if you calculate the confidence interval of X^.

Namir

Edited: 21 June 2011, 8:17 p.m.

            
Re: Advantage Pac Curve Fitting
Message #3 Posted by mbrethen on 21 June 2011, 10:30 p.m.,
in response to message #2 by Namir

Well, suppose you measure the gross weight of a UPS truck (y) with various numbers of packages (x) in it, and you get the regression equation ły = 2.17x+2463. The slope, 2.17, is the average weight per package, and the y intercept, 2463, is the weight of the empty truck. The value of ły when x is 0 isn't always meaningful, but in this case, it has physical meaning!

Edited: 21 June 2011, 10:36 p.m.

                  
Re: Advantage Pac Curve Fitting
Message #4 Posted by Marcus von Cube, Germany on 22 June 2011, 2:10 a.m.,
in response to message #3 by mbrethen

From what I've read it's not the same if you just invert the resulting regression equation as opposed to swapping x and y in the data set and do a new regression to predict x from y. So in order to do it correctly, you need to accumulate the reverse statistic in parallel for this kind of calculation.

                  
Re: Advantage Pac Curve Fitting
Message #5 Posted by Namir on 22 June 2011, 5:40 a.m.,
in response to message #3 by mbrethen

You were asking about supplying a value for Y and calculating X. Some statisticians will cry foul because the relation of the regression line is to correlated Y with X and not X with Y.

                        
Re: Advantage Pac Curve Fitting
Message #6 Posted by mbrethen on 22 June 2011, 7:32 a.m.,
in response to message #5 by Namir

The point I was trying to make is that a least squares fit has applications other than statistics. For instance, I use it to iterate between finite element analyses results, when determining the starting point for the next iteration. The relation between X and Y is not statistical, but is based on geometry and material properties used in the model. If the material(s) have a linear stress-strain relationship, then the straight line fit would represent the combined spring rate (for complex models this would be difficult to calculate directly). And geometry can introduce non-linear behavior (e.g. belleville spring). For such uses, it would be nice to have the option to calculate estimates in either direction, where Y=load and X=deflection.

Edited: 22 June 2011, 8:48 a.m.

                              
Re: Advantage Pac Curve Fitting
Message #7 Posted by Eddie W. Shore on 22 June 2011, 8:53 a.m.,
in response to message #6 by mbrethen

Makes sense to me.

                              
Re: Advantage Pac Curve Fitting
Message #8 Posted by exschr on 22 June 2011, 10:48 a.m.,
in response to message #6 by mbrethen

The HP 20s has (IMHO) both!

Just to bad it hasn't RPN.

                                    
Re: Advantage Pac Curve Fitting
Message #9 Posted by Palmer O. Hanson, Jr. on 29 June 2011, 9:35 p.m.,
in response to message #8 by exschr

The HP-33s and HP-35s provide the capability you want and have rpn.

      
Re: Advantage Pac Curve Fitting
Message #10 Posted by mbrethen on 26 June 2011, 8:06 p.m.,
in response to message #1 by mbrethen

I modified the CFIT program over the weekend to include Y predictions. One thing I noticed is that if you call the subroutines (e.g. "A~", BFIT, etc.) from the module and get an error, a R/S will continue execution from within the unmodified CFIT program.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall