scipy.stats.mstats.linregress

scipy.stats.mstats.linregress(*args)
Calculates a regression line on two arrays, x and y, corresponding to

x,y pairs. If a single 2D array is passed, linregress finds dim with 2 levels and splits data into x,y pairs along that dim.

Returns: slope, intercept, r, two-tailed prob, stderr-of-the-estimate

Notes

Missing values are considered pair-wise: if a value is missing in x, the corresponding value in y is masked.