A best-fit line shows the overall trend of your points.
How is the best-fit line found?
This tool uses a standard method called least-squares linear regression.
It finds the straight line that makes the total “vertical distance” from the points to the line
as small as possible.
In other words, it chooses a slope and intercept so the line is the closest overall match
to your data. This is the same basic method used in Excel, Desmos, and graphing calculators
when you add a linear trend line.
Note: This tool shows the line and R² only (not confidence intervals or p-values).
That keeps it simple for classroom use.