Successfully reported this slideshow.

# Least Squares Regression Method | Edureka    ×

# Least Squares Regression Method | Edureka

** Machine Learning Engineer Masters Program: https://www.edureka.co/machine-learning-certification-training **
This Edureka PPT on Least Squares Regression Method will help you understand the math behind Regression Analysis and how it can be implemented using Python.

Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Castbox: https://castbox.fm/networks/505?country=in

** Machine Learning Engineer Masters Program: https://www.edureka.co/machine-learning-certification-training **
This Edureka PPT on Least Squares Regression Method will help you understand the math behind Regression Analysis and how it can be implemented using Python.

Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Castbox: https://castbox.fm/networks/505?country=in

### Least Squares Regression Method | Edureka

1. 1. WHAT IS THE LEAST SQUARES METHOD? STEPS TO COMPUTE THE LINE OF BEST FIT REGRESSION ANALYSIS USING PYTHON LINE OF BEST FIT www.edureka.co THE LEAST-SQUARES REGRESSION METHOD WITH AN EXAMPLE
2. 2. WHAT IS THE LEAST SQUARES REGRESSION METHOD? www.edureka.co
3. 3. The least-squares regression method is a technique commonly used in Regression Analysis. It is a mathematical method used to find the best fit line that represents the relationship between an independent and dependent variable in such a way that the error is minimized. What is the Least Squares Regression Method? www.edureka.co
4. 4. LINE OF BEST FIT www.edureka.co
5. 5. The Line of best fit line is drawn across a scatter plot of data points in order to represent a relationship between those data points. What is the Line Of Best Fit? www.edureka.co The least-squares method is one of the most effective ways used to draw the line of best fit. It is based on the idea that the square of the errors obtained must be minimized to the most possible extent and hence the name least squares method.
6. 6. STEPS TO COMPUTE THE LINE OF BEST FIT www.edureka.co
7. 7. To start constructing the line that best depicts the relationship between variables in the data, we first need to get our basics right. Steps to calculate the Line of Best Fit www.edureka.co 𝑦 = 𝑚𝑥 + 𝑐 Dependent variable Y-intercept Independent variable Slope of the line A simple equation that represents a straight line along 2-Dimensional data, i.e. x-axis and y-axis.
8. 8. The slope of a line characterizes the direction of a line. To find the slope, you divide the difference of the y-coordinates of 2 points on a line by the difference of the x-coordinates of those same 2 points . Step 1: Calculate the slope ‘m’ of the line www.edureka.co 𝑚 = 𝑛 σ 𝑥𝑦 − 𝛴𝑥 𝛴𝑦 𝑛𝛴𝑥2 − 𝛴𝑥 2 m – slope of the line n – total number of data points x – Independent variable y – Dependent variable
9. 9. The y-intercept of a line is the value of y at the point where the line crosses the y axis. Step 2: Compute the y-intercept www.edureka.co x y independent variable dependentvariable Y intercept (c) Slope (m) c = 𝑦 − 𝑚𝑥 Dependent variable Y-intercept Independent variable Slope of the line
10. 10. A simple equation that represents a straight line along 2-Dimensional data, i.e. x-axis and y-axis. Step 3: Substitute the values in the final equation www.edureka.co 𝑦 = 𝑚𝑥 + 𝑐 Dependent variable Y-intercept Independent variable Slope of the line
11. 11. THE LEAST-SQUARES REGRESSION METHOD WITH AN EXAMPLE www.edureka.co