REGRESSION MODULE

 Ex No                                          Build Regression module

CLICK HERE >> PROGRAM

Aim

To build regression models.

Algorithm

1. Import the necessary packages and modules

2. Create the arrays that represent the values of the x and y axis

3. Create a function that uses the slope and intercept values to return a new value. This new value

represents where on the y-axis the corresponding x value will be placed

4. Run each value of the x array through the function. This will result in a new array with new values

for the y-axis

5. Draw the original scatter plot

6. Draw the line of linear regression

7. Display the diagram

No comments:

Post a Comment