+ Reply to Thread
Results 1 to 5 of 5

problem with FORECAST function

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    problem with FORECAST function

    Excel 2007 on Win 7 Pro

    In brief, structure of worksheet is this:
    Col B - date (one row per day, every day)
    Col S - A number, generally trending toward zero
    Col S - function to predict when S will reach zero: =FORECAST(0,B$7:B10,S$7:S10)

    Two issues:
    First, very rarely there will be an aberration in the value of col S, which pulls the 'date to zero' very far forward - even into the past. I can manually delete these skewed values, but it seems there could be a better way to deal with this than deleting historical data.

    Second, I also have a chart with a trendline to visualize 'date to zero'. This trendline is show a zero date much further into the future than the formula in the spreadsheet. I've been relying on the chart for quite some time and just yesterday decided to look for a forumula I could put in the worksheet itself - leading me to the FORECAST function. My reading said the charting trendline uses the FORECAST function, but since I have such a discrepancy it would appear I've got apples and oranges, but don't know where to look or how to reconcile the difference.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: problem with FORECAST function

    Might need to see an example of what you mean.

    In cases where you are assuming the same linear trend (y=mx+b) with the same input data, I would expect the chart trendline and the FORECAST() function to yield the same results. If they are yielding different results, that suggests a difference in the input data or that the chart is assuming a different trendline type (polynomial, exponential, or other).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: problem with FORECAST function

    Quote Originally Posted by edstevens View Post
    Excel 2007 on Win 7 Pro
    In brief, structure of worksheet is this:
    Col B - date (one row per day, every day)
    Col S - A number, generally trending toward zero
    Col S - function to predict when S will reach zero: =FORECAST(0,B$7:B10,S$7:S10)
    [....]
    First, very rarely there will be an aberration in the value of col S, which pulls the 'date to zero' very far forward - even into the past. I can manually delete these skewed values, but it seems there could be a better way to deal with this than deleting historical data.
    First, if you want the zero intercept, it is sufficient to use the INTERCEPT function.

    Second, both INTERCEPT and FORECAST return the parameters of the best-fit linear regression line, which may or may not fit the endpoints of the actual data (B7 and B10) exactly. That is the reason for the "aberration".

    I'm in a rush to leave, and off-hand, I cannot think of a way to avoid the problem automatically, other than using just B7 and B10 with S7 and S10 to define the line. Of course, even that could result in an exaggerated date for the zero intercept.

    Quote Originally Posted by edstevens View Post
    Second, I also have a chart with a trendline to visualize 'date to zero'. This trendline is show a zero date much further into the future than the formula in the spreadsheet. [....] My reading said the charting trendline uses the FORECAST function, but since I have such a discrepancy it would appear I've got apples and oranges, but don't know where to look or how to reconcile the difference.
    Only a Microsoft implementor can tell us how chart trendlines are implemented. Anyone else is just speculating. It is "likely" that chart trendline uses the same regression that FORECAST uses. But we cannot know for sure.

    For example, it is not unusual to see discrepancies between LINEST and chart trendlines. So clearly, sometimes chart trendlines use a different method of regression, or they use different data.

    Moreover, one reason for "differences" is failing to see and use the full 15 significant digits of the coefficients in the trendline equation.

    That said, the devil is in the details. It would be helpful if you provided a concrete example -- an example Excel file with the original data.
    Last edited by joeu2004; 03-05-2015 at 11:39 PM. Reason: cosmetic

  4. #4
    Registered User
    Join Date
    04-24-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem with FORECAST function

    I apologize for the delayed response. I got pulled aside for other issues.

    It seems the best way to work this out is to upload the actual file. I've created a 'cut-down' version to eliminate all the extraneous worksheets, charts, and columns. Let's see what we can make of it.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: problem with FORECAST function

    I have not been through it thoroughly. A few observations:

    1) LINEST() function using column C for known_y's and column B for known_x's returns the same parameters as the chart trendline. Solve this y=mx+b for x when y=0 yields approximately the same result as the chart trendline.
    2) LINEST() function using column B for known_y's and column C for known_x's returns same intercept as your FORECAST() function. Theoretically, x-intercept should be b/m from (1) regression and slope (dx/dy) should be 1/m from (1) regression.

    I suspect that something in those "outliers" is creating some instabilities for the regression algorithms. I'm not sure exactly how I would approach this problem, but I would suggest that you will need to consider a more careful approach to your thought process to improve the numerical stability of the regressions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert 52 Week Rolling Forecast to Monthly Forecast
    By rainintl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2014, 07:24 PM
  2. Challenging Forecast Wape - Rolling 12 Month Sum Of Orders And Forecast
    By nguyeda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 06:20 PM
  3. Replies: 4
    Last Post: 10-28-2009, 08:38 AM
  4. Replies: 0
    Last Post: 06-15-2005, 01:05 PM
  5. [SOLVED] Forecast problem
    By nfbelo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2005, 05:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1