Package madrona :: Package analysistools :: Module utils
[hide private]

Module utils

source code

Functions [hide private]
 
linear_regression(X, Y)
http://www.answermysearches.com/how-to-do-a-simple-linear-regression-in-python/124/...
source code
Function Details [hide private]

linear_regression(X, Y)

source code 

http://www.answermysearches.com/how-to-do-a-simple-linear-regression-in-python/124/
Summary
    Linear regression of y = ax + b
Usage
    real, real, real = linreg(list, list)
    a, b, r2 = linreg(list, list)
Returns coefficients to the regression line "y=ax+b" from x[] and y[], and R^2 Value