Linear Least Squares in JavaScript

by Maxim Kuzmin

How to use this tool

  1. Input your data points or load a sample
  2. Click calculate

You will then see your data points on the graph and a linear approximation of your emperical function.

NaNs in input

Any entry that isn't a number (like "test123") or that is empty will be removed from the list.

Data points