Linear regression

Add points by clicking on graph, move points by dragging them, delete points by clicking on them, and observe how the red line of best fit changes, along with each point's distance to that line (its "residual"). The graph can be panned and zoomed.