Real-time Data Serving at Scale
Curve fitting for charts: better visualizations for Vercel Analytics

Curve fitting for charts: better visualizations for Vercel Analytics

9/9/2022

What this post added

Introduced curve fitting (specifically polynomial regression) to Vercel Analytics charts to improve trend visualization and delta calculation. This addresses the issue of noisy data points obscuring trends and inaccurate delta measurements based solely on first and last points. The implementation involves selecting an optimal polynomial order by balancing Mean Squared Error (MSE) on training and test datasets to avoid overfitting.

Read the original post ↗