Post Reply 
Prime - Linear Least Squares Regression
09-01-2014, 12:51 PM
Post: #4
RE: Prime - Linear Least Squares Regression
(09-01-2014 12:02 PM)Joe Horn Wrote:  
(09-01-2014 04:58 AM)Angus Wrote:  edit: I tried it: list works as desired. linear_regression( {{14,0.2},{21,0.5},...,{60,2.4}} )

Alternate method: linear_regression([X values],[Y values])

Your example: linear_regression([14,21,30,38,45,60],[0.2,0.5,0.7,1.2,1.6,2.4])
--> [4.80888676541ᴇ−2, −0.567080745342]

Thanks Angus and Joe.....both worked.
Paul
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Prime - Linear Least Squares Regression - paul.hermans@benemtech.com - 09-01-2014 12:51 PM



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