BookmarkSubscribeRSS Feed
Jade_SAS
Pyrite | Level 9

Hi All,

 

    I'm forecasting next week visit (11/21/2017-11/27/2017) based on the visit history data I have, and I am considering holidays (1 is holiday and 0 is not) in the forecasting.

    I have several questions of the Aggregation and Accumulation:

    1) What's the difference between Aggregation and Accumulation in the Forecasting?

    2) In my example below, the hierarchy is Total----Location---Department.

     For the dependent variables "Visits" I think I will choose "Sum of Values" for Aggregation and Accumulation

     But I am not sure about the independent variable "Holidays", what should I choose for Aggregation and Accumulation of variable "Holidays" ? Maybe choose "Average of Values"  (See details in attachments)? Any comments are welcome!

 

The data structure I have is below:

   

DateLocationdepartmentVisitsHolidays
1/1/2010Achild301
1/1/2010AAdult501
1/1/2010Bchild201
1/1/2010BAdult301
1/2/2010Achild2000
1/2/2010AAdult3000
1/2/2010Bchild2000
1/2/2010BAdult3500
1/3/2010Achild1000
1/3/2010AAdult3000
1/3/2010Bchild1000
1/3/2010BAdult3500
Values going onValues going onValues going onValues going onValues going on
11/20/2017Achild1000
11/20/2017AAdult2000
11/20/2017Bchild1000
11/20/2017BAdult2500
11/21/2017Achild.0
11/21/2017AAdult.0
11/21/2017Bchild.0
11/21/2017BAdult.0
11/22/2017Achild.0
11/22/2017AAdult.0
11/22/2017Bchild.0
11/22/2017BAdult.0
11/23/2017Achild.1
11/23/2017AAdult.1
11/23/2017Bchild.1
11/23/2017BAdult.1
11/24/2017Achild.0
11/24/2017AAdult.0
11/24/2017Bchild.0
11/24/2017BAdult.0
11/25/2017Achild.0
11/25/2017AAdult.0
11/25/2017Bchild.0
11/25/2017BAdult.0
11/26/2017Achild.0
11/26/2017AAdult.0
11/26/2017Bchild.0
11/26/2017BAdult.0
11/27/2017Achild.0
11/27/2017AAdult.0
11/27/2017Bchild.0
11/27/2017BAdult.0

  

 

Thanks,

Jade

3 REPLIES 3
mitrov
SAS Employee

Hi Jade,

 

By ACCUMULATION it is intended how the data is "aggregated" over time. For example, if you have data at daily interval, and you convert it to weekly interval, you are accumulating your data.

 

"Aggregation" is the aggregation over the levels of your hierarchy. "Total", is the aggregation of all the levels below.

 

Typically you choose aggregation=accumulation=total for the dependent variable, and aggregation=accumulation=average for the independent variable, but it is the context that dictates what to use. In the case of holidays I would chose average. 

 

Are you using Forecast Studio? I suppose you are aware that Forecast Server can generate the holiday variables for you.

 

Cheers

Michele

Puwang
Obsidian | Level 7

1) In short:

    >> Aggregation is aggregating along the hierarchy, i.e., from low level to high level in the hierarchy

    >> Accumulation refers to accumulate by time domain, i.e., from higher frequency (daily) to lower frequency (weekly).  It is not dependent on whether you have a hierarchy

    In details, accumulation can be either of the following:

    • the process of converting a time series that has no fixed interval into a time series that has a fixed interval (such as hourly or monthly)   

    • the process of converting a time series that has a fixed interval into a time series with a lower frequency time interval (such as hourly into daily)

 

2) For Holidays, if you treat it as a dummy variable, I suggest you use MIN, MAX or N to do aggregation or accumulation.

Jade_SAS
Pyrite | Level 9

Thank you Michele and Puwang!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 866 views
  • 0 likes
  • 3 in conversation