Question 3. Linear Regression
The file data.csv contains a list of 100 points (x, y) (one per line) that are expected to follow a linear model, which means that they should concentrate around a line, with an equation of the form:
ax + by = 1
The goal of this exercise is to find the paramaters a and b of that line.
(a) Run the provided code for part (a) in the notebook. This will import the file data.csv into a matrix M and a make scatter plot of the 100 points. Intuitively speaking, what line seems to fit the data? Explain your reasoning.
Does this new system have a solution? Solve it.
(d) With the parameters a and b found in part (c), plot the line ax + by = 1 on the same plot as the scatter plot of part (a). How impressive is that?
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.