How to find the line that best fits points, including when you want to weigh some points less than others. Regression line. Least-squares regression.
Note: There's a typo at the end of the video: You also have to premultiply b by your matrix with 1/2
Check out my Orthogonality playlist: https://www.youtube.com/watch?v=Z8ceNvUgI4Q&list=PLJb1qAQIrmmAreTtzhE6MuJhAhwYYo_a9
Subscribe to my channel: https://www.youtube.com/channel/UCoOjTxz-u5zU0W38zMkQIFw