[12C] Linear Regression
01-19-2019, 01:57 PM (This post was last modified: 01-19-2019 02:09 PM by Dieter.)
Post: #3
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: [12C] Linear Regression
(01-19-2019 01:46 PM)Gene Wrote:  The HP 12c has linear regression built in. The slope has to be computed by calculating the difference in the predicted Y-values for two X-values.

0  g [y^, r] => intercept
1  g [y^, r] => slope + intercept

So this...
Code:
1 y^, r 0 y^, r x<>y R↓ - LstX

...returns the y-intercept in X, the slope in Y and the correlation coefficient in Z and T.

Also post #8 in that thread has essentially the same program as Gamo's, just without the double calculation of the determinant.

Note: Gamo, I have sent a PM earlier today as you originally posted this to the Articles forum where no replies are possible.

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread [12C] Linear Regression - Gamo - 01-19-2019, 06:01 AM RE: [12C] Linear Regression - Gene - 01-19-2019, 01:46 PM RE: [12C] Linear Regression - Dieter - 01-19-2019 01:57 PM RE: [12C] Linear Regression - Gamo - 01-20-2019, 12:19 AM

User(s) browsing this thread: 1 Guest(s)