how to use numbers to create trend line to predict future values

how to use numbers to create trend line to predict future values

Posted on Jun 3, 2014 6:40 PM

Reply
12 replies

Apr 16, 2017 2:27 AM in response to DanielDay

Hi Daniel,


The FORECAST function uses linear regression to calculate/estimate predicted values.

User uploaded file

A linear forecast is an estimate because the trend of the real data is not linear.


Examining the real data may show a trend (in this made-up example, quadratic, i.e Y=X squared)

User uploaded file

Apply that equation to calculate Y for future X values.

I realise that my data are much simpler than Mr Tim Cook's Apple sales.

Good luck with fitting an equation to those imaginary data 😉.


Regards,

Ian.

Apr 16, 2017 9:12 AM in response to Yellowbox

Hi Ian. Happy Easter. Thank you for participating.


Now, although my question has been solved in the link above, I am still keeping my mind open and trying to understand your way of doing this.


So, this is how you explained it:


1st Step: You have column A and B and C and you wanted to predict future value for A7, based on data in columns B and A. That's fair enough.


User uploaded file


2nd Step:

Now, why did you create another 2 columns (Prediction Table)? Now you lost me: Why not stick with 3 columns (3rd being Forecast)? We don't know future values. I am having difficulties replicating your steps.

User uploaded file

Apr 17, 2017 2:43 AM in response to DanielDay

Hi Daniel,

Now, why did you create another 2 columns (Prediction Table)? Now you lost me: Why not stick with 3 columns (3rd being Forecast)?

OK, three columns. This table has one Header Row and no Header Columns.

User uploaded file

Select Columns A and B and insert a Scatter Plot.

With the graph selected,

Format Panel > Series > Connection Line > Curved (for clarity; this has nothing to do with the FORECAST function).


Click on the Series within the graph to select it and Format Panel > Series > Trendline > Linear (this is what FORECAST will use to project, but it is not necessary; only shown for clarity).

User uploaded file

Show Equation (if you like, for clarity).


In the table, add more rows to contain Y forecast and enter the new X values.

User uploaded file

Formula in C14 (and Fill Down) =

FORECAST(A14,B,A)


Click on the graph to select it and Edit Data References

User uploaded file

Drag the white circle (Fill Handle) down and right to include all three columns and all rows

User uploaded file

The green data points are a linear projection (forecast) of the data, not a projection of the connection line.

If I were Tim Cook looking at Apple sales, I would not pay much attention to this forecast 👿.


Thank you for this opportunity to explore the FORECAST function. We learn by doing.


Regards,

Ian.

Jun 4, 2014 12:56 AM in response to jettenfarm

Hi jettenfarm,


Plot your real data, add a trendline and show equation


User uploaded file


Use the equation to calculate predicted Y values from future X values. Formula in B2 of the Prediction table (and Fill Down):


=(0.9618×A2)+0.1681


From y = 0.9618x + 0.1681 the trendline equation


User uploaded file


Here I have calculated, then plotted the predictions. To get them on the same graph, click on Edit Data References and select to include them.


Regards,

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to use numbers to create trend line to predict future values

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.