Exercise 15.1.2

Exercise 15.1.2#

Write a program to calculate the \(\chi^2\) estimates of \(a_0\) and \(a_1\). For the functional relation

\[ y = a_0 + a_1 x \]

where each \(y_i\) has a given error of \(\sigma_i\).

Test your program by reading the data in ./exercise-data/data01.txt. (Answers: \(a_0 = 2.81\) and \(a_1 = 17.13\))