Data smoothing overlays a de-noised curve on a raw series using Savitzky-Golay, a moving average or LOWESS, and reports the residual RMSE.
Smoothing separates signal from noise. A moving average is the simplest low-pass filter but blunts peaks. Savitzky-Golay fits a low-order polynomial in a sliding window, so it suppresses noise while preserving peak height and width — the standard in spectroscopy. LOWESS is a robust locally-weighted regression that adapts to curvature and tolerates outliers.
The window (odd) sets the smoothing scale: wider removes more noise but risks flattening real features. The residual RMSE (raw − smoothed) quantifies how much variation was treated as noise.
One numeric series (row order = order) + method + window (odd) + polynomial degree (Savitzky-Golay) or span (LOWESS).
The smoothed curve overlaid on the raw data plus the residual RMSE.
Compare the smoothed curve to the raw data — if genuine peaks are being flattened, shrink the window or use Savitzky-Golay over a moving average.