### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »
- Statistical functions for masked arrays (`scipy.stats.mstats`) »

# scipy.stats.mstats.theilslopes

`scipy.stats.mstats.``theilslopes`(y, x=None, alpha=0.050000000000000003)

  Computes the Theil slope over the dataset (x,y), as the median of all slopes between paired values.

  Parameters : | y : sequence Dependent variable. x : {None, sequence} optional Independent variable. If None, use arange(len(y)) instead. alpha : float Confidence degree.
  Returns : | medslope : float Theil slope medintercept : float Intercept of the Theil line, as median(y)-medslope*median(x) lo_slope : float Lower bound of the confidence interval on medslope up_slope : float Upper bound of the confidence interval on medslope

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »
- Statistical functions for masked arrays (`scipy.stats.mstats`) »