Processing math: 100%
Best fitting line
- Vector v (move this by dragging the head of the arrow; click here to optimize)
- Orthoprojector is P=1‖v‖2vvT
- Data points a1,…,am (move by dragging the points; click here to re-randomize)
- Projections of data points Pa1,…,Pam (automatically computed)
- Cost (sum of squared distances to line) is 6.294552430439484
Please excuse the horrible Javascript and user interface design.