Typical data sets are noisy. These data points do not lie on smooth curves, but are spread over some interval in the y-direction. The purpose of the linear regression or straight line fit is to find the straight line which fits the data set best. The straight line equation is
So the problem is to find values for the slope "m" and intercept "b" which produce the best fitting line for a given data set. For instance, the data set weight_data will be used below to illustrate the steps in using Excel to perform this fit.
We will assume that the data set is already imported in Excel ( height (x) in column b4:b21 and weight (y) in column c4:c21 ) in what follows.
The steps are:
Any questions or suggestions should be directed to |