The goal of this exercise is to find the paramaters a and b of that line
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

The goal of this exercise is to find the paramaters a and b of that line

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?

Hint
MathematicsLinear regression is a linear approach for the relationship modelling between the scalar response and one or more of the explanatory variables. The explanatory variables are also called as the dependent and independent variables. And, the case of this one explanatory variable is known as the simple linear regression. Also, in this regression, the relationships are modeled of which the u...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.