Post Reply 
Linear Estimation on 41cv ?
10-25-2021, 12:38 PM
Post: #3
RE: Linear Estimation on 41cv ?
I was always a little perplexed that they didn't include linear regression, but it's pretty easy to add. This program gives you the functionality from the 11C. Note that it expects ΣREG 11. Call XEQ "LR" to calculate the coefficients (this step is required), which will store A, B, and R in registers 17, 18, and 19 respectively. Then you can use XEQ "XHAT" and XEQ "YHAT" to predict x or y values.

Code:
LBL "LR"
MEAN
*
RCL 16
*
CHS
RCL 15
+
RCL 11
X^2
RCL 16
/
CHS
RCL 12
+
/
STO 17
MEAN
RCL 17
*
-
STO 18
MEAN
*
RCL 16
*
CHS
RCL 15
+
RCL 16
1
-
ENTER
ENTER
SDEV
*
*
/
STO 19
RCL 18
RCL 17
RTN
LBL "XHAT"
RCL 18
-
RCL 17
/
RTN
LBL "YHAT"
RCL 17
*
RCL 18
+
END
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Linear Estimation on 41cv ? - SteveMyers - 10-25-2021, 02:44 AM
RE: Linear Estimation on 41cv ? - Dave Britten - 10-25-2021 12:38 PM
RE: Linear Estimation on 41cv ? - rawi - 10-25-2021, 01:33 PM



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