Quant Memo
Core

Tukey's Biweight and Redescending Psi Functions

A way of fitting a line or mean that treats mild outliers gently but completely ignores extreme ones, by making the 'pull' an observation exerts rise then fall back to zero as it gets further from the fit.

Prerequisites: Ordinary Least Squares (OLS)

Fit a mean or a regression line to a batch of returns that includes a couple of fat-finger prints, and ordinary least squares will bend itself out of shape trying to accommodate them — because in OLS every point's pull on the fit grows without limit the further it sits from the line. Tukey's biweight fixes this with one idea: let an observation's pull increase at first as it moves away from the fit, like OLS does, but then have that pull fall back to zero once the observation is far enough out. A point in another county gets no vote at all.

An analogy: a committee that stops listening to shouting

Imagine a committee vote where quiet disagreement is weighed normally, louder disagreement is weighed a bit more, but once someone starts shouting incoherently, the room simply tunes them out — their volume stops translating into influence. That's the shape of the biweight's influence: rises with distance from consensus, peaks, then collapses to nothing for the truly extreme voices. OLS, by contrast, is a committee that gives the loudest shouter the most weight, no matter how unreasonable they are.

The math, one symbol at a time

For a residual uu (how far a point's observed value sits from the fitted value), scaled by a measure of typical spread ss, define r=u/sr = u/s. The psi function ψ(r)\psi(r) describes how much "pull" a residual of size rr exerts on the fit. Tukey's biweight psi function is

ψ(r)={r(1(r/c)2)2rc0r>c\psi(r) = \begin{cases} r\left(1 - (r/c)^2\right)^2 & |r| \le c \\ 0 & |r| > c \end{cases}

where cc is a tuning constant (commonly c4.685c \approx 4.685). In plain English: within cc scaled units, a residual pulls the fit toward itself, rising then tapering; beyond cc its pull is exactly zero — "redescending," unlike methods where influence flattens but never vanishes, or OLS where it grows forever. The weight w(r)=ψ(r)/rw(r) = \psi(r)/r starts near 1 for small residuals and hits exactly 0 beyond cc.

Worked example 1: three residuals, three treatments

Suppose s=1s = 1 (so rr equals the residual itself) and c=4.685c = 4.685. Consider residuals of $0.50, $3.00, and $9.00 in a P&L reconciliation.

  • r=0.5r = 0.5: well inside cc, so ψ(0.5)0.5(10.011)20.489\psi(0.5) \approx 0.5(1-0.011)^2 \approx 0.489 — almost full pull, close to OLS.
  • r=3.0r = 3.0: (3/4.685)20.410(3/4.685)^2 \approx 0.410, so ψ(3)3(0.590)23(0.348)1.045\psi(3) \approx 3(0.590)^2 \approx 3(0.348) \approx 1.045 — pull has grown but is already curving down relative to a linear OLS pull of 3.
  • r=9.0r = 9.0: exceeds c=4.685c = 4.685, so ψ(9)=0\psi(9) = 0 — this point is completely excluded from the fit, as if it weren't in the sample at all.

Worked example 2: comparing a mean estimate

Five daily P&L figures: $10, $12, $9, $11, and $200 (a data error). The sample mean is (10+12+9+11+200)/5=48.4(10+12+9+11+200)/5 = 48.4 — dominated by the one bad print. A biweight-fitted location estimate, computed by iterating (see Iteratively Reweighted Least Squares), converges to $10.5, because the $200 print's residual quickly earns weight zero, leaving only the four sensible values. The estimate auto-detects and drops the bad point without anyone flagging it in advance.

residual r OLS: pull grows forever biweight: rises then → 0
OLS's implicit pull rises without limit as a residual grows; Tukey's biweight rises briefly then redescends to exactly zero beyond the cutoff c, muting extreme points entirely.

What this means in practice

Biweight-based fitting is used wherever a fit must not be hijacked by a handful of bad prints, fat-finger trades, or genuine but rare regime breaks — cleaning return series before estimating covariances, robustifying factor-model regressions, or building P&L reconciliation checks that should flag rather than absorb data errors. It's typically implemented via iteratively reweighted least squares, and its variance is best assessed with the sandwich variance estimator rather than the OLS formula.

Tukey's biweight psi function lets an observation's influence on a fit rise with its distance from the fit, then fall all the way back to zero past a cutoff — so mild deviations are handled gently while extreme ones are excluded entirely, without a human ever manually flagging outliers.

Because the biweight objective is non-convex, iterative fitting can converge to different local solutions depending on the starting point — a bad initial guess (e.g., starting from the OLS fit when outliers are severe) can settle on a fit that has quietly zeroed out good data rather than bad. Always start the iteration from a genuinely robust initial estimate, such as the median or a least-trimmed-squares fit, and check that the observations receiving zero weight are the ones that actually look wrong on inspection.

Related concepts

Practice in interviews

Further reading

  • Tukey, exploratory data analysis notes (biweight)
  • Huber, Robust Statistics, ch. 4
ShareTwitterLinkedIn