How To Calculate

Learn how to calculate anything
Menu
  • bmi
Home
statistics
How to Calculate Linear Regression Line.
statistics

How to Calculate Linear Regression Line.

Rosemary Njeri

Linear regression quantifies the relationship between one or more predictor variable and one outcome variable.

Regression analysis is used in determining the strength of predictors, forecasting an effect, and show the trend forecasting.

Formula to calculate linear regression.

The lines equation is as follows;

Calculate Linear Regression Equation.
  • Y – is the dependent variable.
  • X – is the independent also known as explanatory variable.
  • a – is the intercept.
  • b – is the slope.

a and b can be calculated using the following formula.

Calculate Linear Regression Equation.
Calculate Linear Regression Equation.

n is the sample size.

Example:

Suppose your sample size (n) is 5 and the value of Calculate Linear Regression Equation. ΣY and ΣX is 20 and 24 respectively, what will be the linear regression equation.

We will begin by calculating for a and then b.

Calculate Linear Regression Equation.
Calculate Linear Regression Equation.

If we substitute our values of X and Y in the equation Y = a + bX we get;

Y = 0.67 + 24y

Share
Tweet
Reddit
Pinterest
Email
Prev Article
Next Article

Related Articles

How to Calculate P Value from T.
P-value is the probability that a random chance generated the …

How to Calculate P Value from T.

How to Calculate Gini Coefficient.
Gini coefficient is a measure of statistical dispersion intended to …

How to Calculate Gini Coefficient.

Popular Posts

    Categories

    learntocalculate.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com.

    How To Calculate

    Learn how to calculate anything

    Pages

    • About Us
    • Contact Us
    • Privacy Policy
    Copyright © 2025 How To Calculate

    Ad Blocker Detected

    Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

    Refresh