Machine Learning, Linear Regression, Algorithms, Data Science, Data Visualization.
∑X = (1+2+3+4) = 10 ∑Y = (2+3+5+4) = 14 ∑X² = (1²+2²+3²+4²) = (1+4+9+16)= 30 ∑XY = (1∗2+2∗3+3∗5+4∗4) = (2+6+15+16)= 39 n = 4 4.2.2. Apply the Formulas for a (Slope) and b (Intercept) The formulas for the slope (a) and intercept (b) in our linear equation are: a = (n.(∑XY) — (∑X.∑Y)) / (n.(∑X²) —