:
- y : array_like
Dependent variable.
- x : array_like or None, optional
Independent variable. If None, use arange(len(y)) instead.
- alpha : float, optional
Confidence degree between 0 and 1. Default is 95% confidence.
Note that alpha is symmetric around 0.5, i.e. both 0.1 and 0.9 are
interpreted as “find the 90% confidence interval”.
- method : {‘joint’, ‘separate’}, optional
Method to be used for computing estimate for intercept.
Following methods are supported,
The default is ‘separate’.
Returns:
- result :
TheilslopesResult instance The return value is an object with the following attributes:
- slope : float
Theil slope.
- intercept : float
Intercept of the Theil line.
- low_slope : float
Lower bound of the confidence interval on slope.
- high_slope : float
Upper bound of the confidence interval on slope.
Notes