Advanced Savitzky Golay Filter Calculator

Analyze sequences with flexible windows and derivative settings. Inspect smoothing behavior through clear computed summaries. Download polished results for study, comparison, archiving, and sharing.

Calculator Inputs

Use commas, spaces, or new lines between values.
If provided, X values must be evenly spaced.

Example Data Table

Index X Observed Y Comment
000.40Starting noisy measurement
110.58Rising local trend
220.73Mild upward movement
330.95Peak region beginning
441.04Highest sample reading
550.98Turning point appears
660.81Downward trend continues
770.60Smoother decay section
880.46Noise remains visible
990.31Low amplitude area
10100.21Series tail value

Formula Used

The Savitzky-Golay method fits a local polynomial to each moving window. For each target sample, it models the nearby data with p(z) = a0 + a1z + a2z² + ... + amz^m.

Using the window design matrix X, the coefficient vector is computed by a = (XᵀX)⁻¹Xᵀy. The smoothed output is the fitted value at the target point. The derivative output uses d! × a_d / Δ^d, where d is the derivative order and Δ is sample spacing.

Because the filter depends on polynomial least squares, the window length must stay odd and exceed the local model complexity.

How to Use This Calculator

  1. Enter your Y values in the first text area.
  2. Optionally enter evenly spaced X values, or leave them blank.
  3. Choose an odd window length smaller than the dataset size.
  4. Set the polynomial order and the derivative order.
  5. Enter the sample spacing if X values are not supplied.
  6. Select an edge method for boundary behavior.
  7. Click Apply Filter to display the result above the form.
  8. Review the summary, chart, and table, then export CSV or PDF.

Frequently Asked Questions

1. What does this calculator do?

It smooths noisy sampled data or estimates derivatives using a local polynomial fit across a moving window. The result preserves shape better than many simple averaging methods.

2. Why must the window length be odd?

An odd window keeps a central target position inside each local fit. That symmetry is important for standard Savitzky-Golay smoothing and derivative estimation.

3. How should I choose polynomial order?

Use a low order for strong smoothing and a slightly higher order when you need local curvature preserved. The order must stay below the window length.

4. Can I use uneven X spacing?

No. This implementation assumes evenly spaced samples. If your X values are irregular, resample the series first or use a method designed for nonuniform spacing.

5. What does derivative order change?

A derivative order of zero performs smoothing. Higher orders estimate slope, curvature, or higher derivatives, scaled by the sample spacing value.

6. Which edge mode is safest?

Adaptive polynomial edges are usually the safest choice because they refit the polynomial near boundaries instead of forcing repeated or wrapped values.

7. What does residual RMSE mean?

Residual RMSE measures the typical difference between the original data and the smoothed output. Smaller values indicate the filter stayed closer to the observed samples.

8. When should I avoid large windows?

Avoid very large windows when your signal changes rapidly. Oversized windows can flatten peaks, delay turning points, and hide short local events.

Related Calculators

Moving Average CalculatorSeasonal Decomposition ToolTrend Analysis CalculatorTime Series Forecast ToolPartial Autocorrelation ToolStationarity Test ToolADF Test CalculatorKPSS Test CalculatorHolt Linear TrendHolt Winters Tool

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.