PHY1010: Line of Best Fit

Choosing the line of best fit

  • Drag the sliders or move them with the arrow buttons to choose the slope and intercept of the red line so that it is an aesthetic fit.
  • The applet is preloaded with some dummy data that you can use.
  • You can also upload your own data or enter it into the box on the right. Your input data should be in the form of a csv file with only two columns.
  • The sum of squared deviations \(S = \sum_{i=1}^N (y_i - y)^2\) is also shown.

Residue: