Showing posts with label WIC. Show all posts
Showing posts with label WIC. Show all posts

Monday, 19 November 2012

SNAP Analytics (2) - Purchase Patterns

Roughly 15% of the United States population receives SNAP funding to help pay for food and beverage items.  We know that when SNAP (food stamp) funding is released in each state (see SNAP Analytics (1) - Funding and spikes)  this is accompanied by significant sales spikes on some products,

If 15% of all shoppers visit your store within a 2-3 day period you should see a sales spike on  everything they buy, SNAP funded or not . So, why do we not see a spike on everything?  Why are some spikes so much bigger than others?


The chart below shows (simulated) daily point of sales data for a SNAP-responsive product in one state.  The horizontal axis shows days of the month, the vertical shows a sales 'Index' relative to the average day.  You can see that sales around the 1st and 10th of the month are roughly double what they are on other days.


If you also know that this state releases SNAP funding on the 1st and 10th of each month, you might assume that the SNAP shopper takes their newly-charged EBT card and within 2-3 days spends the lot.

A relatively high proportion of SNAP funding is spent quickly and this ties well with the idea of a "stock-up" trip.  (If you have the capability to see basket size by date, you should be able to confirm that baskets around SNAP release dates are substantially larger than otherwise.)

So why do I think that this does not represent all SNAP spending?  
Some products are just not good candidates for a once-a-month stock-up trip.  Milk for a month?  I don't think so.  Bananas seem to go soft in my house if I forget them for 1-2 days.  A month's supply of a product may take up more room that I have available in the cart, car,  refrigerator, freezer, or store cupboard.  Some of this will have to wait. 
Some products are more attractive for stock-up trips: larger sizes of frequently consumed products that are stable (on shelf, in fridge or freezer) and perhaps also with "treats" that can be purchased while there is a little extra money available.
According to the USDA, in 2011,  the average monthly SNAP benefit per household was  $284.   Remember that this is $284 spent on SNAP eligible products only:  leave out  non-food/beverage items, hot foods, ready-to-eat items, alcohol and tobacco.  Can it be done?  Yes, but its going to be tough to fit into one shopping cart or in your car or in your kitchen.   $284 is the monthly benefit for the average household of 2.1 people.  Could a family of 4 realistically buy even most of their food once a month?  Even if the SNAP shopper could buy all their food and beverage  items in one trip, they still need other grocery items, paper goods, cleaning products etc. that takes up additional space. 
Finally, the  countrywide adoption of EBT cards, rather than paper vouchers, means the SNAP shopper can spend as little as they need right now without losing any of their benefits.  (Something the similar WIC program is still working on in most states).
Despite the big spikes in sales we see for some products around SNAP funding dates, the SNAP shopper is not buying all their monthly supplies in one trip.   Some products will be much more responsive to SNAP funding than others because they fit well with the SNAP shopper's trip-type and taste preferences.

So, how do you know if your products are responsive to SNAP funding dates?    If you have access to the payment details by basket it's a slightly simpler process of querying your data and correlating across to SNAP release dates.  If you have daily point of sale data you need to build predictive models against total sales rather than SNAP specific sales (Do you need daily Point of Sale data?).  In either case, you are dealing with very large quantities of data and need the right tools and the knowledge to wield them effectively (Bringing your analytical guns to bear on Big Data, Data handling - the right tool for the job).

If you do not know which products, stores and dates will see spikes in demand how can you ensure product is on-shelf?  Ignoring SNAP may be costing you sales.

If you're ready to get started - call me.








Tuesday, 23 October 2012

Do you need daily Point of Sale data? Do you like selling more product?

Most people report on their Point of Sale data in weekly or perhaps even monthly buckets .  If you are interested in seeing a long-term trend or annual seasonality that's OK, but if you really want to know what's going on, to ensure you have product on shelf, and promotions running when your target shoppers are in store - you need daily POS data.  Don't believe me?  Let's look at an example...


I've created the data for this example so that there are no issues with confidentiality but not only does it closely represent reality, I have seen many more extreme versions of this in real data.

First let's look at 2 years of weekly Point of Sale (POS) data.  Anything interesting happening here?


I think we can say that there is no obvious seasonality, and there seems to be no trend in the data: longer term sales are neither  growing nor declining.  There appears to be no pattern to it: sales oscillate up/down in a fairly random looking manner,  sometimes, it's up or down for 2 weeks at a time, sometimes,1 , sometimes 3.  It looks like fairly random noise  - right ?

Now let's look at the same data but in daily buckets (click on the graphic to see the larger version).



There is a lot going on here!  Before you dismiss it as noise, look a little closer.  Can you see a repeating monthly pattern?  Can you see a spike in sales near the beginning of the month and another a few days later?  That's worth looking into.  How about a repeating weekly pattern: much harder to see but retail outlets generally sell more on Friday/Saturday/Sunday than on other days of the week - chances are that is causing some of the oscillation too.

Let's look at this visually for day of the week.  This chart shows sales by day of the week indexed to the "average day".



On Sundays, we see sales of almost 20% more than average, on Friday and Saturday slightly more and for the rest of the week about 80% of average.

Now, let's look at it by day of the month.



This is still showing indexes relative to the "average day" but in comparison to the day of the week visual above these spikes are big!  Clear spikes on day 1 and day 10, with increased sales for 2-3 days after each spike and perhaps a small increase just before each spike?

What could be causing such spikes?  How about SNAP? (see What drives your sales? SNAP?) ?  Or perhaps WIC a similar US government program that subsidizes food stuffs targeted at children.?  Any event distributing funds that routinely happens on a monthly calendar could cause such a problem.

Looking at these charts separately by day of the week and then by day of the month, we are trying to ignore the impact of one factor while reviewing the other.  Doing so introduces a bias into the output: by pure luck, some days of the week will coincide a little more often with the day of the month spikes and their average will increase.  (In this case, Thursday gets an extra spike day, Sunday and Tuesday are one less than average).   What we really need is a tool that can examine the impact of both variables at the same time and tease them apart cleanly.   A regression model does this quite effectively. I'll not get into how this is constructed today, let's just review a few results.

The regression model predicting sales using just the day of the week and day of the month as inputs explains 83% of the variation in this data.  That is a truly staggering result for something that a first glance looked like random noise.

The first chart below shows the daily sales data (blue) with the model prediction (yellow) on top. The model prediction  is very close to actual sales with the exception of a few troughs in sales.  To help mark these outliers, the second chart, plotted on the same time-scale shows where we have the biggest gaps between predicted and actual sales. We have 6 occasions when we have relatively large errors.  Any guesses as to what these are?



This data reflects US retail stores, which are closed, or largely empty of shoppers, at Christmas (end of December), Thanksgiving (End of November) and Easter (April).  Thanksgiving and Easter are not on fixed dates so they are not in exactly the same point on the timeline but if you were to look up the actual dates for 2010/2011 you'll find these coincide perfectly.  These are clear outliers and we can safely remove them from our data (or build a model that flags them correctly).   Removing them further improves the model fit and now we can explain 87% of the data variation in sales from the day of week and day of month.

What does this mean to you?   If your products are heavily impacted by hidden events like this, you may be losing substantial sales opportunities.  

In this case the spike days are about twice the sales volume of other days and I have seen examples that are much more extreme than this.  Even at 2 times normal sales it is likely that you did not have product on-shelf all the time during these spikes.  It's very possible you do not really know how high the spike could be.

If the Retailer's forecasting system is based on weekly buckets (and I'm betting it is), it does not know or understand that this problem exists, it only sees random noise.   But these spikes can be predicted with surprising accuracy as in the model above.  If the retailer forecasting/replenishment system cannot be fixed you will need over-rides every month to ensure product is in place before the peak: specially created seasonal profiles; forecast-adjustments; script-orders; promotional-orders; stock policy exceptions etc. every month to place inventory at the store in advance of the peak.  

If shelf planograms are built based on average sales expectations, there may be a need to increase facings for more volatile products or to add temporary positions for volatile product.  (I love this analogy for the pain that can be involved in working with averages so I just had to include it again)



Finally, consider your promotional plans.  You now know more clearly when shoppers are in the store spending money.  Promotional calendars based on a weekly plan may have your promotion kicking off just after the peak shoppers have left for the month.

My take

Aggregating point of sale data to weekly buckets, in the presence of patterns that repeat on a non-weekly basis, is a superb way of: hiding sales patterns from you; not keeping product on the shelf and losing sales.

Handling this properly means working with more data than you may be used to.  At least 7 times the volume of handling weekly data; 8 times the volume if you must also capture the weekly snapshot.

If you are dealing with programs like SNAP and WIC which vary in their implementation across the country, you will also need store level detail and, as not all products are equally sensitive to any program, you will need item level data too. This can be a lot of data - 1000 products at 1000 stores for 3 years of daily data  is just over 1 billion data points ( 1,000 * 1,000 * 1,095 ).  You will not manage this is Excel or in Access other than for very small samples of data.  

You need the right tools for the job (Data handling - the right tool for the job) a Demand Signal Repository (DSR) that can handle daily data or a very well optimized database AND enough of an analytic engine to run correlation/regression analysis against that mass of data. (Bringing your analytical guns to bear on Big Data ...).




If you're ready to get started - call me.