Theil-Sen Estimator (Robust Regression)
Computes the Theil-Sen line, a robust alternative to least squares for fitting a linear trend. Instead of minimizing squared errors (which makes the classic line very sensitive to outliers), it takes the median of all slopes between pairs of points. Because it uses the median, it tolerates up to about 29% of outlying points without being dragged off course. It's the natural companion to the Mann-Kendall test for quantifying the detected trend. Enter the X and Y values.
Resultado
โ
Theil-Sen Estimator (Robust Regression)
Computes the Theil-Sen line, a robust alternative to least squares for fitting a linear trend. Instead of minimizing squared errors (which makes the classic line very sensitive to outliers), it takes the median of all slopes between pairs of points. Because it uses the median, it tolerates up to about 29% of outlying points without being dragged off course. It's the natural companion to the Mann-Kendall test for quantifying the detected trend. Enter the X and Y values.
The slope that outliers can't hijack
Least-squares regression has an Achilles' heel: because it minimizes squared errors, a single point far off the curve can bend the whole line. In real data, full of suspect measurements, that's a constant risk. The Theil-Sen estimator offers an alternative that practically ignores outlying points.
The recipe is disarmingly simple. For each pair of points, you compute the slope of the line joining them. With many points, this yields a heap of slopes; the Theil-Sen estimate is simply the median of all of them. Because the median is unmoved by extreme values, the resulting line withstands nearly a third of the data being outliers without losing its way. The intercept comes from the median of the corresponding residuals.
Enter the X and Y values in two lists. The tool returns the slope and intercept of the Theil-Sen line. It's the right choice when you doubt the quality of some points, or when you want to quantify the magnitude of a trend that the Mann-Kendall test has already flagged as significant.
Related Tools
Hodges-Lehmann Estimator
Computes the Hodges-Lehmann estimator of a sample's location, a robust alternative to both the mean and the median. It's defined as the median of all pairwise averages (the so-called Walsh averages) among the values, including each value with itself. The result combines the median's resistance to outliers with greater efficiency when the data are nearly normal. It's the estimator associated with the Wilcoxon signed-rank test. Enter the sample of values.
Outlier Detection (IQR Rule)
Detect outliers using IQR rule (outside Q1โ1.5ยทIQR or Q3+1.5ยทIQR).
Mann-Kendall Trend Test
Computes the Mann-Kendall test, used to detect a monotonic trend (upward or downward) in a time series without assuming the data are normal or the trend is linear. It sums the signs of all pairwise comparisons between values: if the series tends to rise over time, positive signs prevail. It's widely used in hydrology, climatology and environmental science to assess trends in long series. The S statistic becomes a z via the normal approximation, with a tie correction. Enter the series in chronological order.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.