Evaluating smoothing

Many aspects of smoothing are comparable to regression; therefore, you can apply some of the techniques in Chapter 10, Evaluating Classifiers, Regressors, and Clusters, to smoothing too. In this recipe, we will smooth with the Savitzky-Golay filter, which conforms to the following equation:

Evaluating smoothing

The filter fits points within a rolling window of size n to a polynomial of order m. Abraham Savitzky and Marcel J. E. Golay created the algorithm around 1964 and first applied it to chemistry problems. The filter has two parameters that naturally form a grid. As in regression problems, we will take a look at a difference, in this case, the ...

Get Python Data Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.