Regression Analysis in Excel
Regression Analysis in Excel
Regression Analysis in Excel
the basics
In statistical modeling, regression analysis is used to estimate
the relationships between two or more variables:
Independent variables (aka explanatory variables,
or predictors) are the factors that might influence the dependent
variable.
y = bx + a + ε
Where:
y = bx + a
For our data set, where y is the number of umbrellas sold and x
is an average monthly rainfall, our linear regression formula
goes as follows:
Y=0.45*x-19.074
0.45*82-19.074=17.8
In a similar manner, you can find out how many umbrellas are
going to be sold with any other monthly rainfall (x variable) you
specify.
.
. Now, we need to draw the least squares regression line. To
have it done, right click on any point and choose Add
Trendline… from the context menu.
Important note! In the regression graph, the independent
variable should always be on the X axis and the dependent
variable on the Y axis. If your graph is plotted in the reverse
order, swap the columns in your worksheet, and then draw the
chart anew. If you are not allowed to rearrange the source data,
then you can switch the X and Y axes directly in a chart.
Microsoft Excel has a few statistical functions that can help you
to do linear regression analysis such as LINEST, SLOPE,
INTERCPET, and CORREL.
=LINEST(C2:C25, B2:B25)
y = bx + a
=INTERCEPT(C2:C25, B2:B25)
=SLOPE(C2:C25, B2:B25)
=CORREL(B2:B25,C2:C25)