Forecasting Iowa State Liquor Sales
“Here’s to alchohol, the cause of, and solution to, all life’s problems.” - Homer Jay Simpson (and Iowans, probably)
Iowans bought over $284 million dollars worth of liquor in 2015
…Can we predict how much they will spend on liquor in 2016?
Government policymakers often have the unenviable job of determining how to apportion state income to fund an endless number of competing programs. Sometimes, they may even have to determine how to fund those programs in the future without knowing how much money they will have to apportion. For this commonly occuring case, policymakers are wise to leverage the skills, intuitions and dashingly good looks of their data scientists.
(For those interested in seeing a mess of code, visit my GitHub page here: https://github.com/Tucker-Allen/Iowa_State_Liquor_Sales)
Overview
Iowa is one of 19 states to control the sale and distribution of liquor at the state government level.
Source: https://en.wikipedia.org/wiki/Alcoholic_beverage_control_state
All spirits within Iowa are sold by the Iowa Alcoholic Beverages Division to privately owned retailers, while leveraging a flat general sales tax of 6.0%
This also means that every liquor transaction at every store in the state of Iowa is meticulously recorded. With over 2 million transactions recorded every year, a data scientist might construct some pretty well-informed predictions.
Fun Facts
- Average Transaction in 2015: $130
- Median Transaction in 2015: $70
- Maximum Transaction in 2015: $106,000
- ~10% of 2015 sales generated from just 5 stores
Top 5 Selling Stores in 2015
Store Number | City | Sale (Dollars) | |||
---|---|---|---|---|---|
2633 | DES MOINES | 9839393.08 | |||
4829 | DES MOINES | 8742779.31 | |||
2512 | IOWA CITY | 4155665.47 | |||
3385 | CEDAR RAPIDS | 3947176.01 | |||
3420 | WINDSOR HEIGHTS | 3422351.55 |
The Nerd Stuff
The Data:
- Over 2.7 million rows of data, each representing a single transaction, with data such as:
- Store Number
- Item Sold
- Total Sale ($)
- …
- Span: Jan 1st, 2015 to March 31st, 2016
The Cleaning:
- Lots of it. Can see at https://github.com/Tucker-Allen/Iowa_State_Liquor_Sales)
Features Engineered:
- Profit (Sale - State Cost)
- Population of city where transaction was recorded
Python Packages Used:
- Numpy
- Pandas
- Matplotlib
- Sklearn
Models Explored:
- LinearRegression
- Ridge
- RidgeCV
Predictive Model Performance and Predictions
…zoomed in a bit to the lower left…
Individual Store Annual Sale predictions based on Q1 data
- There are very clearly a few ‘high’ selling stores, that sell above and beyond more liquor than the average store. These might be wholesale-oriented store locations, and not necessarily geared towards the ‘average consumer’. Being able to classify these store types at the beginning may increase the accuracy of our predictive model.
Conclusion
Prediction:
$289,740,820 in total 2016 Iowa State liquor sales
(1.9% increase over 2015)
- I haven’t had the time to check my prediction (since we have do have 2016 sales data and all), but feel free to reach out let me know how right/wrong I was if you know!