calculate linearity uncertainty calculate fitted straight line