In [3]: runfile('C:/Users/jbobowsk/Desktop/linearFit.py', wdir='C:/Users/jbobowsk/Desktop')
[2.9432194 2.79974811 2.5046729 2.35169492 2.04222973 2.07570208
3.23340471 1.25266525]
The best-fit parameters are: (1) slope = 0.004562609977167653 and (2) intercept -3.029377062510313e-05
Here is the covariance matrix:
[[ 2.10867163e-10 -1.45419351e-10]
[-1.45419351e-10 1.57145259e-10]]
[2.10867163e-10 1.57145259e-10]
The error in the slop is: 1.2535759226262432e-05
The error in the intercept is: 1.4521265884900987e-05
-3.029377062510313e-05
0.004532316206542549
The best-fit parameters are: (1) slope = 0.004560548503316531 and (2) intercept -2.8519759527912626e-05
The error in the slop is: 9.344743968455787e-06
The error in the intercept is: 1.7648857220463362e-06
In [4]: