Learn how to apply least squares for data fitting in various contexts.