Least Squares Regression

Plotting the data

The data to be used in this lesson:
x1.001.201.401.601.701.801.851.901.952.002.052.102.152.202.302.402.602.803.00
y1.862.252.362.592.732.822.932.842.883.133.093.123.053.043.223.163.613.923.95

When given a dataset, it is often very helpful to plot the data. This gives a quick overview of the dataset, and makes it much easier to examine the data than just looking at the numbers themselves. In the figure below, a dataset in plotted with y on the abscissa and x on the ordinate.

plot of dataset

From just looking at the plot, one can tell that there is some kind of relationship between x and y. The value of y seems to increase with the value of x. The purpose of the least squares regression is to establish a model that express this relationship between x and y. The first step in making this model could be to mean-center both the x- and y-values.



previous next