Regression · Smoothing

LOESS (Local Regression Smoothing)

Fit a LOESS/LOWESS smooth curve through a scatter with a tunable span, an overlaid smooth, residual diagnostics, and a local fit-quality summary: no global equation required.

In the menus Regression › Smoothing › LOESS (Local Regression Smoothing)

Also searched as loess lowess local regression smoother scatterplot smoother

When to use it

Reveal the shape of the relationship between two numeric variables when you do not want to assume it is a straight line (or any fixed curve): for smoothing a scatterplot, checking linearity before a regression, or exploring a trend.

When not to: You need an interpretable equation, a slope, or a formal hypothesis test (LOESS provides none of these; use linear, polynomial, or spline regression), the data are sparse (each local window needs enough points to fit reliably), or you intend to read the curve beyond the observed range of the predictor, which is not defined and should never be extrapolated.

Step by step

  1. Open it from the menu

    Click Regression in the menu bar; under Smoothing choose LOESS (Local Regression Smoothing).

  2. Fill in the form

    Choose the columns: What to smooth (up axis), Along (horizontal axis). The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Span (frac), Robustifying iterations. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the LOESS (Local Regression Smoothing) form
What to smooth (up axis) Response requiredOne numeric column. Numeric response (y) to be smoothed.
Along (horizontal axis) Predictor requiredOne numeric column. Numeric predictor (x) the smooth runs along.
Span (frac)Fraction of points used in each local fit (0–1). Smaller = wigglier, larger = smoother. Default: 0.6667.
Robustifying iterationsNumber of robust re-weighting passes that down-weight outliers (0 = plain LOESS). Default: 3.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

A worked example

A LOESS smooth of penguin body mass against flipper length, span = 0.6667, 3 robustifying iterations.

Result: The smooth curve rises steadily and nearly linearly across the observed flipper-length range, with pseudo-R-squared = 0.78 (a straight-line fit gives 0.76) and a structureless residuals-vs-fitted band.

The near-linear shape of the LOESS curve, together with a clean residual pattern, supports the linearity assumption a subsequent formal linear regression of body mass on flipper length would rely on, exactly the diagnostic role LOESS is meant to play before committing to a parametric model.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • How does penguin body mass change with flipper length, without assuming the relationship is a straight line?
  • Explain the LOESS (local regression smoothing) in plain words.
  • What does linearity mean?

Last reviewed November 16, 2026.

Report an unclear step