Post Reply 
[HP-12C] Angular coefficent from linear regression off by 1
05-13-2016, 06:24 AM
Post: #26
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:  There are various options. For instance, you could also use  \(m = (\bar y-b)/\bar x\).

How would I do that in RPN ?

You could do it the way described by Csaba (which actually is the above expression with nominator and denominator multiplied by n). On the other hand both means are returned by the x_bar key (g 0), so this is a direct translation of the formula:

Code:
01 g x_bar
02 x<>y
02 0
03 g ŷ, r
04 x<>y
05 R↓
06 -
07 x<>y
08 /
09 R/S

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HP-12C] Angular coefficent from linear regression off by 1 - Dieter - 05-13-2016 06:24 AM



User(s) browsing this thread: