Search for question
Question

1- In section "Generative Probabilistic Model", we used "w np. linalg. solve (ATA, np.dot (A.T, y / yerr**2)" to find the model parameters and fit a line to data. Use what we learned in chapter 2, least square fitting (page 7), to find the model parameters and fit a line to data. Provide your Python script and visualize the results like what we did in Chapter 2, page 8. (2 points) =

Fig: 1