diff --git a/blog/2016-05-15-the-unfair-casino/_article.md b/blog/2016-05-15-the-unfair-casino/_article.md
new file mode 100644
index 0000000..d4362bd
--- /dev/null
+++ b/blog/2016-05-15-the-unfair-casino/_article.md
@@ -0,0 +1,15 @@
+Title: The Unfair Casino
+Date: 2016-05-15
+Category: Blog
+Tags: casino, probability, em, machine learning, simulated annealing
+Authors: Bradlee Speice
+Summary: Trying to figure out how exactly two dice are loaded in a cheating casino
+[//]: <> "Modified: "
+
+{% notebook 2016-5-15-the-unfair-casino.ipynb %}
+
+
+
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook.ipynb b/blog/2016-05-15-the-unfair-casino/_notebook.ipynb
new file mode 100644
index 0000000..ed00df1
--- /dev/null
+++ b/blog/2016-05-15-the-unfair-casino/_notebook.ipynb
@@ -0,0 +1,719 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Or, how to get thrown out of a casino because you're a mathematician.\n",
+ "\n",
+ "---\n",
+ "\n",
+ "In the ongoing eternal cycle of mathematicians asking generally useless questions about probability, I dreamt up another one. The scenario is as follows:\n",
+ "\n",
+ "**You're playing a game with two die, and you do not get to see what the outcome of the die are on each roll. All you get to see is their sum. Given an arbitrarily long list of the sum of two rolls, can you determine if one or both die are loaded, and what those loadings are?**\n",
+ "\n",
+ "# Proving we can detect cheating\n",
+ "\n",
+ "My first question is simply, is this possible? There's a lot of trivial cases that make it obvious that there's cheating going on. But there are some edge cases that might give us more difficulty. First though, let's get a picture of what the fair distribution looks like. In principle, we can only detect cheating if the distribution of the fair die differs from the distribution of the loaded die."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAEKCAYAAAA8QgPpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHVRJREFUeJzt3X20XX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6sJp1+/8GFpE8A22xf3c72PVNAym75dcCVtq+vO58aHQcslPRT4GvA2yVdUXNO\nddkMbLL9/XL9OoqC0o/eCfzU9mO2nwG+Abyl5pzqNiRpBoCkAeCRmvOplaQzKYa+2/5h0TMFBPgK\nsM725+pOpE62L7R9mO0jKCZJb7V9Rt151aEcntgkaW7ZdAL9e2DBg8CbJO0nSRSfRb8dUDC6R74S\nOLNc/iDQTz88n/NZSDqZYth7oe2n2t1JTxQQSccBHwDeIemecrz75LrziknhPOAqSfdSHIX1yZrz\nqYXtNRQ9sHuAf6T48vhSrUl1kaSrgX8A5kp6UNKHgIuAd0kaucLFRXXm2C1jfBZ/BRwI3FJ+f17a\n1r5yImFERFTREz2QiIjovhSQiIioJAUkIiIqSQGJiIhKUkAiIqKSFJCIiKgkBSQiIipJAYmIiEr+\nP71BWn/o4C2PAAAAAElFTkSuQmCC\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import matplotlib.pyplot as plt\n",
+ "%matplotlib inline\n",
+ "\n",
+ "fair_1 = np.random.randint(1, 7, 10000)\n",
+ "fair_2 = np.random.randint(1, 7, 10000)\n",
+ "\n",
+ "pd.Series(fair_1 + fair_2).plot(kind='hist', bins=11);\n",
+ "plt.title('Fair Distribution');"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "This distribution makes sense: there are many ways to make a 7 (the most frequent observed value) and very few ways to make a 12 or 2; an important symmetry. As a special note, you can notice that the sum of two fair dice is a discrete case of the [Triangle Distribution][1], which is itself a special case of the [Irwin-Hall Distribution][2].\n",
+ "\n",
+ "# The Edge Cases\n",
+ "\n",
+ "Given that we understand how the results of two fair dice are distributed, let's see some of the interesting edge cases that come up. This will give us assurance that when a casino is cheating, it is detectable (given sufficient data). To make this as hard as possible, we will think of scenarios where the expected value of the sum of loaded dice is the same as the expected value of the sum of fair dice.\n",
+ "\n",
+ "### Edge Case 1\n",
+ "What happens when one die is biased low, and one die is biased high? That is, where:\n",
+ "\n",
+ "\\begin{align}\n",
+ "\\begin{array}{cc}\n",
+ "D_1 = \\left\\{\n",
+ "\\begin{array}{lr}\n",
+ "1 & w.p. 1/3\\\\\n",
+ "2 & w.p. 1/3\\\\\n",
+ "3 & w.p. 1/12\\\\\n",
+ "4 & w.p. 1/12\\\\\n",
+ "5 & w.p. 1/12\\\\\n",
+ "6 & w.p. 1/12\n",
+ "\\end{array}\n",
+ "\\right. &\n",
+ "D_2 = \\left\\{\n",
+ "\\begin{array}{lr}\n",
+ "1 & w.p. 1/12\\\\\n",
+ "2 & w.p. 1/12\\\\\n",
+ "3 & w.p. 1/12\\\\\n",
+ "4 & w.p. 1/12\\\\\n",
+ "5 & w.p. 1/3\\\\\n",
+ "6 & w.p. 1/3\n",
+ "\\end{array}\n",
+ "\\right. \\\\\n",
+ "\\mathbb{E}[D_1] = 2.5 & \\mathbb{E}[D_2] = 4.5\n",
+ "\\end{array}\\\\\n",
+ "\\mathbb{E}[D_1 + D_2] = 7 = \\mathbb{E}[D_{fair} + D_{fair}]\n",
+ "\\end{align}\n",
+ "\n",
+ "[1]: https://en.wikipedia.org/wiki/Triangular_distribution\n",
+ "[2]: https://en.wikipedia.org/wiki/Irwin%E2%80%93Hall_distribution"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAEMCAYAAADqG+D0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG2RJREFUeJzt3X20XXV95/H3ByJP8lB8gKsJTz6EBlrEIPGBihetgG15\n0I4RdRURdLkUBWtnRsJ0hminU+laiFgLqz5hYMAIKAothZAFV8ZpNRRJQZKBVA0QMBcfEEVYmJDP\n/LF/lxxubpJzd7LPvvecz2u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qOaw27Qg8V9IMYDfg4Zbj6Rnb3wEeHVd8ErCoLC8CTu5pUC2Z\n6FjYXmp7Q3n6XWBWN/vqiwTSSdKBwOHA99qNpFUXAv8FGPQBroOAn0m6tHTnfV7Srm0H1QbbDwMX\nAA8ADwG/tL203ahat4/tUah+hAL7tBzPVHE68M/drNhXCUTS7sA1wNmlJTJwJP0xMFpaZCqPQTUD\nmAv8ve25wBNU3RYDR9LvUP3iPgB4MbC7pHe1G9WUM+g/uJD034B1tq/sZv2+SSClWX4NcLntb7Ud\nT4uOAk6U9CPgq8Axki5rOaa2rAEetP1v5fk1VAllEP0h8CPbv7D9NPAN4HUtx9S2UUn7AkgaAh5p\nOZ5WSTqNquu76x8WfZNAgC8DK2xf1HYgbbJ9ru39bb+EapD0Ftunth1XG0r3xIOSZpeiNzG4Ewse\nAF4jaRdJojoWgzahYHyL/DrgtLL8HmCQfng+61hIOp6q2/tE2091u5O+SCCSjgLeDbxR0p2lv/v4\ntuOKKeEs4ApJy6lmYf2vluNphe1lVC2wO4F/p/ry+HyrQfWQpCuBfwFmS3pA0nuBTwFvljR2hYtP\ntRljr2zmWPwdsDtwc/n+vLirfeVEwoiIqKMvWiAREdF7SSAREVFLEkhERNSSBBIREbUkgURERC1J\nIBERUUsSSERE1JIEEhERtfx/t8CCaUQXJ5cAAAAASUVORK5CYII=\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "def unfair_die(p_vals, n):\n",
+ " x = np.random.multinomial(1, p_vals, n)\n",
+ " return x.nonzero()[1] + 1\n",
+ "\n",
+ "d1 = [1/3, 1/3, 1/12, 1/12, 1/12, 1/12]\n",
+ "d2 = [1/12, 1/12, 1/12, 1/12, 1/3, 1/3]\n",
+ "\n",
+ "x1 = unfair_die(d1, 10000)\n",
+ "x2 = unfair_die(d2, 10000)\n",
+ "\n",
+ "pd.Series(x1 + x2).plot(kind='hist', bins=11);\n",
+ "plt.title('$D_1$ biased low, $D_2$ biased high');"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "We can see that while the 7 value remains the most likely (as expected), the distribution is not so nicely shaped any more. \n",
+ "\n",
+ "**Edge Case 2:** When one die is loaded low, and one is loaded high, we've seen how we can detect them. How about when two die are loaded both low and high? That is, we have the following distribution:\n",
+ "\n",
+ "\\begin{align}\n",
+ "\\begin{array}{cc}\n",
+ "D_1 = \\left\\{\n",
+ "\\begin{array}{lr}\n",
+ "1 & w.p. 1/3\\\\\n",
+ "2 & w.p. 1/12\\\\\n",
+ "3 & w.p. 1/12\\\\\n",
+ "4 & w.p. 1/12\\\\\n",
+ "5 & w.p. 1/12\\\\\n",
+ "6 & w.p. 1/3\n",
+ "\\end{array}\n",
+ "\\right. &\n",
+ "D_2 = \\left\\{\n",
+ "\\begin{array}{lr}\n",
+ "1 & w.p. 1/3\\\\\n",
+ "2 & w.p. 1/12\\\\\n",
+ "3 & w.p. 1/12\\\\\n",
+ "4 & w.p. 1/12\\\\\n",
+ "5 & w.p. 1/12\\\\\n",
+ "6 & w.p. 1/3\n",
+ "\\end{array}\n",
+ "\\right. \\\\\n",
+ "\\mathbb{E}[D_1] = 3.5 & \\mathbb{E}[D_2] = 3.5\n",
+ "\\end{array}\\\\\n",
+ "\\mathbb{E}[D_1 + D_2] = 7 = \\mathbb{E}[D_{fair} + D_{fair}]\n",
+ "\\end{align}\n",
+ "\n",
+ "We can see even that the expected value of each individual die is the same as the fair die! However, the distribution (if we are doing this correctly) should still be skewed:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAEMCAYAAADqG+D0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGuhJREFUeJzt3X2UXXV97/H3ByIC8lAskmCigNUg4ANGDSrLdkB50Cq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EMjmo8FlpXpZcBxPS2qJaO9F7ZvsL2lPP0B\nsKCbdfVFgHSStC9wMHBTu5W06lzgvwOz/QDXfsAvJF1UhvO+JGmntotqg+37gM8C9wAbgF/ZvqHd\nqlq3l+0hqD6EAnu1XM908T7gX7qZsa8CRNIuwJXA6aUnMutI+mNgqPTIVB6z1RxgEfC/bC8CHqUa\ntph1JP0e1SfufYDnArtIOrHdqqad2f6BC0l/AWyyfVk38/dNgJRu+ZXAJba/3XY9LToUOEbST4F/\nAg6TdHHLNbVlPXCv7R+W51dSBcps9Ebgp7YftP0k8A3gdS3X1LYhSXMBJM0DHmi5nlZJOplq6Lvr\nDxZ9EyDAV4HVts9vu5A22T7L9vNtv4DqIOmNtk9qu642lOGJeyUtLE1vYPaeWHAP8BpJO0oS1Xsx\n204oGNkjvwo4uUy/B5hNHzx/572QdDTVsPcxth/vdiV9ESCSDgXeDRwu6ZYy3n1023XFtHAacKmk\nW6nOwvq7lutphe2VVD2wW4AfU/3x+FKrRfWQpMuAfwcWSrpH0nuBzwBHSBq+wsVn2qyxV8Z4L74A\n7AJcX/5+XtDVuvJFwoiIqKMveiAREdF7CZCIiKglARIREbUkQCIiopYESERE1JIAiYiIWhIgERFR\nSwIkIiJq+f8KwJfCiHKoPQAAAABJRU5ErkJggg==\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "d1 = [1/3, 1/12, 1/12, 1/12, 1/12, 1/3]\n",
+ "d2 = d1\n",
+ "\n",
+ "x1 = unfair_die(d1, 10000)\n",
+ "x2 = unfair_die(d2, 10000)\n",
+ "\n",
+ "pd.Series(x1 + x2).plot(kind='hist', bins=11)\n",
+ "plt.title(\"$D_1$ and $D_2$ biased to 1 and 6\");"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "In a very un-subtle way, we have of course made the values 2 and 12 far more likely.\n",
+ "\n",
+ "# Detection Conclusion\n",
+ "\n",
+ "There are some trivial examples of cheating that are easy to detect: whenever the expected value of the sum of two fair dice deviates from the expected value for the sum of two fair dice, we can immediately conclude that there is cheating at stake.\n",
+ "\n",
+ "The interesting edge cases occur when the expected value of the sum of loaded dice matches the expected value of the sum of fair dice. Considering the above examples (and a couple more I ran through in developing this), we have seen that in every circumstance having two unfair dice leads to a distribution of results different from the fair results.\n",
+ "\n",
+ "We can thus finally state: **just by looking at the distribution of results from this game, we can immediately conclude whether there is cheating.**"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Simulated Annealing\n",
+ "\n",
+ "What we really would like to do though, is see if there is any way to determine how exactly the dice are loaded. This is significantly more complicated, but we can borrow some algorithms from Machine Learning to figure out exactly how to perform this process. I'm using the Simulated Annealing algorithm, and I discuss why this works and why I chose it over some of the alternatives in the [justification](#Justification-of-Simulated-Annealing). If you don't care about how I set up the model and just want to see the code, check out [the actual code](#The-actual-code).\n",
+ "\n",
+ "[Simulated Annealing][3] is a variation of the [Metropolis-Hastings Algorithm][4], but the important thing for us is: Simulated Annealing allows us to quickly optimize high-dimensional problems. But what exactly are we trying to optimize? Ideally, we want a function that can tell us whether one distribution for the dice better explains the results than another distribution. This is known as the **likelihood** function.\n",
+ "\n",
+ "## Deriving the Likelihood function\n",
+ "\n",
+ "To derive our likelihood function, we want to know: **what is the probability of seeing a specific result given those hidden parameters?** This is actually a surprisingly difficult problem. While we can do a lot of calculations by hand, we need a more general solution since we will be working with very some interesting die distributions.\n",
+ "\n",
+ "We first note that the sum of two dice can take on 11 different values - 2 through 12. This implies that each individual sum follows a [Categorical distribution](https://en.wikipedia.org/wiki/Categorical_distribution). That is:\n",
+ "\n",
+ "\\begin{align}\n",
+ "\\mathcal{L(x)} = \\left\\{\n",
+ "\\begin{array}{lr}\n",
+ "p_2 & x = 2\\\\\n",
+ "p_3 & x = 3\\\\\n",
+ "\\ldots & \\\\\n",
+ "p_{11} & x = 11\\\\\n",
+ "p_{12} & x = 12\n",
+ "\\end{array}\n",
+ "\\right.\n",
+ "\\end{align}\n",
+ "\n",
+ "Where each $p_i$ is the probability of seeing that specific result. However, we need to calculate what each probability is! I'll save you the details, but [this author](http://math.stackexchange.com/a/1646360/320784) explains how to do it.\n",
+ "\n",
+ "Now, we would like to know the likelihood of our entire data-set. This is trivial:\n",
+ "\n",
+ "\\begin{align}\n",
+ "\\mathcal{L(\\mathbf{X})} &= \\prod_{i=1}^n L(x)\n",
+ "\\end{align}\n",
+ "\n",
+ "However, it's typically much easier to work with the $\\log(\\mathcal{L})$ function instead. This is critically important from a computational perspective: when you multiply so many small numbers together (i.e. the product of $L(x)$ terms) the computer suffers from rounding error; if we don't control for this, we will find that no matter the distributions we choose for each die, the \"likelihood\" will be close to zero because the computer is not precise enough.\n",
+ "\n",
+ "\\begin{align}\n",
+ "\\log(\\mathcal{L}) &= \\sum_{i=1}^n \\log(L)\n",
+ "\\end{align}\n",
+ "\n",
+ "## The process of Simulated Annealing\n",
+ "\n",
+ "The means by which we optimize our likelihood function is the simulated annealing algorithm. The way it works is as follows:\n",
+ "\n",
+ "1. Start with a random guess for the parameters we are trying to optimize. In our case we are trying to guess the distribution of two dice, and so we \"optimize\" until we have a distribution that matches the data.\n",
+ "\n",
+ "2. For each iteration of the algorithm:\n",
+ "\n",
+ " 1. Generate a new \"proposed\" set of parameters based on the current parameters -\n",
+ " i.e. slightly modify the current parameters to get a new set of parameters.\n",
+ " 2. Calculate the value of $\\log(\\mathcal{L})$ for each set of parameters. If the function value for the\n",
+ " proposed parameter set is higher than for the current, automatically switch to the new parameter set\n",
+ " and continue the next iteration.\n",
+ " 3. Given the new parameter set performs worse, determine a probability of switching to the new parameter set anyways: $\\mathcal{P}(p_{current}, p_{proposed})$\n",
+ " 4. Switch to the new parameter set with probability $\\mathcal{P}$. If you fail to switch, begin the next iteration.\n",
+ " \n",
+ "3. The algorithm is complete after we fail to make a transition $n$ times in a row.\n",
+ "\n",
+ "If everything goes according to plan, we will have a value that is close to the true distribution of each die.\n",
+ "\n",
+ "# The actual code\n",
+ "\n",
+ "We start by defining the score function. This will tell us how well the proposed die densities actually explain the results.\n",
+ "\n",
+ "[3]:https://en.wikipedia.org/wiki/Simulated_annealing\n",
+ "[4]:https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": [
+ "import numpy as np\n",
+ "from numpy import polynomial\n",
+ "\n",
+ "def density_coef(d1_density, d2_density):\n",
+ " # Calculating the probabilities of each outcome was taken\n",
+ " # from this author: http://math.stackexchange.com/a/1710392/320784\n",
+ " d1_p = polynomial.Polynomial(d1_density)\n",
+ " d2_p = polynomial.Polynomial(d2_density)\n",
+ " coefs = (d1_p * d2_p).coef\n",
+ " return coefs\n",
+ "\n",
+ "def score(x, d1_density, d2_density):\n",
+ " # We've now got the probabilities of each event, but we need\n",
+ " # to shift the array a bit so we can use the x values to actually\n",
+ " # index into it. This will allow us to do all the calculations\n",
+ " # incredibly quickly\n",
+ " coefs = density_coef(d1_density, d2_density)\n",
+ " coefs = np.hstack((0, 0, coefs))\n",
+ " return np.log(coefs[x]).sum()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Afterward, we need to write something to permute the proposal densities. We make random modifications, and eventually the best one survives."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "def permute(d1_density, d2_density):\n",
+ " # To ensure we have legitimate densities, we will randomly\n",
+ " # increase one die face probability by `change`,\n",
+ " # and decrease one by `change`.\n",
+ " # This means there are something less than (1/`change`)^12 possibilities\n",
+ " # we are trying to search over.\n",
+ " change = .01\n",
+ " \n",
+ " d1_index1, d1_index2 = np.random.randint(0, 6, 2)\n",
+ " d2_index1, d2_index2 = np.random.randint(0, 6, 2)\n",
+ " \n",
+ " # Also make sure to copy. I've had some weird aliasing issues\n",
+ " # in the past that made everything blow up.\n",
+ " new_d1 = np.float64(np.copy(d1_density))\n",
+ " new_d2 = np.float64(np.copy(d2_density))\n",
+ " \n",
+ " # While this doesn't account for the possibility that some\n",
+ " # values go negative, in practice this never happens\n",
+ " new_d1[d1_index1] += change\n",
+ " new_d1[d1_index2] -= change\n",
+ " new_d2[d2_index1] += change\n",
+ " new_d2[d2_index2] -= change\n",
+ " \n",
+ " return new_d1, new_d2"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Now we've got the main algorithm code to do. This is what brings all the pieces together."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "def optimize(data, conv_count=10, max_iter=1e4):\n",
+ " switch_failures = 0\n",
+ " iter_count = 0\n",
+ " \n",
+ " # Start with guessing fair dice\n",
+ " cur_d1 = np.repeat(1/6, 6)\n",
+ " cur_d2 = np.repeat(1/6, 6)\n",
+ " cur_score = score(data, cur_d1, cur_d2)\n",
+ " \n",
+ " # Keep track of our best guesses - may not be\n",
+ " # what we end with\n",
+ " max_score = cur_score\n",
+ " max_d1 = cur_d1\n",
+ " max_d2 = cur_d2\n",
+ " \n",
+ " # Optimization stops when we have failed to switch `conv_count`\n",
+ " # times (presumably because we have a great guess), or we reach\n",
+ " # the maximum number of iterations.\n",
+ " while switch_failures < conv_count and iter_count < max_iter:\n",
+ " iter_count += 1\n",
+ " if iter_count % (max_iter / 10) == 0:\n",
+ " print('Iteration: {}; Current score (higher is better): {}'.format(\n",
+ " iter_count, cur_score))\n",
+ " \n",
+ " new_d1, new_d2 = permute(cur_d1, cur_d2)\n",
+ " new_score = score(data, new_d1, new_d2)\n",
+ " \n",
+ " if new_score > max_score:\n",
+ " max_score = new_score\n",
+ " max_d1 = new_d1\n",
+ " max_d2 = new_d2\n",
+ " \n",
+ " if new_score > cur_score:\n",
+ " # If the new permutation beats the old one,\n",
+ " # automatically select it.\n",
+ " cur_score = new_score\n",
+ " cur_d1 = new_d1\n",
+ " cur_d2 = new_d2\n",
+ " switch_failures = 0\n",
+ " else:\n",
+ " # We didn't beat the current score, but allow\n",
+ " # for possibly switching anyways.\n",
+ " accept_prob = np.exp(new_score - cur_score)\n",
+ " coin_toss = np.random.rand()\n",
+ " if coin_toss < accept_prob:\n",
+ " # We randomly switch to the new distribution\n",
+ " cur_score = new_score\n",
+ " cur_d1 = new_d1\n",
+ " cur_d2 = new_d2\n",
+ " switch_failures = 0\n",
+ " else:\n",
+ " switch_failures += 1\n",
+ " \n",
+ " # Return both our best guess, and the ending guess\n",
+ " return max_d1, max_d2, cur_d1, cur_d2"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "And now we have finished the hard work!\n",
+ "\n",
+ "# Catching the Casino\n",
+ "\n",
+ "Let's go through a couple of scenarios and see if we can catch the casino cheating with some loaded dice. **In every scenario we start with an assumption of fair dice**, and then try our hand to figure out what the *actual* distribution was.\n",
+ "\n",
+ "## Attempt 1\n",
+ "\n",
+ "\n",
+ "The casino is using two dice that are both biased low. How well can we recover the distribution?"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Iteration: 1000; Current score (higher is better): -22147.004400281654\n",
+ "Simulated Annealing time: 0.30s\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAJZCAYAAACTE4A9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzs3XucZHV95//XGyYYL4iocSYOAopyjYawm5HERDtho4Ab\nhk2iAd31grvLL17gF10XMBcmySaRuCq6hLisSMCgBDWJZIOKrvZGY+SiQYwMMEYZhwHacPGC/iRc\nPr8/zhmsKaqn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lU91GEPZwN3AF+cv7ujdiSpia5D1zgLrzY1vEW1F/h6VX2ry16A\nK4Brk7wM/B3w20ke6LinowxmJ7493N7LIIR15TPAy1X1/ao6ATwCfKrDft5zfPj5oyRZB/xPx/0A\nkOQGBreruw6mFwMbge8k+S8G3/v/mWTaZgQlaWK6Dl0nF14d/sbZdQwWWu3S3wLPVdVdHfdBVd1R\nVedX1UUM/m4er6rrO+7pOHAkyUeHu66k2zf5vwpsSfKLGSylfiXdvLF/dCbyUeCG4ePfB7oI8P+v\npyRbGdyqvraqftxlP1X1vapaV1UXVdWFDML8b1TVVIRTSVoKnYau4czEe4unPgs83OXiqUmuAD4P\n/E6Sp4fvWdraVT9T7GbgwSQHGfz24l901UhVPcFgtu1p4DsMfqjvbtlDkoeAfwc+muTVJDcCXwI+\nm+QFBkHwS1PQ018D5wD/PHxt/03H/cxXeHtR0jLn4qiSJEkNdH17UZIkaUUwdEmSJDVg6JIkSWrA\n0CVJktSAoUuSJKkBQ5ckSVIDhi5JkqQGDF2SJEkN/B8q9aM32K8AuwAAAABJRU5ErkJggg==\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "import time\n",
+ "def simulate_casino(d1_dist, d2_dist, n=10000):\n",
+ " d1_vals = unfair_die(d1_dist, n)\n",
+ " d2_vals = unfair_die(d2_dist, n)\n",
+ " \n",
+ " start = time.perf_counter()\n",
+ " max_d1, max_d2, final_d1, final_d2 = optimize(d1_vals + d2_vals)\n",
+ " end = time.perf_counter()\n",
+ " print(\"Simulated Annealing time: {:.02f}s\".format(end - start))\n",
+ " \n",
+ " coef_range = np.arange(2, 13) - .5\n",
+ " plt.subplot(221)\n",
+ " plt.bar(coef_range, density_coef(d1_dist, d2_dist), width=1)\n",
+ " plt.title('True Distribution')\n",
+ " \n",
+ " plt.subplot(222)\n",
+ " plt.hist(d1_vals + d2_vals, bins=11)\n",
+ " plt.title('Empirical Distribution')\n",
+ " \n",
+ " plt.subplot(223)\n",
+ " plt.bar(coef_range, density_coef(max_d1, max_d2), width=1)\n",
+ " plt.title('Recovered Distribution')\n",
+ " \n",
+ " plt.gcf().set_size_inches(10, 10)\n",
+ "\n",
+ "\n",
+ "simulate_casino([2/9, 2/9, 2/9, 1/9, 1/9, 1/9],\n",
+ " [2/9, 2/9, 2/9, 1/9, 1/9, 1/9])"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Attempt 2\n",
+ "\n",
+ "The casino now uses dice that are both biased towards 1 and 6."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Simulated Annealing time: 0.08s\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAJZCAYAAACTE4A9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzs3XucZFdd7/3Pd8gBDIQQhMzIhCRyCxdF4NEhHhAbc4QB\nHpl4QRM4ouFy8ggRHvF4ElCcwSvRI0aMQaMBCQYigpB45DIgtofICRmQJEAmZLhkyHUgFwIBwUnm\nd/7Yu5Oapme6urt6VXXP5/161aur9l577VXV1au/tfbau1JVSJIkaXmtGXcDJEmSDgSGLkmSpAYM\nXZIkSQ0YuiRJkhowdEmSJDVg6JIkSWrA0KVlk+QFSf5xhPVdmeTJ/f3fTvKmEdb9G0nOGlV9kkYv\nydeTHL2f9W9M8utL3MePJrlmiXW8N8nPL6WOgbqekmT7wOMvJvmxUdTd1/fpJE8dVX3av3idrpUp\nydeBmV/efYBvA3f2y06uqrcv8/7/Bngu8K1+0dXAPwCnV9XXF1jXW4EdVfVbC9jmt4H1VfXCheyr\n3/Y44K+q6nsXuq2kvSW5GjgcuAMIXR/011X18nG2a7GS/Cjw1qo6ch/r9wDfoHue3w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O0rVn8o3Qa8UjLHoHp25EbbKwBs\n/2X7l8KxTgXOkDQKOB041OSD2/4Q+Lln9zxgZX17JXBH6Uy2N9k+Wm9+TPVt4mJ5as8DjzWVIyKi\npNJFV2ubp0qaDEwHPimb5NiHUlsuvrsIOCxpRb3kuVzSmFJhbB8CngP2U7UjOWJ7U6k8XcbbHoCq\nmAfGF87T6z7gvZIBJM0FDtjeVjJHRERTShddrSRpLLAOeKie8SqV43ZgoJ59E+1oOjsKmAG8aHsG\n8DvVUloRks6imlWaBJwHjJV0V6k8x9GWohlJTwJ/2l5TMMMYYAnwVPfuQnEiIhpRuujqp/Fqo+ol\nqnXA67bfLZkFuAGYK2kv8AZwk6RVhTMdpJqd+LzeXkdVhJVyC7DX9k+2/wbeAa4vmGfQQP3/R5E0\nAfixcB4AJC2gWq4uXZheDEwGvpL0LdV7/wtJbZsRjIg4YUoXXccar9bfOJtP1Wi1pNeAnbaXFc6B\n7SW2L7Q9heq52Wz7nsKZBoADkqbWu2ZR9iL//cBMSaepaqU+izIX9vfORK4HFtS37wVKFPD/yiRp\nDtVS9Vzbf5TMY3u77Qm2p9i+iKqYv9p2K4rTiIjhULToqmcmBpun7gDWlmyeKukG4G7gZklb6muW\n5pTK02IPAqslbaX69uIzpYLY/pRqtm0L8BXVh/ryJjNIWgN8BEyVtF/SQmApMFvSbqpCcGkLMr0A\njAU+qF/bLxXO081keTEiTnJpjhoRERHRgNLLixEREREjQoquiIiIiAak6IqIiIhoQIquiIiIiAak\n6IqIiIhoQIquiIiIiAak6IqIiIhoQIquiIiIiAb8A8MkLU5os8FyAAAAAElFTkSuQmCC\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],\n",
+ " [1/3, 1/12, 1/12, 1/12, 1/12, 1/3])"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Attempt 3\n",
+ "\n",
+ "The casino will now use one die biased towards 1 and 6, and one die towards 3 and 4."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Simulated Annealing time: 0.09s\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAJZCAYAAACTE4A9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzs3X2cZGV55//PFyb4iIgaZ+IgoCiP0RB2M5KYaCdsFHDD\nsEk0oLs+4O7yiyD8ousC5oFJskkkroouIS4rEjAoQU0i2aAiq73RGHlQESMDjFGGYYAxgE/oT8LD\n9fvjnMGaonq6urv6VHX35/169WuqzrnPfa5T03X1Vfe5z6lUFZIkSVpcu4w7AEmSpJXAokuSJKkD\nFl2SJEkdsOiSJEnqgEWXJElSByy6JEmSOmDRpUWT5JVJ/naE/d2Y5Pnt499P8t4R9v1bSc4dVX+S\nRi/Jd5Psu5P1f5rkNxe4jxcm2bLAPi5P8h8W0kdPXz+bZGPP868n+YVR9N32949JXjCq/rRz8T5d\nS1OS7wLb//MeB9wHPNguO7GqPrDI+/9z4KXAD9pFtwB/A5xVVd+dY1/vAzZV1e/NYZvfB9ZW1Qlz\n2Ve77RHAe6rqGXPdVtKOktwCPBV4AAhNDvqzqjplnHHNV5IXAu+rqr1nWP8Q8D2a47wPuA74X1V1\n6Tz29RDwrKr62hy2+Trw2qr65Dz2dwGwpap+Z67bajQc6Vqiqmr3qnpCVT0B2Ay8pGfZIwquJLuO\nOgTgD6pqD+BHgdcCPwd8OsmjRrmjRYh9+x8GSQtXNPnnCT05qPOCK0lXf88KeG6bew8ALgTOSfLb\n8+xrRouQ+zRmFl3LQ9qfHy5oTr9dkuT9Sb4NvCLJ+5L8Tk+bI9pPTdufr03yl0m+keSfkrxumJ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EIE53eV2z4Q2kz8NUu+3jPcHbk01W1C6Cq3q2qH3bc1jnALyRZCXwQ\neK3lyavq34D/Gdu9Bfja8PHXgN/puqeqeryqfjLc/A8G3yburJ+hrwBfbNWHJHWp69A1szdPTbIe\n2ADs77aTUz+UZuXiu0uAN5PsGi557khyXlfNVNVrwF8BrzC4HclbVfV4V/2M+EhVHYdBmAc+0nE/\n434f+IcuG0hyI3C0qp7tsg9JaqXr0DWTkpwP7AHuGM54ddXHDcDx4exbmI2bzq4ErgQeqKorgR8z\nWErrRJIPM5hVuhi4ADg/yee66ucMZiU0k+RPgRNV9XCHPZwH3A18aXR3R+1IUhNdh65Jbrza1HCJ\nag/w9ar6Vpe9ANcANyZ5Cfg74LeS7O64p1cZzE58e7i9h0EI68pngJeq6gdVdRJ4FPhUh/285/jw\n3x8lyRrgvzvuB4AktzBYru46mF4KrAe+m+Q/GXz2v5Nk1mYEJWlqug5dp268OvzG2U0MbrTapb8F\nnq+qezvug6q6u6rWVdVHGfzePFFVN3fc03HgaJKPD3ddS7cX+b8CbEzygQxupX4t3VzYPz4T+Rhw\ny/Dx7wFdBPj/01OSTQyWqm+sqne67Keqvl9Va6rqo1V1CYMw/2tVNRPhVJIWQqehazgz8d7NU58D\nHuny5qlJrgE+D/x2kmeG1yxt6qqfGXY78FCSAwy+vfjnXTVSVU8ymG17Bvgugx/qO1r2kORh4N+B\njyd5JcmtwJeBzyZ5gUEQ/PIM9PTXwPnAPw/f23/TcT+jCpcXJS1x3hxVkiSpga6XFyVJkpYFQ5ck\nSVIDhi5JkqQGDF2SJEkNGLokSZIaMHRJkiQ1YOiSJElqwNAlSZLUwP8CHn/r6AGrAPcAAAAASUVO\nRK5CYII=\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],\n",
+ " [1/12, 1/12, 1/3, 1/3, 1/12, 1/12])"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Attempt 4\n",
+ "\n",
+ "We'll now finally go to a fair casino to make sure that we can still recognize a positive result."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Simulated Annealing time: 0.02s\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAJZCAYAAACTE4A9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzs3XucZHV95//XGyZ4BUSNM3G4eeOaKGGTkVzthEQBNwyb\nRAO6iwE3yy+K8NOsAcyFMdkkoKuiIZhlRQJGJHhJxA0qstqJxiigEogMMkYZYIAmgKLoT+Ty+f1x\nTmNNUT1d3V19qrvn9Xw86jFV53zP93yqpurTn/qe7zmVqkKSJEmLa4dxByBJkrQ9sOiSJEnqgEWX\nJElSByy6JEmSOmDRJUmS1AGLLkmSpA5YdGnRJDk2yd+PsL8bkvxMe/+Pk7x7hH3/fpJzRtWfpNFL\n8u0ke29j/TuT/N4C9/GCJLcssI/LkvyXhfTR09fPJtnY8/jrSX5xFH23/f1rkp8fVX/atnidruUp\nybeB6f+8JwD3Aw+1y06oqvct8v7/GngJ8L120U3AR4Azq+rbc+zrPcCmqvqjOWzzx8Daqjp+Lvtq\ntz0UeFdVPWOu20raWpKbgKcBDwKhyUF/VVUnjTOu+UryAuA9VbXnDOsfBr5D8zzvB64B/ndVXTKP\nfT0MPLuqvjaHbb4OvLKqPjmP/Z0P3FJVfzjXbTUajnQtU1W1c1XtUlW7AJuBF/cse1TBlWTHUYcA\n/ElV7Qr8MPBK4OeATyd5zCh3tAixT/9hkLRwRZN/dunJQZ0XXEm6+ntWwHPb3LsvcAFwdpI/mGdf\nM1qE3Kcxs+haGdLefrCgOfx2cZKLktwLvDz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BXQT4/9dTkm0MblV/oqp+02U/VfWzqtpQVadW1dsZhPnfr6qZCKeS\ntBI6DV3DmYmXNk99ALi5y81Tk3wI+DTwx0nuG65Z2tZVPzPsUuCbSfYy+OnFv+mqkaq6i8Fs233A\nTxh8U9/dsock3wJ+BLwzyWNJLgK+AHwsyUMMguAXZqCnvwNOBP51+Ln99x33M6rw9qKkNc7NUSVJ\nkhro+vaiJEnSXDB0SZIkNWDokiRJasDQJUmS1IChS5IkqQFDlyRJUgOGLkmSpAYMXZIkSQ38H58i\nhoSz1PA0AAAAAElFTkSuQmCC\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "simulate_casino(np.repeat(1/6, 6), np.repeat(1/6, 6))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Attempt 5\n",
+ "\n",
+ "We've so far been working with a large amount of data - 10,000 data points. Can we now scale things back to only 250 throws? We'll start with two dice biased high."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Iteration: 1000; Current score (higher is better): -551.6995384525453\n",
+ "Iteration: 2000; Current score (higher is better): -547.7803673440676\n",
+ "Iteration: 3000; Current score (higher is better): -547.9805613193807\n",
+ "Iteration: 4000; Current score (higher is better): -546.7574874775273\n",
+ "Iteration: 5000; Current score (higher is better): -549.5798007672656\n",
+ "Iteration: 6000; Current score (higher is better): -545.0354060154496\n",
+ "Iteration: 7000; Current score (higher is better): -550.1134504086606\n",
+ "Iteration: 8000; Current score (higher is better): -549.9306537114975\n",
+ "Iteration: 9000; Current score (higher is better): -550.7075182119111\n",
+ "Iteration: 10000; Current score (higher is better): -549.400679551826\n",
+ "Simulated Annealing time: 1.94s\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEU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Vg6JIkSWrA0CVJktSAoUuSJKkBQ5ckSVIDhi5JkqQG/gdFMjKH5D5DewAAAABJRU5ErkJggg==\n",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "simulate_casino([1/9, 1/9, 1/9, 2/9, 2/9, 2/9],\n",
+ " [1/9, 1/9, 1/9, 2/9, 2/9, 2/9],\n",
+ " n=250)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "The results are surprisingly good. While the actual optimization process took much longer to finish than in the other examples, we still have a very good guess. As a caveat though: the recovered distribution tends to overfit the data. That is, if the data doesn't fit the underlying distribution well, the model will also fail.\n",
+ "\n",
+ "# Conclusion\n",
+ "\n",
+ "Given the results above, we can see that we have indeed come up with a very good algorithm to determine the distribution of two dice given their results. As a benefit, we have even seen that results come back very quickly; it's not uncommon for the optimization to converge within a tenth of a second.\n",
+ "\n",
+ "Additionally, we have seen that the algorithm can intuit the distribution even when there is not much data. While the final example shows that we can 'overfit' on the dataset, we can still get valuable information from a relatively small dataset.\n",
+ "\n",
+ "We can declare at long last: **the mathematicians have again triumphed over the casino**.\n",
+ "\n",
+ "---"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Justification of Simulated Annealing\n",
+ "\n",
+ "## Why Simulated Annealing?\n",
+ "\n",
+ "So why even use an algorithm with a fancy title like Simulated Annealing? First of all, because the title is sexy. Second of all, because this is a reasonably complicated problem to try and solve. We have a parameter space where each value $p_{ij} \\in (0, 1); i, j \\in \\{1, \\ldots, 6\\}$, for a total of 12 different variables we are trying to optimize over. Additionally, given a 12-dimensional function we are trying to optimize, simulated annealing makes sure that we don't fall into a local minimum.\n",
+ "\n",
+ "## Why not something else?\n",
+ "\n",
+ "This is a fair question. There are two classes of algorithms that can also be used to solve this problem: [Non-linear optimization](https://en.wikipedia.org/wiki/Nonlinear_programming) methods, and the [EM algorithm](https://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm).\n",
+ "\n",
+ "1. I chose not to use non-linear optimization simply because I'm a bit concerned that it will trap me in a local maximum. Instead of running multiple different optimizations from different starting points, I can just use simulated annealing to take that into account. In addition, throughout the course of testing the simulated annealing code converged *incredibly* quickly - far more quickly than any non-linear solver would be able to accomplish. \n",
+ "\n",
+ "2. The EM Algorithm was originally what I intended to write this blog post with. Indeed, the post was inspired by the [crooked casino](http://web.stanford.edu/class/stats366/hmmR2.html) example which uses the EM algorithm to solve it. However, after modeling the likelihood function I realized that the algebra would very quickly get out of hand. Trying to compute all the polynomial terms would not be fun, which would be needed to actually optimize for each parameter. So while the EM algorithm would likely be much faster in raw speed terms, the amount of time needed to program and verify it meant that I was far better off using a different method for optimization."
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.5.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook.md b/blog/2016-05-15-the-unfair-casino/_notebook.md
new file mode 100644
index 0000000..2c2029a
--- /dev/null
+++ b/blog/2016-05-15-the-unfair-casino/_notebook.md
@@ -0,0 +1,497 @@
+Or, how to get thrown out of a casino because you're a mathematician.
+
+---
+
+In the ongoing eternal cycle of mathematicians asking generally useless questions about probability, I dreamt up another one. The scenario is as follows:
+
+**You're playing a game with two die, and you do not get to see what the outcome of the die are on each roll. All you get to see is their sum. Given an arbitrarily long list of the sum of two rolls, can you determine if one or both die are loaded, and what those loadings are?**
+
+# Proving we can detect cheating
+
+My first question is simply, is this possible? There's a lot of trivial cases that make it obvious that there's cheating going on. But there are some edge cases that might give us more difficulty. First though, let's get a picture of what the fair distribution looks like. In principle, we can only detect cheating if the distribution of the fair die differs from the distribution of the loaded die.
+
+
+```python
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+%matplotlib inline
+
+fair_1 = np.random.randint(1, 7, 10000)
+fair_2 = np.random.randint(1, 7, 10000)
+
+pd.Series(fair_1 + fair_2).plot(kind='hist', bins=11);
+plt.title('Fair Distribution');
+```
+
+
+
+![png](_notebook_files/_notebook_1_0.png)
+
+
+
+This distribution makes sense: there are many ways to make a 7 (the most frequent observed value) and very few ways to make a 12 or 2; an important symmetry. As a special note, you can notice that the sum of two fair dice is a discrete case of the [Triangle Distribution][1], which is itself a special case of the [Irwin-Hall Distribution][2].
+
+# The Edge Cases
+
+Given that we understand how the results of two fair dice are distributed, let's see some of the interesting edge cases that come up. This will give us assurance that when a casino is cheating, it is detectable (given sufficient data). To make this as hard as possible, we will think of scenarios where the expected value of the sum of loaded dice is the same as the expected value of the sum of fair dice.
+
+### Edge Case 1
+What happens when one die is biased low, and one die is biased high? That is, where:
+
+\begin{align}
+\begin{array}{cc}
+D_1 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/3\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/12
+\end{array}
+\right. &
+D_2 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/12\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/3\\
+6 & w.p. 1/3
+\end{array}
+\right. \\
+\mathbb{E}[D_1] = 2.5 & \mathbb{E}[D_2] = 4.5
+\end{array}\\
+\mathbb{E}[D_1 + D_2] = 7 = \mathbb{E}[D_{fair} + D_{fair}]
+\end{align}
+
+[1]: https://en.wikipedia.org/wiki/Triangular_distribution
+[2]: https://en.wikipedia.org/wiki/Irwin%E2%80%93Hall_distribution
+
+
+```python
+def unfair_die(p_vals, n):
+ x = np.random.multinomial(1, p_vals, n)
+ return x.nonzero()[1] + 1
+
+d1 = [1/3, 1/3, 1/12, 1/12, 1/12, 1/12]
+d2 = [1/12, 1/12, 1/12, 1/12, 1/3, 1/3]
+
+x1 = unfair_die(d1, 10000)
+x2 = unfair_die(d2, 10000)
+
+pd.Series(x1 + x2).plot(kind='hist', bins=11);
+plt.title('$D_1$ biased low, $D_2$ biased high');
+```
+
+
+
+![png](_notebook_files/_notebook_3_0.png)
+
+
+
+We can see that while the 7 value remains the most likely (as expected), the distribution is not so nicely shaped any more.
+
+**Edge Case 2:** When one die is loaded low, and one is loaded high, we've seen how we can detect them. How about when two die are loaded both low and high? That is, we have the following distribution:
+
+\begin{align}
+\begin{array}{cc}
+D_1 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/3
+\end{array}
+\right. &
+D_2 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/3
+\end{array}
+\right. \\
+\mathbb{E}[D_1] = 3.5 & \mathbb{E}[D_2] = 3.5
+\end{array}\\
+\mathbb{E}[D_1 + D_2] = 7 = \mathbb{E}[D_{fair} + D_{fair}]
+\end{align}
+
+We can see even that the expected value of each individual die is the same as the fair die! However, the distribution (if we are doing this correctly) should still be skewed:
+
+
+```python
+d1 = [1/3, 1/12, 1/12, 1/12, 1/12, 1/3]
+d2 = d1
+
+x1 = unfair_die(d1, 10000)
+x2 = unfair_die(d2, 10000)
+
+pd.Series(x1 + x2).plot(kind='hist', bins=11)
+plt.title("$D_1$ and $D_2$ biased to 1 and 6");
+```
+
+
+
+![png](_notebook_files/_notebook_5_0.png)
+
+
+
+In a very un-subtle way, we have of course made the values 2 and 12 far more likely.
+
+# Detection Conclusion
+
+There are some trivial examples of cheating that are easy to detect: whenever the expected value of the sum of two fair dice deviates from the expected value for the sum of two fair dice, we can immediately conclude that there is cheating at stake.
+
+The interesting edge cases occur when the expected value of the sum of loaded dice matches the expected value of the sum of fair dice. Considering the above examples (and a couple more I ran through in developing this), we have seen that in every circumstance having two unfair dice leads to a distribution of results different from the fair results.
+
+We can thus finally state: **just by looking at the distribution of results from this game, we can immediately conclude whether there is cheating.**
+
+# Simulated Annealing
+
+What we really would like to do though, is see if there is any way to determine how exactly the dice are loaded. This is significantly more complicated, but we can borrow some algorithms from Machine Learning to figure out exactly how to perform this process. I'm using the Simulated Annealing algorithm, and I discuss why this works and why I chose it over some of the alternatives in the [justification](#Justification-of-Simulated-Annealing). If you don't care about how I set up the model and just want to see the code, check out [the actual code](#The-actual-code).
+
+[Simulated Annealing][3] is a variation of the [Metropolis-Hastings Algorithm][4], but the important thing for us is: Simulated Annealing allows us to quickly optimize high-dimensional problems. But what exactly are we trying to optimize? Ideally, we want a function that can tell us whether one distribution for the dice better explains the results than another distribution. This is known as the **likelihood** function.
+
+## Deriving the Likelihood function
+
+To derive our likelihood function, we want to know: **what is the probability of seeing a specific result given those hidden parameters?** This is actually a surprisingly difficult problem. While we can do a lot of calculations by hand, we need a more general solution since we will be working with very some interesting die distributions.
+
+We first note that the sum of two dice can take on 11 different values - 2 through 12. This implies that each individual sum follows a [Categorical distribution](https://en.wikipedia.org/wiki/Categorical_distribution). That is:
+
+\begin{align}
+\mathcal{L(x)} = \left\{
+\begin{array}{lr}
+p_2 & x = 2\\
+p_3 & x = 3\\
+\ldots & \\
+p_{11} & x = 11\\
+p_{12} & x = 12
+\end{array}
+\right.
+\end{align}
+
+Where each $p_i$ is the probability of seeing that specific result. However, we need to calculate what each probability is! I'll save you the details, but [this author](http://math.stackexchange.com/a/1646360/320784) explains how to do it.
+
+Now, we would like to know the likelihood of our entire data-set. This is trivial:
+
+\begin{align}
+\mathcal{L(\mathbf{X})} &= \prod_{i=1}^n L(x)
+\end{align}
+
+However, it's typically much easier to work with the $\log(\mathcal{L})$ function instead. This is critically important from a computational perspective: when you multiply so many small numbers together (i.e. the product of $L(x)$ terms) the computer suffers from rounding error; if we don't control for this, we will find that no matter the distributions we choose for each die, the "likelihood" will be close to zero because the computer is not precise enough.
+
+\begin{align}
+\log(\mathcal{L}) &= \sum_{i=1}^n \log(L)
+\end{align}
+
+## The process of Simulated Annealing
+
+The means by which we optimize our likelihood function is the simulated annealing algorithm. The way it works is as follows:
+
+1. Start with a random guess for the parameters we are trying to optimize. In our case we are trying to guess the distribution of two dice, and so we "optimize" until we have a distribution that matches the data.
+
+2. For each iteration of the algorithm:
+
+ 1. Generate a new "proposed" set of parameters based on the current parameters -
+ i.e. slightly modify the current parameters to get a new set of parameters.
+ 2. Calculate the value of $\log(\mathcal{L})$ for each set of parameters. If the function value for the
+ proposed parameter set is higher than for the current, automatically switch to the new parameter set
+ and continue the next iteration.
+ 3. Given the new parameter set performs worse, determine a probability of switching to the new parameter set anyways: $\mathcal{P}(p_{current}, p_{proposed})$
+ 4. Switch to the new parameter set with probability $\mathcal{P}$. If you fail to switch, begin the next iteration.
+
+3. The algorithm is complete after we fail to make a transition $n$ times in a row.
+
+If everything goes according to plan, we will have a value that is close to the true distribution of each die.
+
+# The actual code
+
+We start by defining the score function. This will tell us how well the proposed die densities actually explain the results.
+
+[3]:https://en.wikipedia.org/wiki/Simulated_annealing
+[4]:https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm
+
+
+```python
+import numpy as np
+from numpy import polynomial
+
+def density_coef(d1_density, d2_density):
+ # Calculating the probabilities of each outcome was taken
+ # from this author: http://math.stackexchange.com/a/1710392/320784
+ d1_p = polynomial.Polynomial(d1_density)
+ d2_p = polynomial.Polynomial(d2_density)
+ coefs = (d1_p * d2_p).coef
+ return coefs
+
+def score(x, d1_density, d2_density):
+ # We've now got the probabilities of each event, but we need
+ # to shift the array a bit so we can use the x values to actually
+ # index into it. This will allow us to do all the calculations
+ # incredibly quickly
+ coefs = density_coef(d1_density, d2_density)
+ coefs = np.hstack((0, 0, coefs))
+ return np.log(coefs[x]).sum()
+```
+
+Afterward, we need to write something to permute the proposal densities. We make random modifications, and eventually the best one survives.
+
+
+```python
+def permute(d1_density, d2_density):
+ # To ensure we have legitimate densities, we will randomly
+ # increase one die face probability by `change`,
+ # and decrease one by `change`.
+ # This means there are something less than (1/`change`)^12 possibilities
+ # we are trying to search over.
+ change = .01
+
+ d1_index1, d1_index2 = np.random.randint(0, 6, 2)
+ d2_index1, d2_index2 = np.random.randint(0, 6, 2)
+
+ # Also make sure to copy. I've had some weird aliasing issues
+ # in the past that made everything blow up.
+ new_d1 = np.float64(np.copy(d1_density))
+ new_d2 = np.float64(np.copy(d2_density))
+
+ # While this doesn't account for the possibility that some
+ # values go negative, in practice this never happens
+ new_d1[d1_index1] += change
+ new_d1[d1_index2] -= change
+ new_d2[d2_index1] += change
+ new_d2[d2_index2] -= change
+
+ return new_d1, new_d2
+```
+
+Now we've got the main algorithm code to do. This is what brings all the pieces together.
+
+
+```python
+def optimize(data, conv_count=10, max_iter=1e4):
+ switch_failures = 0
+ iter_count = 0
+
+ # Start with guessing fair dice
+ cur_d1 = np.repeat(1/6, 6)
+ cur_d2 = np.repeat(1/6, 6)
+ cur_score = score(data, cur_d1, cur_d2)
+
+ # Keep track of our best guesses - may not be
+ # what we end with
+ max_score = cur_score
+ max_d1 = cur_d1
+ max_d2 = cur_d2
+
+ # Optimization stops when we have failed to switch `conv_count`
+ # times (presumably because we have a great guess), or we reach
+ # the maximum number of iterations.
+ while switch_failures < conv_count and iter_count < max_iter:
+ iter_count += 1
+ if iter_count % (max_iter / 10) == 0:
+ print('Iteration: {}; Current score (higher is better): {}'.format(
+ iter_count, cur_score))
+
+ new_d1, new_d2 = permute(cur_d1, cur_d2)
+ new_score = score(data, new_d1, new_d2)
+
+ if new_score > max_score:
+ max_score = new_score
+ max_d1 = new_d1
+ max_d2 = new_d2
+
+ if new_score > cur_score:
+ # If the new permutation beats the old one,
+ # automatically select it.
+ cur_score = new_score
+ cur_d1 = new_d1
+ cur_d2 = new_d2
+ switch_failures = 0
+ else:
+ # We didn't beat the current score, but allow
+ # for possibly switching anyways.
+ accept_prob = np.exp(new_score - cur_score)
+ coin_toss = np.random.rand()
+ if coin_toss < accept_prob:
+ # We randomly switch to the new distribution
+ cur_score = new_score
+ cur_d1 = new_d1
+ cur_d2 = new_d2
+ switch_failures = 0
+ else:
+ switch_failures += 1
+
+ # Return both our best guess, and the ending guess
+ return max_d1, max_d2, cur_d1, cur_d2
+```
+
+And now we have finished the hard work!
+
+# Catching the Casino
+
+Let's go through a couple of scenarios and see if we can catch the casino cheating with some loaded dice. **In every scenario we start with an assumption of fair dice**, and then try our hand to figure out what the *actual* distribution was.
+
+## Attempt 1
+
+
+The casino is using two dice that are both biased low. How well can we recover the distribution?
+
+
+```python
+import time
+def simulate_casino(d1_dist, d2_dist, n=10000):
+ d1_vals = unfair_die(d1_dist, n)
+ d2_vals = unfair_die(d2_dist, n)
+
+ start = time.perf_counter()
+ max_d1, max_d2, final_d1, final_d2 = optimize(d1_vals + d2_vals)
+ end = time.perf_counter()
+ print("Simulated Annealing time: {:.02f}s".format(end - start))
+
+ coef_range = np.arange(2, 13) - .5
+ plt.subplot(221)
+ plt.bar(coef_range, density_coef(d1_dist, d2_dist), width=1)
+ plt.title('True Distribution')
+
+ plt.subplot(222)
+ plt.hist(d1_vals + d2_vals, bins=11)
+ plt.title('Empirical Distribution')
+
+ plt.subplot(223)
+ plt.bar(coef_range, density_coef(max_d1, max_d2), width=1)
+ plt.title('Recovered Distribution')
+
+ plt.gcf().set_size_inches(10, 10)
+
+
+simulate_casino([2/9, 2/9, 2/9, 1/9, 1/9, 1/9],
+ [2/9, 2/9, 2/9, 1/9, 1/9, 1/9])
+```
+
+ Iteration: 1000; Current score (higher is better): -22147.004400281654
+ Simulated Annealing time: 0.30s
+
+
+
+
+![png](_notebook_files/_notebook_14_1.png)
+
+
+
+## Attempt 2
+
+The casino now uses dice that are both biased towards 1 and 6.
+
+
+```python
+simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],
+ [1/3, 1/12, 1/12, 1/12, 1/12, 1/3])
+```
+
+ Simulated Annealing time: 0.08s
+
+
+
+
+![png](_notebook_files/_notebook_16_1.png)
+
+
+
+## Attempt 3
+
+The casino will now use one die biased towards 1 and 6, and one die towards 3 and 4.
+
+
+```python
+simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],
+ [1/12, 1/12, 1/3, 1/3, 1/12, 1/12])
+```
+
+ Simulated Annealing time: 0.09s
+
+
+
+
+![png](_notebook_files/_notebook_18_1.png)
+
+
+
+## Attempt 4
+
+We'll now finally go to a fair casino to make sure that we can still recognize a positive result.
+
+
+```python
+simulate_casino(np.repeat(1/6, 6), np.repeat(1/6, 6))
+```
+
+ Simulated Annealing time: 0.02s
+
+
+
+
+![png](_notebook_files/_notebook_20_1.png)
+
+
+
+## Attempt 5
+
+We've so far been working with a large amount of data - 10,000 data points. Can we now scale things back to only 250 throws? We'll start with two dice biased high.
+
+
+```python
+simulate_casino([1/9, 1/9, 1/9, 2/9, 2/9, 2/9],
+ [1/9, 1/9, 1/9, 2/9, 2/9, 2/9],
+ n=250)
+```
+
+ Iteration: 1000; Current score (higher is better): -551.6995384525453
+ Iteration: 2000; Current score (higher is better): -547.7803673440676
+ Iteration: 3000; Current score (higher is better): -547.9805613193807
+ Iteration: 4000; Current score (higher is better): -546.7574874775273
+ Iteration: 5000; Current score (higher is better): -549.5798007672656
+ Iteration: 6000; Current score (higher is better): -545.0354060154496
+ Iteration: 7000; Current score (higher is better): -550.1134504086606
+ Iteration: 8000; Current score (higher is better): -549.9306537114975
+ Iteration: 9000; Current score (higher is better): -550.7075182119111
+ Iteration: 10000; Current score (higher is better): -549.400679551826
+ Simulated Annealing time: 1.94s
+
+
+
+
+![png](_notebook_files/_notebook_22_1.png)
+
+
+
+The results are surprisingly good. While the actual optimization process took much longer to finish than in the other examples, we still have a very good guess. As a caveat though: the recovered distribution tends to overfit the data. That is, if the data doesn't fit the underlying distribution well, the model will also fail.
+
+# Conclusion
+
+Given the results above, we can see that we have indeed come up with a very good algorithm to determine the distribution of two dice given their results. As a benefit, we have even seen that results come back very quickly; it's not uncommon for the optimization to converge within a tenth of a second.
+
+Additionally, we have seen that the algorithm can intuit the distribution even when there is not much data. While the final example shows that we can 'overfit' on the dataset, we can still get valuable information from a relatively small dataset.
+
+We can declare at long last: **the mathematicians have again triumphed over the casino**.
+
+---
+
+# Justification of Simulated Annealing
+
+## Why Simulated Annealing?
+
+So why even use an algorithm with a fancy title like Simulated Annealing? First of all, because the title is sexy. Second of all, because this is a reasonably complicated problem to try and solve. We have a parameter space where each value $p_{ij} \in (0, 1); i, j \in \{1, \ldots, 6\}$, for a total of 12 different variables we are trying to optimize over. Additionally, given a 12-dimensional function we are trying to optimize, simulated annealing makes sure that we don't fall into a local minimum.
+
+## Why not something else?
+
+This is a fair question. There are two classes of algorithms that can also be used to solve this problem: [Non-linear optimization](https://en.wikipedia.org/wiki/Nonlinear_programming) methods, and the [EM algorithm](https://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm).
+
+1. I chose not to use non-linear optimization simply because I'm a bit concerned that it will trap me in a local maximum. Instead of running multiple different optimizations from different starting points, I can just use simulated annealing to take that into account. In addition, throughout the course of testing the simulated annealing code converged *incredibly* quickly - far more quickly than any non-linear solver would be able to accomplish.
+
+2. The EM Algorithm was originally what I intended to write this blog post with. Indeed, the post was inspired by the [crooked casino](http://web.stanford.edu/class/stats366/hmmR2.html) example which uses the EM algorithm to solve it. However, after modeling the likelihood function I realized that the algebra would very quickly get out of hand. Trying to compute all the polynomial terms would not be fun, which would be needed to actually optimize for each parameter. So while the EM algorithm would likely be much faster in raw speed terms, the amount of time needed to program and verify it meant that I was far better off using a different method for optimization.
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_14_1.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_14_1.png
new file mode 100644
index 0000000..d47c41f
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_14_1.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_16_1.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_16_1.png
new file mode 100644
index 0000000..d37f05b
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_16_1.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_18_1.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_18_1.png
new file mode 100644
index 0000000..f27e668
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_18_1.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_1_0.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_1_0.png
new file mode 100644
index 0000000..2206d3f
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_1_0.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_20_1.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_20_1.png
new file mode 100644
index 0000000..3ad1f11
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_20_1.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_22_1.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_22_1.png
new file mode 100644
index 0000000..8566bf7
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_22_1.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_3_0.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_3_0.png
new file mode 100644
index 0000000..0f20b92
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_3_0.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_5_0.png b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_5_0.png
new file mode 100644
index 0000000..9ebd3e1
Binary files /dev/null and b/blog/2016-05-15-the-unfair-casino/_notebook_files/_notebook_5_0.png differ
diff --git a/blog/2016-05-15-the-unfair-casino/index.mdx b/blog/2016-05-15-the-unfair-casino/index.mdx
new file mode 100644
index 0000000..a9cf07e
--- /dev/null
+++ b/blog/2016-05-15-the-unfair-casino/index.mdx
@@ -0,0 +1,487 @@
+---
+slug: 2016/05/the-unfair-casino
+title: The unfair casino
+date: 2016-05-15 12:00:00
+authors: [bspeice]
+tags: []
+---
+
+Trying to figure out how exactly two dice are loaded in a cheating casino.
+
+
+
+In the ongoing eternal cycle of mathematicians asking generally useless questions about probability, I dreamt up another one. The scenario is as follows:
+
+**You're playing a game with two die, and you do not get to see what the outcome of the die are on each roll. All you get to see is their sum. Given an arbitrarily long list of the sum of two rolls, can you determine if one or both die are loaded, and what those loadings are?**
+
+## Proving we can detect cheating
+
+My first question is simply, is this possible? There's a lot of trivial cases that make it obvious that there's cheating going on. But there are some edge cases that might give us more difficulty. First though, let's get a picture of what the fair distribution looks like. In principle, we can only detect cheating if the distribution of the fair die differs from the distribution of the loaded die.
+
+
+```python
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+%matplotlib inline
+
+fair_1 = np.random.randint(1, 7, 10000)
+fair_2 = np.random.randint(1, 7, 10000)
+
+pd.Series(fair_1 + fair_2).plot(kind='hist', bins=11);
+plt.title('Fair Distribution');
+```
+
+![png](_notebook_files/_notebook_1_0.png)
+
+This distribution makes sense: there are many ways to make a 7 (the most frequent observed value) and very few ways to make a 12 or 2; an important symmetry. As a special note, you can notice that the sum of two fair dice is a discrete case of the [Triangle Distribution][1], which is itself a special case of the [Irwin-Hall Distribution][2].
+
+## The Edge Cases
+
+Given that we understand how the results of two fair dice are distributed, let's see some of the interesting edge cases that come up. This will give us assurance that when a casino is cheating, it is detectable (given sufficient data). To make this as hard as possible, we will think of scenarios where the expected value of the sum of loaded dice is the same as the expected value of the sum of fair dice.
+
+### Edge Case 1
+What happens when one die is biased low, and one die is biased high? That is, where:
+
+$$
+\begin{align*}
+\begin{array}{cc}
+D_1 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/3\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/12
+\end{array}
+\right. &
+D_2 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/12\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/3\\
+6 & w.p. 1/3
+\end{array}
+\right. \\
+\mathbb{E}[D_1] = 2.5 & \mathbb{E}[D_2] = 4.5
+\end{array}\\
+\mathbb{E}[D_1 + D_2] = 7 = \mathbb{E}[D_{fair} + D_{fair}]
+\end{align*}
+$$
+
+[1]: https://en.wikipedia.org/wiki/Triangular_distribution
+[2]: https://en.wikipedia.org/wiki/Irwin%E2%80%93Hall_distribution
+
+
+```python
+def unfair_die(p_vals, n):
+ x = np.random.multinomial(1, p_vals, n)
+ return x.nonzero()[1] + 1
+
+d1 = [1/3, 1/3, 1/12, 1/12, 1/12, 1/12]
+d2 = [1/12, 1/12, 1/12, 1/12, 1/3, 1/3]
+
+x1 = unfair_die(d1, 10000)
+x2 = unfair_die(d2, 10000)
+
+pd.Series(x1 + x2).plot(kind='hist', bins=11);
+plt.title('$D_1$ biased low, $D_2$ biased high');
+```
+
+![png](_notebook_files/_notebook_3_0.png)
+
+We can see that while the 7 value remains the most likely (as expected), the distribution is not so nicely shaped any more.
+
+### Edge Case 2
+
+When one die is loaded low, and one is loaded high, we've seen how we can detect them. How about when two die are loaded both low and high? That is, we have the following distribution:
+
+$$
+\begin{align*}
+\begin{array}{cc}
+D_1 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/3
+\end{array}
+\right. &
+D_2 = \left\{
+\begin{array}{lr}
+1 & w.p. 1/3\\
+2 & w.p. 1/12\\
+3 & w.p. 1/12\\
+4 & w.p. 1/12\\
+5 & w.p. 1/12\\
+6 & w.p. 1/3
+\end{array}
+\right. \\
+\mathbb{E}[D_1] = 3.5 & \mathbb{E}[D_2] = 3.5
+\end{array}\\
+\mathbb{E}[D_1 + D_2] = 7 = \mathbb{E}[D_{fair} + D_{fair}]
+\end{align*}
+$$
+
+We can see even that the expected value of each individual die is the same as the fair die! However, the distribution (if we are doing this correctly) should still be skewed:
+
+```python
+d1 = [1/3, 1/12, 1/12, 1/12, 1/12, 1/3]
+d2 = d1
+
+x1 = unfair_die(d1, 10000)
+x2 = unfair_die(d2, 10000)
+
+pd.Series(x1 + x2).plot(kind='hist', bins=11)
+plt.title("$D_1$ and $D_2$ biased to 1 and 6");
+```
+
+![png](_notebook_files/_notebook_5_0.png)
+
+In a very un-subtle way, we have of course made the values 2 and 12 far more likely.
+
+## Detection Conclusion
+
+There are some trivial examples of cheating that are easy to detect: whenever the expected value of the sum of two fair dice deviates from the expected value for the sum of two fair dice, we can immediately conclude that there is cheating at stake.
+
+The interesting edge cases occur when the expected value of the sum of loaded dice matches the expected value of the sum of fair dice. Considering the above examples (and a couple more I ran through in developing this), we have seen that in every circumstance having two unfair dice leads to a distribution of results different from the fair results.
+
+We can thus finally state: **just by looking at the distribution of results from this game, we can immediately conclude whether there is cheating.**
+
+## Simulated Annealing
+
+What we really would like to do though, is see if there is any way to determine how exactly the dice are loaded. This is significantly more complicated, but we can borrow some algorithms from Machine Learning to figure out exactly how to perform this process. I'm using the Simulated Annealing algorithm, and I discuss why this works and why I chose it over some of the alternatives in the [justification](#Justification-of-Simulated-Annealing). If you don't care about how I set up the model and just want to see the code, check out [the actual code](#The-actual-code).
+
+[Simulated Annealing][3] is a variation of the [Metropolis-Hastings Algorithm][4], but the important thing for us is: Simulated Annealing allows us to quickly optimize high-dimensional problems. But what exactly are we trying to optimize? Ideally, we want a function that can tell us whether one distribution for the dice better explains the results than another distribution. This is known as the **likelihood** function.
+
+### Deriving the Likelihood function
+
+To derive our likelihood function, we want to know: **what is the probability of seeing a specific result given those hidden parameters?** This is actually a surprisingly difficult problem. While we can do a lot of calculations by hand, we need a more general solution since we will be working with very some interesting die distributions.
+
+We first note that the sum of two dice can take on 11 different values - 2 through 12. This implies that each individual sum follows a [Categorical distribution](https://en.wikipedia.org/wiki/Categorical_distribution). That is:
+
+$$
+\begin{align*}
+\mathcal{L(x)} = \left\{
+\begin{array}{lr}
+p_2 & x = 2\\
+p_3 & x = 3\\
+\ldots & \\
+p_{11} & x = 11\\
+p_{12} & x = 12
+\end{array}
+\right.
+\end{align*}
+$$
+
+Where each $p_i$ is the probability of seeing that specific result. However, we need to calculate what each probability is! I'll save you the details, but [this author](http://math.stackexchange.com/a/1646360/320784) explains how to do it.
+
+Now, we would like to know the likelihood of our entire data-set. This is trivial:
+
+$$
+\begin{align*}
+\mathcal{L(\mathbf{X})} &= \prod_{i=1}^n L(x)
+\end{align*}
+$$
+
+However, it's typically much easier to work with the $\log(\mathcal{L})$ function instead. This is critically important from a computational perspective: when you multiply so many small numbers together (i.e. the product of $L(x)$ terms) the computer suffers from rounding error; if we don't control for this, we will find that no matter the distributions we choose for each die, the "likelihood" will be close to zero because the computer is not precise enough.
+
+$$
+\begin{align*}
+\log(\mathcal{L}) &= \sum_{i=1}^n \log(L)
+\end{align*}
+$$
+
+### The process of Simulated Annealing
+
+The means by which we optimize our likelihood function is the simulated annealing algorithm. The way it works is as follows:
+
+1. Start with a random guess for the parameters we are trying to optimize. In our case we are trying to guess the distribution of two dice, and so we "optimize" until we have a distribution that matches the data.
+
+2. For each iteration of the algorithm:
+
+ 1. Generate a new "proposed" set of parameters based on the current parameters -
+ i.e. slightly modify the current parameters to get a new set of parameters.
+ 2. Calculate the value of $\log(\mathcal{L})$ for each set of parameters. If the function value for the
+ proposed parameter set is higher than for the current, automatically switch to the new parameter set
+ and continue the next iteration.
+ 3. Given the new parameter set performs worse, determine a probability of switching to the new parameter set anyways: $\mathcal{P}(p_{current}, p_{proposed})$
+ 4. Switch to the new parameter set with probability $\mathcal{P}$. If you fail to switch, begin the next iteration.
+
+3. The algorithm is complete after we fail to make a transition $n$ times in a row.
+
+If everything goes according to plan, we will have a value that is close to the true distribution of each die.
+
+## The actual code
+
+We start by defining the score function. This will tell us how well the proposed die densities actually explain the results.
+
+[3]:https://en.wikipedia.org/wiki/Simulated_annealing
+[4]:https://en.wikipedia.org/wiki/Metropolis%E2%80%93Hastings_algorithm
+
+
+```python
+import numpy as np
+from numpy import polynomial
+
+def density_coef(d1_density, d2_density):
+ # Calculating the probabilities of each outcome was taken
+ # from this author: http://math.stackexchange.com/a/1710392/320784
+ d1_p = polynomial.Polynomial(d1_density)
+ d2_p = polynomial.Polynomial(d2_density)
+ coefs = (d1_p * d2_p).coef
+ return coefs
+
+def score(x, d1_density, d2_density):
+ # We've now got the probabilities of each event, but we need
+ # to shift the array a bit so we can use the x values to actually
+ # index into it. This will allow us to do all the calculations
+ # incredibly quickly
+ coefs = density_coef(d1_density, d2_density)
+ coefs = np.hstack((0, 0, coefs))
+ return np.log(coefs[x]).sum()
+```
+
+Afterward, we need to write something to permute the proposal densities. We make random modifications, and eventually the best one survives.
+
+
+```python
+def permute(d1_density, d2_density):
+ # To ensure we have legitimate densities, we will randomly
+ # increase one die face probability by `change`,
+ # and decrease one by `change`.
+ # This means there are something less than (1/`change`)^12 possibilities
+ # we are trying to search over.
+ change = .01
+
+ d1_index1, d1_index2 = np.random.randint(0, 6, 2)
+ d2_index1, d2_index2 = np.random.randint(0, 6, 2)
+
+ # Also make sure to copy. I've had some weird aliasing issues
+ # in the past that made everything blow up.
+ new_d1 = np.float64(np.copy(d1_density))
+ new_d2 = np.float64(np.copy(d2_density))
+
+ # While this doesn't account for the possibility that some
+ # values go negative, in practice this never happens
+ new_d1[d1_index1] += change
+ new_d1[d1_index2] -= change
+ new_d2[d2_index1] += change
+ new_d2[d2_index2] -= change
+
+ return new_d1, new_d2
+```
+
+Now we've got the main algorithm code to do. This is what brings all the pieces together.
+
+
+```python
+def optimize(data, conv_count=10, max_iter=1e4):
+ switch_failures = 0
+ iter_count = 0
+
+ # Start with guessing fair dice
+ cur_d1 = np.repeat(1/6, 6)
+ cur_d2 = np.repeat(1/6, 6)
+ cur_score = score(data, cur_d1, cur_d2)
+
+ # Keep track of our best guesses - may not be
+ # what we end with
+ max_score = cur_score
+ max_d1 = cur_d1
+ max_d2 = cur_d2
+
+ # Optimization stops when we have failed to switch `conv_count`
+ # times (presumably because we have a great guess), or we reach
+ # the maximum number of iterations.
+ while switch_failures < conv_count and iter_count < max_iter:
+ iter_count += 1
+ if iter_count % (max_iter / 10) == 0:
+ print('Iteration: {}; Current score (higher is better): {}'.format(
+ iter_count, cur_score))
+
+ new_d1, new_d2 = permute(cur_d1, cur_d2)
+ new_score = score(data, new_d1, new_d2)
+
+ if new_score > max_score:
+ max_score = new_score
+ max_d1 = new_d1
+ max_d2 = new_d2
+
+ if new_score > cur_score:
+ # If the new permutation beats the old one,
+ # automatically select it.
+ cur_score = new_score
+ cur_d1 = new_d1
+ cur_d2 = new_d2
+ switch_failures = 0
+ else:
+ # We didn't beat the current score, but allow
+ # for possibly switching anyways.
+ accept_prob = np.exp(new_score - cur_score)
+ coin_toss = np.random.rand()
+ if coin_toss < accept_prob:
+ # We randomly switch to the new distribution
+ cur_score = new_score
+ cur_d1 = new_d1
+ cur_d2 = new_d2
+ switch_failures = 0
+ else:
+ switch_failures += 1
+
+ # Return both our best guess, and the ending guess
+ return max_d1, max_d2, cur_d1, cur_d2
+```
+
+And now we have finished the hard work!
+
+## Catching the Casino
+
+Let's go through a couple of scenarios and see if we can catch the casino cheating with some loaded dice. **In every scenario we start with an assumption of fair dice**, and then try our hand to figure out what the *actual* distribution was.
+
+### Attempt 1
+
+
+The casino is using two dice that are both biased low. How well can we recover the distribution?
+
+
+```python
+import time
+def simulate_casino(d1_dist, d2_dist, n=10000):
+ d1_vals = unfair_die(d1_dist, n)
+ d2_vals = unfair_die(d2_dist, n)
+
+ start = time.perf_counter()
+ max_d1, max_d2, final_d1, final_d2 = optimize(d1_vals + d2_vals)
+ end = time.perf_counter()
+ print("Simulated Annealing time: {:.02f}s".format(end - start))
+
+ coef_range = np.arange(2, 13) - .5
+ plt.subplot(221)
+ plt.bar(coef_range, density_coef(d1_dist, d2_dist), width=1)
+ plt.title('True Distribution')
+
+ plt.subplot(222)
+ plt.hist(d1_vals + d2_vals, bins=11)
+ plt.title('Empirical Distribution')
+
+ plt.subplot(223)
+ plt.bar(coef_range, density_coef(max_d1, max_d2), width=1)
+ plt.title('Recovered Distribution')
+
+ plt.gcf().set_size_inches(10, 10)
+
+
+simulate_casino([2/9, 2/9, 2/9, 1/9, 1/9, 1/9],
+ [2/9, 2/9, 2/9, 1/9, 1/9, 1/9])
+```
+
+```
+ Iteration: 1000; Current score (higher is better): -22147.004400281654
+ Simulated Annealing time: 0.30s
+```
+
+![png](_notebook_files/_notebook_14_1.png)
+
+### Attempt 2
+
+The casino now uses dice that are both biased towards 1 and 6.
+
+```python
+simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],
+ [1/3, 1/12, 1/12, 1/12, 1/12, 1/3])
+```
+
+```
+ Simulated Annealing time: 0.08s
+```
+
+![png](_notebook_files/_notebook_16_1.png)
+
+### Attempt 3
+
+The casino will now use one die biased towards 1 and 6, and one die towards 3 and 4.
+
+
+```python
+simulate_casino([1/3, 1/12, 1/12, 1/12, 1/12, 1/3],
+ [1/12, 1/12, 1/3, 1/3, 1/12, 1/12])
+```
+
+```
+ Simulated Annealing time: 0.09s
+```
+
+![png](_notebook_files/_notebook_18_1.png)
+
+### Attempt 4
+
+We'll now finally go to a fair casino to make sure that we can still recognize a positive result.
+
+```python
+simulate_casino(np.repeat(1/6, 6), np.repeat(1/6, 6))
+```
+
+```
+ Simulated Annealing time: 0.02s
+```
+
+![png](_notebook_files/_notebook_20_1.png)
+
+### Attempt 5
+
+We've so far been working with a large amount of data - 10,000 data points. Can we now scale things back to only 250 throws? We'll start with two dice biased high.
+
+
+```python
+simulate_casino([1/9, 1/9, 1/9, 2/9, 2/9, 2/9],
+ [1/9, 1/9, 1/9, 2/9, 2/9, 2/9],
+ n=250)
+```
+
+```
+ Iteration: 1000; Current score (higher is better): -551.6995384525453
+ Iteration: 2000; Current score (higher is better): -547.7803673440676
+ Iteration: 3000; Current score (higher is better): -547.9805613193807
+ Iteration: 4000; Current score (higher is better): -546.7574874775273
+ Iteration: 5000; Current score (higher is better): -549.5798007672656
+ Iteration: 6000; Current score (higher is better): -545.0354060154496
+ Iteration: 7000; Current score (higher is better): -550.1134504086606
+ Iteration: 8000; Current score (higher is better): -549.9306537114975
+ Iteration: 9000; Current score (higher is better): -550.7075182119111
+ Iteration: 10000; Current score (higher is better): -549.400679551826
+ Simulated Annealing time: 1.94s
+```
+
+![png](_notebook_files/_notebook_22_1.png)
+
+The results are surprisingly good. While the actual optimization process took much longer to finish than in the other examples, we still have a very good guess. As a caveat though: the recovered distribution tends to overfit the data. That is, if the data doesn't fit the underlying distribution well, the model will also fail.
+
+## Conclusion
+
+Given the results above, we can see that we have indeed come up with a very good algorithm to determine the distribution of two dice given their results. As a benefit, we have even seen that results come back very quickly; it's not uncommon for the optimization to converge within a tenth of a second.
+
+Additionally, we have seen that the algorithm can intuit the distribution even when there is not much data. While the final example shows that we can 'overfit' on the dataset, we can still get valuable information from a relatively small dataset.
+
+We can declare at long last: **the mathematicians have again triumphed over the casino**.
+
+---
+
+## Justification of Simulated Annealing
+
+### Why Simulated Annealing?
+
+So why even use an algorithm with a fancy title like Simulated Annealing? First of all, because the title is sexy. Second of all, because this is a reasonably complicated problem to try and solve. We have a parameter space where each value $p_{ij} \in (0, 1); i, j \in \{1, \ldots, 6\}$, for a total of 12 different variables we are trying to optimize over. Additionally, given a 12-dimensional function we are trying to optimize, simulated annealing makes sure that we don't fall into a local minimum.
+
+### Why not something else?
+
+This is a fair question. There are two classes of algorithms that can also be used to solve this problem: [Non-linear optimization](https://en.wikipedia.org/wiki/Nonlinear_programming) methods, and the [EM algorithm](https://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm).
+
+1. I chose not to use non-linear optimization simply because I'm a bit concerned that it will trap me in a local maximum. Instead of running multiple different optimizations from different starting points, I can just use simulated annealing to take that into account. In addition, throughout the course of testing the simulated annealing code converged *incredibly* quickly - far more quickly than any non-linear solver would be able to accomplish.
+
+2. The EM Algorithm was originally what I intended to write this blog post with. Indeed, the post was inspired by the [crooked casino](http://web.stanford.edu/class/stats366/hmmR2.html) example which uses the EM algorithm to solve it. However, after modeling the likelihood function I realized that the algebra would very quickly get out of hand. Trying to compute all the polynomial terms would not be fun, which would be needed to actually optimize for each parameter. So while the EM algorithm would likely be much faster in raw speed terms, the amount of time needed to program and verify it meant that I was far better off using a different method for optimization.
\ No newline at end of file