Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

manually calculating a linear regression

Matthew
11 - Bolide

I don't currently have access to the predictive tool suite.

 

So I'm trying to fit a linear regression to a data set using the formula tool, but i'm doing something wrong, is anyone familiar with the math behind linear regressions?

NothingButThyme_0-1636658899506.png

 

 

 

here is a plot of the input data

 

NothingButThyme_2-1636657941647.png

 

 

Here is a plot of the output.. the scale is waaayyy off, but i don't understand why

NothingButThyme_3-1636658248427.png

 

1 REPLY 1
Matthew
11 - Bolide

i found the solution.. i also may have rewritten the slope and intercept formulas.. but ultimately the problem was with the way i was numbering the rows.. as soon as there were multiple groups, the RecordID tool wouldnt do the job anymore, so i switched to the Tile tool

 

so i now have a working linear regression tool 

 

NothingButThyme_1-1636675791590.png

 

NothingButThyme_0-1636726982524.png

 

 

Labels