scipy.stats.linregress

scipy.stats.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

Previous topic

scipy.stats.kendalltau

Next topic

scipy.stats.ttest_1samp

This Page

Quick search