******These programs mostly employ Excel with Visual Basic macros. Make sure macros are enabled in your version of Excel.**

**Inventory Management**These programs are based on a rigorous inventory model which accounts for stochastic demand and which balances the expected cost of a lost sale against the expected cost of carrying stock in a periodic review framework. As such, these programs can be utilized for assortment planning. Combined with simple forecasting logic, they can be utilized for ongoing replenishment of staple SKUs. Excel and associated macros could easily be replaced by an analytical language like R or Python. Even in today's advanced analytics world, retail inventory management leaves a lot to be desired.

**Retail Inventory Turnover Optimization - Poisson Demand**

**Retail Inventory Turnover Optimization - General Gaussian Demand**

__Sudoku__My wife loves Sudoku puzzles, but they simply frustrate me. Some years ago, I decided to create a solver. My solver is based on brute-force randomization. It just flips a coin when faced with an uncertain choice, and starts over if it is stymied, but an ordinary PC is so fast that virtually any problem can be solved quickly. More sophisticated solvers are available on the web.

**Sudoku Assistant**

**Sudoku Solver**

**Miscellaneous**Weighted voting systems (including the US Electoral College) are serious business. Bible codes are not. This is not a reflection on the Bible. It is a reflection on those who purport to glean mysterious predictive "codes" from biblical text. Critics have shown that the same sort of codes can be gleaned from Moby Dick! Our program shows that a simple code ("Bible Code") results from a purely random sequence of letters using the same set-up that so-called experts use.

**Weighted Voting System Calculator**

**Bible Code (i.e. Nonsense) Simulator**

**GitHub Contributions**

**Constrained K-Means Clustering in R**

Shapley Value in R

Marketing Optimization in Python

Shapley Value in R

Marketing Optimization in Python