HP 48G Linear Regression Best Fit Line
12-19-2021, 04:00 PM (This post was last modified: 12-19-2021 05:26 PM by Rodger Rosenbaum.)
Post: #33
 Rodger Rosenbaum Junior Member Posts: 35 Joined: Dec 2013
RE: HP 48G Linear Regression Best Fit Line
Look at the two images part way down the page here:

https://stats.stackexchange.com/question...es-via-pca

The first image shows ordinary least squares which is what the HP48G LR function returns. The second image shows what the ORTH program returns.

I've got the full solution for you now.

Besides entering the ORTH program, create two new variables X and Y. Put your data in those variables as single column matrices, with X and Y being reversed from what was used previously. Designate X and Y parts of your latest data like this:

............X.............Y
248 29945.480 921.773
249 30002.951 922.245
251 30058.926 921.687
252 30114.903 923.001
254 30221.977 924.059

Type in another little program called OFIT:

<< X TRN DUP 1. CON AUGMENT TRN ORTH * Y - >>

Run it all like this:

Type your data into the ΣDAT matrix (as a two column matrix), run "Fit data..." in the statistics menu, type your X and Y data in separate single column matrices and store in the X and Y variables, then run OFIT.

Here's what I get when I do all this.

[ -.246561355 ]
[ -.240335279 ]
[ .783442323 ]
[ -.064763432 ]
[ -.231782261 ]

If you don't want to see so many digits, put "5 RND" at the end of the OFIT program.

The signs may be reversed from what you want--that's an easy fix, eh?
 « Next Oldest | Next Newest »

 Messages In This Thread HP 48G Linear Regression Best Fit Line - MNH - 12-05-2021, 11:22 PM RE: HP 48G Linear Regression Best Fit Line - ttw - 12-06-2021, 01:24 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-09-2021, 01:26 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-08-2021, 10:41 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-09-2021, 01:34 AM RE: HP 48G Linear Regression Best Fit Line - ijabbott - 12-09-2021, 10:05 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-10-2021, 02:34 AM RE: HP 48G Linear Regression Best Fit Line - Albert Chan - 12-11-2021, 02:24 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-09-2021, 05:21 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-09-2021, 10:21 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-10-2021, 05:51 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-10-2021, 10:37 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-11-2021, 02:09 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-11-2021, 03:16 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-11-2021, 03:48 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-11-2021, 04:47 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-11-2021, 11:36 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-11-2021, 12:13 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-19-2021, 12:31 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021, 12:48 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-11-2021, 05:38 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-12-2021, 02:34 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-18-2021, 10:13 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021, 01:08 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-25-2021, 02:26 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-25-2021, 02:41 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-25-2021, 03:46 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-25-2021, 04:39 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-25-2021, 04:59 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-19-2021, 12:10 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021, 12:46 AM RE: HP 48G Linear Regression Best Fit Line - Joe Horn - 12-19-2021, 03:19 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021, 03:54 AM RE: HP 48G Linear Regression Best Fit Line - Joe Horn - 12-19-2021, 09:04 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-12-2021, 02:47 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-19-2021, 03:23 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021, 03:26 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-19-2021 04:00 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-19-2021, 08:12 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-19-2021, 10:39 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-20-2021, 12:15 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-21-2021, 01:51 AM RE: HP 48G Linear Regression Best Fit Line - Albert Chan - 12-20-2021, 01:11 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-21-2021, 12:59 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 09:16 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 09:30 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-21-2021, 08:42 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 09:28 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 09:32 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 09:58 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 02:09 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 02:19 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 02:26 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 09:25 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 09:34 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-22-2021, 10:02 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021, 10:08 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-23-2021, 03:35 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-23-2021, 04:13 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-23-2021, 12:41 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-23-2021, 01:07 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-23-2021, 04:01 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-23-2021, 04:32 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-23-2021, 08:17 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-24-2021, 01:06 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-24-2021, 10:34 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-24-2021, 01:42 PM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-25-2021, 12:49 AM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-24-2021, 02:07 PM RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-26-2021, 10:42 AM RE: HP 48G Linear Regression Best Fit Line - MNH - 12-26-2021, 01:16 PM

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