answersLogoWhite

0


Best Answer

Linear regression looks at the relationship between two variables, X and Y.

The regression line is the "best" line though some data you that you or someone else has collected.

You want to find the best slope and the best y intercept to be able to plot the line that will allow you to predict Y given a value of X.

This is usually done by minimizing the sum of the squares.

Regression Equation is y = a + bx

Slope(b) = (NΣXY - (ΣX)(ΣY)) / (NΣX2 - (ΣX)2)

Intercept(a) = (ΣY - b(ΣX)) / N

In the equation above:

X and Y are the variables given as an ordered pair (X,Y)

b = The slope of the regression line

a = The intercept point of the regression line and the y axis.

N = Number of values or elements

X = First Score

Y = Second Score

ΣXY = Sum of the product of first and Second Scores

ΣX = Sum of First Scores

ΣY = Sum of Second Scores

ΣX2 = Sum of square First Scores

Once you find the slope and the intercept, you plot it the same way you plot any other line!

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you plot linear regression line?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Statistics

Is the line of best fit the same as linear regression?

Linear Regression is a method to generate a "Line of Best fit" yes you can use it, but it depends on the data as to accuracy, standard deviation, etc. there are other types of regression like polynomial regression.


What is true about the y-intercept in the linear regression model?

The value depends on the slope of the line.


How is linear regression used?

Linear regression can be used in statistics in order to create a model out a dependable scalar value and an explanatory variable. Linear regression has applications in finance, economics and environmental science.


How do you plot regression line?

Linear regression looks at the relationship between two variables, X and Y. The regression line is the "best" line though some data you that you or someone else has collected. You want to find the best slope and the best y intercept to be able to plot the line that will allow you to predict Y given a value of X. This is usually done by minimizing the sum of the squares. Regression Equation is y = a + bx Slope(b) = (NΣXY - (ΣX)(ΣY)) / (NΣX2 - (ΣX)2) Intercept(a) = (ΣY - b(ΣX)) / N In the equation above: X and Y are the variables given as an ordered pair (X,Y) b = The slope of the regression line a = The intercept point of the regression line and the y axis. N = Number of values or elements X = First Score Y = Second Score ΣXY = Sum of the product of first and Second Scores ΣX = Sum of First Scores ΣY = Sum of Second Scores ΣX2 = Sum of square First Scores Once you find the slope and the intercept, you plot it the same way you plot any other line!


How does a linear regression allow us to better estimate trends costs and other factors in complex situations?

You question is how linear regression improves estimates of trends. Generally trends are used to estimate future costs, but they may also be used to compare one product to another. I think first you must define what linear regression is, and what the alternative forecast methods exists. Linear regression does not necessary lead to improved estimates, but it has advantages over other estimation procesures. Linear regression is a mathematical procedure that calculates a "best fit" line through the data. It is called a best fit line because the parameters of the line will minimizes the sum of the squared errors (SSE). The error is the difference between the calculated dependent variable value (usually y values) and actual their value. One can spot data trends and simply draw a line through them, and consider this a good fit of the data. If you are interested in forecasting, there are many methods available. One can use more complex forecasting methods, including time series analysis (ARIMA methods, weighted linear regression, or multivariant regression or stochastic modeling for forecasting. The advantages to linear regression are that a) it will provide a single slope or trend, b) the fit of the data should be unbiased, c) the fit minimizes error and d) it will be consistent. If in your example, the errors from regression from fitting the cost data can be considered random deviations from the trend, then the fitted line will be unbiased. Linear regression is consistent because anyone who calculates the trend from the same dataset will have the same value. Linear regression will be precise but that does not mean that they will be accurate. I hope this answers your question. If not, perhaps you can ask an additional question with more specifics.

Related questions

Given a linear regression equation of equals 20 - 1.5x where will the point 3 15.5 fall with respect to the regression line?

on the lineGiven a linear regression equation of = 20 - 1.5x, where will the point (3, 15) fall with respect to the regression line?Below the line


Is the line of best fit the same as linear regression?

Linear Regression is a method to generate a "Line of Best fit" yes you can use it, but it depends on the data as to accuracy, standard deviation, etc. there are other types of regression like polynomial regression.


What is the regression line that is superimposed on the scatter plot?

trur


What is a regression line that is superimposed on the scatter plot?

trur


What is another name for line of best fit?

linear regression


What is a regression line that is superimposed on a scatter plot?

It guarantees that the slope and intercept are minimized.


When doing linear regression if the correlation coefficient is positive the slope of the line is negative?

False.


What is true about the y-intercept in the linear regression model?

The value depends on the slope of the line.


What is the process of finding line of best fit called?

Finding the line of best fit is called linear regression.


Is a curved line on a scatter plot still considered linear?

No, it's not consider as a linear scatter plot, because, it's non-linear.


What is Full Regression?

Regression :The average Linear or Non linear relationship between Variables.


What is non- linear plot?

A linear line is one that is straight with no curves. A non-linear line would not be perfectly straight and can have many curves.