Fit noise with best polynomial trend