Home Contents Glossary Search Help

Least squares fitting to a straight line
Previous Up Next

 

To determine the linear relationship between two variables: y and x there may be up to 2 parameters: slope, m and intercept, c.

We show two examples: 

  • straight line through the origin, and 

  • straight line with intercept 

The value of chi-squared: is calculated in each case with y(xi) = mxi [+c]. 

Vary m (and c), by dragging the straight line on the graph, to find the lowest value of C2

How well did you do?

Hit the lower bar to change the type of line being fitted.

 

The University of Liverpool
1999, 2000 The University of Liverpool, Department of Physics

EPSRCProject funded by The Engineering and Physical Sciences Research Council

Materials Teaching Educational ResourcesWebsite developed and maintained by the MATTER Project