Linear Regression Algorithm: Understanding the Fundamentals and Applications