Least Median of Squares Regression
Least median of squares regression chooses the line or plane that makes the median squared residual as small as possible. Because only the best-fitting half of the data matters, up to almost half of the rows can be wild without moving the fit, including outlying predictor values.
최소중앙제곱 회귀는 잔차제곱의 중앙값을 가장 작게 만드는 직선이나 평면을 고릅니다. 가장 잘 맞는 절반의 자료만 중요하므로 설명변수의 극단값을 포함해 거의 절반의 행이 엉뚱해도 적합이 움직이지 않습니다.
What relationship do most of my data follow, and which rows do not fit it?
자료 대부분이 따르는 관계는 무엇이고, 어떤 행이 그 관계에서 벗어납니까?
The method reports the least median of squares coefficients and robust scale, flags rows whose residuals exceed 2.5 scale units, and refits ordinary least squares on the remaining rows to give coefficients with standard errors and p-values.
When to use Least Median of Squares Regression
- You suspect many outliers or bad leverage points in a regression.
- You want to find the rows that deviate from the main linear pattern.
- You need a high-breakdown starting fit for further analysis.
When to use something else
- You want efficient robust estimates with inference: use High-Breakdown Robust Regression (MM and LTS)
- Outliers are only in the outcome, not the predictors: use Robust Regression (Huber)
Assumptions and requirements
- The majority of rows follow one linear model
- Rows are independent
- The fit is an approximation found by searching subsets when there are many rows or predictors
What the analysis reports
- LMS coefficients and criterion
- LMS scale and outlier flags
- Reweighted least-squares coefficients with SEs and p-values
- OLS for comparison
- Residual plot
How to report it
Least median of squares regression gave a slope of [value] with scale [value]; [value] rows were flagged and the reweighted fit gave b = [value], SE = [value].
Related methods
- High-Breakdown Robust Regression (MM and LTS)
- Least Quartile Difference Regression
- Robust Regression (Huber)
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Least Median of Squares Regression on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.