We will work with the 2008 U.S. presidential elections polls data and apply machine learning techniques to fit the data.

Box kernel

Our focus is to apply bin smoothers, in search for the best estimate, in presence of uncertainty.
We start with a box kernel, with span of 7 days.

Gaussian kernel

When using a span of 7 days, for each point, we have 28% of the data changing, which makes the estimate too wiggly.
The Gaussian kernel applies the Gaussian distribution to the data.