[HP-12C] Angular coefficent from linear regression off by 1
05-12-2016, 10:05 PM
Post: #24
 Csaba Tizedes Senior Member Posts: 495 Joined: May 2014
RE: [HP-12C] Angular coefficent from linear regression off by 1
(05-12-2016 06:32 PM)bshoring Wrote:
(05-11-2016 05:58 AM)Dieter Wrote:  $$m = (\bar y-b)/\bar x$$.
How would I do that in RPN ?

01: 0
02: g y,r
03: RCL 1
04: ×
05: CHS
06: RCL 4
07: +
08: RCL 2
09: ÷
10: R/S

The result is same: 11.09933164

The above equation for the fitted line means that the least squares method fits a line which is goes through the center of "gravity" of the data points. If you know that you'll never forget how simple to calculate slope of that line.

Csaba
 « Next Oldest | Next Newest »

 Messages In This Thread [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-01-2016, 11:23 AM RE: HP-15C and 12C give different results to the same data set - bshoring - 05-01-2016, 07:12 PM RE: [HP-12C] 9-digit angular coefficent from linear regression off by 1 - Dieter - 05-01-2016, 11:37 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-02-2016, 11:16 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - HP67 - 05-03-2016, 12:14 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-03-2016, 12:37 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Werner - 05-02-2016, 11:48 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-02-2016, 12:09 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-02-2016, 12:30 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Werner - 05-02-2016, 02:50 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-03-2016, 11:56 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Csaba Tizedes - 05-05-2016, 07:07 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Csaba Tizedes - 05-06-2016, 07:50 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-06-2016, 01:11 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Csaba Tizedes - 05-12-2016, 10:20 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Csaba Tizedes - 08-03-2016, 07:38 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 08-03-2016, 10:10 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Albert Chan - 01-19-2019, 05:36 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 01-21-2019, 08:10 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - bshoring - 05-09-2016, 07:33 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-11-2016, 05:58 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - bshoring - 05-12-2016, 06:32 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Csaba Tizedes - 05-12-2016 10:05 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-13-2016, 06:24 AM RE: [HP-12C] Angular coefficent from linear regression off by 1 - HP67 - 05-03-2016, 01:01 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-03-2016, 01:20 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Thomas Radtke - 05-06-2016, 01:55 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - HP67 - 05-03-2016, 01:33 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - Marcio - 05-03-2016, 01:49 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - HP67 - 05-03-2016, 01:59 PM RE: [HP-12C] Angular coefficent from linear regression off by 1 - bshoring - 05-13-2016, 07:54 PM

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