# Finding Fisher Matrix for Line Fitting

I am going through the "Fitting a Line" example from here.

$f_1 = ax_1 + b$ and $f_2 = ax_2 + b$ are the models used to observed two data points in $R^2$. If $\sigma_1$ and $\sigma_2$ is the uncertainity in measuring $x_1$ and $x_2$, how do you calculate the Fisher information matrix?

I can't get to the solution they got to on Page 4.

• There isn't enough information provided in your post to answer the question: your models must specify the possible distributions of all random quantities. – whuber Apr 14 '18 at 17:33
• I agree. I am just trying to assume a Gaussian model with variance $\sigma_i$ while measuring $x_i$ and see if I reach the solution proposed in the paper. If that were true, how do I go about it? – pushkar Apr 14 '18 at 17:59

I got it. What I got wrong in my understanding was that we are trying to estimate $a$ and $b$, not the $x_i$s.
$$\frac{\partial{f_i}}{\partial{a}} = x_i, \frac{\partial{f_i}}{\partial{b}} = 1.$$
$$F = \begin{bmatrix} \frac{x_1^2}{\sigma_1^2} + \frac{x_2^2}{\sigma_2^2} & \frac{x_1}{\sigma_1^2} + \frac{x_2}{\sigma_2^2} \\ \frac{x_1}{\sigma_1^2} + \frac{x_2}{\sigma_2^2} & \frac{1}{\sigma_1^2} + \frac{1}{\sigma_2^2} \end{bmatrix}$$