Linear Regression (good example)This is a featured page

Linear regression is the process of determining whether or not a line is the best model for a given set of data, and, if it is, the equation of the line of best fit must then be determined. The following flowchart summarizes the procedure for the process of linear regression.

linear regression flowchart

The equations for r, a, and b are as follows:

correlation coefficient

(r is the correlation coefficient)



a and b equations

('a' is the slope of the line of best fit)




('b' is the y-intercept)



Note that 'a', and the averages of y and x must be found before 'b'.

Example: The following data was obtained in a Physics experiment and plotted. Determine if a straight line is a good model for this data and if so, determine the line of best fit.

time (s)distance (cm)
12
35
58
711
915

When this data is plotted as a raw graph, it appears that a straight line is the best model:

raw graph

A calculation of r should be done. Using the above equations, r=0.9981, which indicates a strong correlation.

According to the flowchart above, the next step is to calculate 'a' and 'b', which are calculated to be
a= 1.6 s and b=0.2 cm.

Therefore, the equation of the line of best fit is d=1.6t+0.2.

The graph below demonstrates a strong correlation:

graph of strong correlation

This entry would have received a full 8/8, with a possible additional 2 marks from the writer's comments on another writer's entry.
The graphs were done in Excel, and then they were copied and pasted in MS Paint. In Paint, the graphs were saved as jpg images, then uploaded to the wiki.
the equations were done in MS Word using Equation Editor, and then copied and pasted into MS Paint. In Paint, they were saved as jpg images, then uploaded to the wiki.



Mr._D'Onofrio
Mr._D'Onofrio
Latest page update: made by Mr._D'Onofrio , Oct 9 2006, 4:18 PM EDT (about this update About This Update Mr._D'Onofrio Edited by Mr._D'Onofrio

No content added or deleted.

- complete history)
More Info: links to this page
Started By Thread Subject Replies Last Post
aberadamus nice work 1 Jan 12 2012, 8:22 PM EST by Anonymous
Thread started: Jan 10 2007, 7:29 PM EST  Watch
your examples are really thorough and allow the student to understand the material completely.
11  out of 20 found this valuable. Do you?    
Keyword tags: None (edit keyword tags)
Show Last Reply

Anonymous  (Get credit for your thread)


Showing 1 of 1 threads for this page

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)