Least Trimmed Squares (LTS) Regression

Statistics
Introduced by
Peter J. Rousseeuw
Year
1984
Type
Robust linear regression

What does it do?

Least Trimmed Squares (LTS) is a robust linear regression estimator associated with Peter J. Rousseeuw.

Instead of minimising the sum of all squared residuals, it minimises the sum of only the h smallest, so the largest residuals do not influence the fit. Its robustness depends on how many observations are retained: the highest breakdown point, close to 50%, applies when h is about half the sample.

The intuition behind the method

Ordinary least squares lets a few extreme points drag the fitted line toward them because every squared residual counts. LTS instead asks which line fits the bulk of the data best if the worst-fitting points are allowed to be ignored. It keeps the h observations with the smallest squared residuals and sets the rest aside, so a cluster of outliers cannot dictate the fit.

History

Least Trimmed Squares is associated with Peter J. Rousseeuw and belongs to his work on regression estimators with a high breakdown point. The 1984 paper listed for this page, Least Median of Squares Regression, introduces a closely related estimator that replaces the sum of squared residuals by their median; it is cited here as context for that line of work, not as the definition of the trimmed-sum objective. Rousseeuw and Van Driessen (2006) describe a computational approach for fitting LTS regression to large data sets.

When to use it

Use LTS when fitting a linear model to a continuous outcome and there is good reason to think a meaningful share of observations are outliers or contaminated records, and the linear model describes the clean majority of the data. It is suited to cross-sectional data, and to longitudinal data only if the observations are approximately independent, because the standard linear model assumes independence. Do not use it when the data are clean and efficiency matters, since OLS will be more precise, or when the sample is very small, where the search over trimmed subsets becomes unstable (see limitations). For very small samples with a single predictor, a simpler robust method such as the Theil-Sen estimator is a safer first choice. After fitting, examine which observations have large LTS residuals and which are high-leverage points, and compare the result with OLS fitted without the observations that are both.

Limitations and considerations

  • Needs a reasonably large sample: the search over trimmed subsets is unreliable on very small samples.
  • Less statistically efficient than ordinary least squares when the data are actually clean and well behaved, so it gives less precise coefficients in that case.
  • The trimming parameter (h, via alpha) must be chosen deliberately, because the retained fraction determines both the robustness and the efficiency of the estimate.
  • Ordinary OLS standard errors and tests do not apply directly to LTS coefficients. Treat inference with caution, or use a method designed for trimmed or robust estimators, before reporting confidence intervals or p-values.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • High robustness to outliers: the breakdown point is up to 50% when h is close to half the sample, so the estimate can remain meaningful when a large share of the data is contaminated.
  • Resistant to extreme observations that would dominate an ordinary least squares fit, because the largest squared residuals are excluded from the objective.
  • Fitted results can be read alongside the trimmed observations, which makes it straightforward to see which points the robust fit has set aside.

Applications

  • Robustly estimating linear relationships when a dataset is known to contain outliers or contaminated records.
  • Prediction from continuous predictors where extreme observations would otherwise distort an ordinary regression fit.
  • Screening data for outliers by comparing the LTS fit with the points it trims away.

How it works

How it works

1

The outcome y is modelled as a linear function of the predictors X plus an error term ε, exactly as in ordinary regression. LTS does not change the model itself; it changes how the coefficients are chosen.

Formula
y = X\beta + \varepsilon
2

The coefficients β̂ are chosen to minimise the sum of the h smallest squared residuals, written as the ordered squared residuals (r²)₍₁₎ ≤ … ≤ (r²)₍ₕ₎, rather than the sum over all observations. Because the largest residuals are excluded from the objective, the worst-fitting points carry no weight in the estimate. The trimming is set through h, or equivalently through the fraction alpha of the data retained; h is chosen between roughly half the sample and the full sample, and for example alpha ≈ 0.75 keeps roughly three-quarters of the observations. The breakdown point approaches 50% only when h is close to half the sample, and a larger h lowers the amount of contamination the estimate can tolerate. The estimate is found by searching over subsets of observations; Rousseeuw and Van Driessen (2006) describe a computational approach for large data sets. Because LTS trims on the size of residuals, it protects against outlying responses, but high-leverage points in the predictors need to be checked separately.

Formula
\hat{\beta} = \arg\min_{\beta} \sum_{i=1}^{h} \left(r^2\right)_{(i)}

Common pitfalls

  • Running LTS on a very small sample, where the trimmed-subset search is unstable. With a single predictor a simpler robust method such as the Theil-Sen estimator may be a safer choice; with several predictors the suitable alternative depends on the model.
  • Keeping a default trimming fraction without checking how many observations the fit actually discards; alpha should reflect the expected outlier share and the required robustness.
  • Treating the trimmed-away points as errors to discard rather than inspecting them, since they may carry real information about the process being studied.
  • Ignoring leverage: check which observations have large LTS residuals and which are high-leverage points, and compare the robust fit with an OLS fit that excludes the observations flagged as both.
  • Assuming the result is algorithm-independent: LTS is fitted by searching over subsets of observations, so results can depend on the algorithm and search settings used.

Frequently asked questions

What does the breakdown point of 50% mean?

The breakdown point is the largest fraction of the data that can be replaced by arbitrary outliers before the estimator can be forced to give a meaningless answer. The 50% figure is the highest possible for a regression estimator and applies to LTS only when h is close to half the sample. When more observations are retained, as with alpha ≈ 0.75 in the example, the tolerable contamination is lower.

How is LTS different from ordinary least squares?

OLS minimises the sum of all squared residuals, so a single extreme point can dominate the fit. LTS minimises only the sum of the h smallest squared residuals, ignoring the worst-fitting observations, which makes it resistant to outliers at the cost of some efficiency on clean data.

What is the trimming parameter h (alpha)?

h is the number of observations whose squared residuals enter the objective; alpha is the corresponding fraction of the data kept. The example uses alpha ≈ 0.75. Retaining about half the data gives the maximum breakdown point, and the choice trades robustness against efficiency.

When should I prefer a different robust method?

With very small samples the Theil-Sen estimator is more reliable. RANSAC regression is an alternative to consider when the outlier share is high, although it works on a different principle. LTS is strongest on moderate-to-large samples with a substantial but bounded share of outliers.

Related methods

Sources

  1. Rousseeuw, P. J. (1984). Least Median of Squares Regression. Journal of the American Statistical Association, 79(388), 871-880.

    Open DOI reference
  2. Rousseeuw, P. J., & Van Driessen, K. (2006). Computing LTS Regression for Large Data Sets. Data Mining and Knowledge Discovery, 12, 29-45.

    Open DOI reference