The python code above reproduces the output produced by the LINEST(y;x;true;true) command in Excel [LINEST(y,x,true,true) in Google Sheets] with a csv file as input. In the csv file I have assumed that the x and y columns are labelled "x" and "y" respectively. This page has a good explanation of the output (pdf).
This work is licensed under a Creative Commons Attribution 4.0
No comments:
Post a Comment