Data Science

Slope and Intercept in Data Science

Slope and Intercept in Data Science

Before we learn linear regression, we need to know the equation of a straight line. We have already learned the slope of a line.

It is given as the tangent of the angle made by a straight line with  𝑥 -axis in the anti-clockwise (or counter-clockwise) direction.

Consider the straight line shown below. Let its equation be

𝑦=𝑚𝑥+𝑐 

where

𝑦  is the  𝑦 -coordinate of the point lying on the line

𝑥  is the  𝑥 -coordinate of the point lying on the line

𝑚  is the slope of the line

𝑐  is the intercept made by the line on the  𝑦 -axis

Note: The above form of the equation of a straight line is called the slope-intercept form. There are other forms as well. But for the sake of learning linear regression, we will stick to the slope-intercept form only.
 

Top course recommendations for you

    Data Science Projects
    1 hrs
    Intermediate
    19.7K+ Learners
    4.53  (433)
    Model Deployment using Heroku
    1 hrs
    Beginner
    5.7K+ Learners
    4.37  (168)
    Multivariate Time Series Forecasting in R
    2 hrs
    Intermediate
    3.8K+ Learners
    4.38  (112)
    Machine Learning Model Deployment using Flask
    1 hrs
    Beginner
    7.1K+ Learners
    4.44  (266)
    Python for Data Science
    2 hrs
    Beginner
    90.3K+ Learners
    4.43  (3414)
    Popular Applications of Data Science
    1 hrs
    Beginner
    10K+ Learners
    4.57  (418)
    Analytics with SQL and Python
    2 hrs
    Beginner
    26.3K+ Learners
    4.47  (663)
    Career in Data Science
    1 hrs
    Beginner
    13.2K+ Learners
    4.45  (269)
    Data Mining Projects
    2 hrs
    Beginner
    17.7K+ Learners
    4.61  (785)
    Credit Card Fraud Detection
    1 hrs
    Beginner
    8.6K+ Learners
    4.37  (356)