calculate linearity uncertainty regression analysis