Linear regression helps to describe how a response(dependent)variable y changes as an explanatory(independent)variable x changes. Its main purpose is to predict the value of y for a particular value of x. The least-squares regression line of y on x is the straight line that makes the sum of the squares of the vertical distances of the data points from the line as small as possible.
展开▼