When iterations > 0, LOESS computes robustness weights by comparing each residual to the current residual scale estimate. The scaling_method parameter controls how that scale is measured.
where \(B\) is the bisquare function and \(\hat{\sigma}\) is the scale estimate. A larger \(\hat{\sigma}\) makes the algorithm more tolerant of large residuals; a smaller one makes it more aggressive.
First centers residuals at their median, then takes the median of the absolute deviations. Double use of the median makes it highly resistant to extreme outliers. This is the standard choice for robust regression.
Use when: Data may contain outliers (default for most applications).
Uses the uncentered median — unlike MAD it does not subtract the residual median first. Still robust (median-based) but slightly less resistant than MAD when residuals are systematically shifted. Faster than MAD in practice because it requires only one partial sort.
Use when: Speed matters and data have minimal systematic bias in residuals.
Arithmetic mean of absolute residuals. Non-robust: a single extreme outlier inflates \(\hat{\sigma}\), causing the algorithm to under-downweight it. Fastest to compute (no sort required). Useful when data are believed to be clean and speed is a priority.
Use when: Clean data with no outliers; maximum computation speed required.