Machine Learning, Linear Regression, Algorithms, Data Science, Data Visualization.
(∑X)²) b = ((∑Y.∑X²) — (∑X.∑XY)) / (n.(∑X²) — (∑X)²) Here you may wonder, How this formula is derived, right? This is how the formula of (“a”) is derived: Image by Author In the same manner, if you take partial derivatives of the sum of the squares w.r.t (“b”) to find the minimum. You will get the