You are on page 1of 3

Hello, everyone!

I would like to give you some hints on the PART C questions of this weeks ilab assignment. Question (c)
asks for the line of best fit for the period and food court sales. It is basically asking you for the equation
of a line that would best fit the graph you created in Part B - Step 2.j.

Lets first take a look at the equation of a linear regression graph:

You can read about independent and dependent variables in this weeks lecture. We can ignore about
the noise term. I and E are basically x and y axis of the graph. So the goal is to find alpha and beta. This
information actually comes out of the regression analysis. See below screenshot that clearly identifies
alpha and beta.
There is actually another way of getting the equation of the graph. First, click on the graph for which you
would like to create a best fit line. Then from the ribbon, choose Chart Tools > Layout, select
Trendline and hit Linear Trendline.

This will create a trendline in your graph.


Now in order to get the equation for this trend line, first click on the trend line (not the chart, but the
line itself), right click and choose Format Trendline.

Make sure that Display Equation on chart option is checked and hit Close.

And, now the equation of the trendline is also displayed on the graph. I blurred it so that you can find
the equation yourself :-)

You might also like