HP 48G Linear Regression Best Fit Line
|
12-25-2021, 04:39 PM
(This post was last modified: 12-25-2021 04:40 PM by Rodger Rosenbaum.)
Post: #69
|
|||
|
|||
RE: HP 48G Linear Regression Best Fit Line
(12-25-2021 03:46 PM)MNH Wrote:(12-25-2021 02:41 AM)Rodger Rosenbaum Wrote: As I mentioned earlier, executing LR does the job. Why would you want to do it yourself? Re-read post #49. Executing LR returns intercept and slope for a least squares fit where the errors are in the Y direction, not in the orthogonal direction. It must calculate the summary statistics to use for the fit. The summary statistics are stored in built-in variables named ΣDAT, ΣPAR, ΣX, ΣY, ΣX2, ΣY2, ΣXY, NΣ. You can see them all if you bring up the statistics menu and select the 4th item (right after the 3rd item which is "Fit data...") "Summary stats". In that menu item you can check the ones you want to see and press "OK". I'll work on a program that will do everything after typing in the nx2 matrix of the X and Y values; that much typing can't be avoided. Merry Christmas. The snow is just starting here in Seattle, a very rare event in the lowlands on Christmas. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)