Tarea 6 Reloaded

parent dd690293
......@@ -1672,6 +1672,56 @@
"utilice custom_rand_var para simular la distribución de una ruleta de casino y grafique las probabilidades para cada número.\n"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.47368421052631576\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA3gAAAFNCAYAAABSRs15AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAIABJREFUeJzt3Xm8JFV99/HPFwYZkB1GZB8DGMQFfCS4gUHccEHQIJEogqLEJMYlMWryuOCOPnGLhhhUAlEjqKAgirjigqKyCYi7gCAIgwoCilH4PX/UGem5dN/pe2f63pmaz/v16tetrjpV9avTp+v2r8+p6lQVkiRJkqTV31rzHYAkSZIkaeUwwZMkSZKknjDBkyRJkqSeMMGTJEmSpJ4wwZMkSZKknjDBkyRJkqSeMMGTJCDJUUk+MMt1D0/y1WmWn5HksGFlk9yc5E9ms93lxLRPkqtmUP6sJM+ezb7WZEn+LcnRK7D+rNvdcrY767Yz5vbfneQVQ+Y/JcmZSdZdSfuZUTuWJMGC+Q5AkmYryeXAlsBtwC3AGcDzqurm+Yxrqqp67DTLNpjLWLTyJHkgsBvwiPmOZa5V1XOnzktyf+DZwJOq6ndzH9WqLcli4DJgnar6w/xGI6nP7MGTtLrbvyVJ/wfYA3j51ALpeL7rsSTz8YXlYuBpfljvVNUFVfWYqvrNfMciSWsyP/BI6oWq+hldD9594I9DDl+f5GzgN8CfJNk6yWlJfpnkR0meM2UzC5OclOSmJOcn2W3pgiQvS/LjtuzSJE+asm6SvCvJjUm+l+QRAwtGDn9MUkl2atObt/h+neSbwI5Tyr4jyZVt+XlJ9h5Ytl6S45P8KsmlwJ9NV19JHt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RJfbIin8+04uzBW3V8h66nbmTyVlX/ZyXs5/R0NwG5C923UattcreiquoD8x2DJEmStDLZgydJkiRJPeFNViRJkiSpJ0zwJEmSJKknTPAkSZIkqSdM8CRJvZXkwCSVZJc52t/iJH81F/uSJGkYEzxJUp8dQvfjuofM0f4W0/2gryRJ88IET5LUS0k2APYCjgCe2ubtk+TLST6Z5PtJ3p1krbbs5oF1D0pyfJtelOTkJN9qj4e2+X+e5ML2uCDJhsDRwN5t3otaj95XkpzfHg+Z21qQJK1p/B08SVJfHQB8uqp+kOQXSR7Q5u8J7ApcAXwaeDLw0Wm28w7gbVX11STbA2cC9wJeDPxdVZ3dkslbgZcBL66qJwAkWR94VFXdmmRn4EPAHiv9SCVJakzwJEl9dQhdcgZwYnt+OvDNqvoJQJIP0fXyTZfgPRLYNcnS5xu1hO5s4K1JPgicUlVXDZRZah3gXUl2B24D7rnCRyVJ0jRM8CRJvZNkM2Bf4L5JClgbKOCT7e+gmvIXYOHA9FrAg6rq1inrHZ3kk8DjgLOTPGZIKC8CrgV2a9uZug1JklYqr8GTJPXRQcD7q2qHqlpcVdsBlwF7A3smuUe79u4v6W7CAnBtknu1+U8a2NZngL9f+qT1xpFkx6q6uKreBHwL2AW4CdhwYN2NgWuq6nbgULpEU5KkiTHBkyT10SHAx6bMO7nN/xbwLuC7dEnf0nIvoxvC+TXgmoH1ng/skeSiJJcCz23zX5jkkiQXAb8HzgAuAm5L8u0kLwKOAQ5L8m26BPCWlXuYkiQtK1VTR6pIktRPSfZh4CYokiT1jT14kiRJktQT9uBJkiRJUk/YgydJkiRJPWGCJ0mSJEk9YYInSZIkST1hgidJkiRJPWGCJ0mSJEk9YYInSZIkST3x/wG5duoSusF76AAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 1080x360 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from scipy import stats \n",
"plt.rcParams['figure.figsize']=[15, 5]\n",
"\n",
"numeros = list(range(1,37,1))\n",
"prob=[]\n",
"for n in numeros:\n",
" prob.append(1/len(numeros))\n",
"\n",
"custom_rand_var = stats.rv_discrete(name='custom', values = (numeros,prob))\n",
"\n",
"apuesta = ['rojo/negro', 'par/impar', 'docena', 'columna', 'linea', 'cuadro', 'calle', 'caballo', 'pleno']\n",
"prob = [ 18/38, 18/38, 12/38, 12/38, 6/38, 4/38, 3/38, 2/38, 1/38] \n",
"\n",
"plt.subplots(1,1)\n",
"plt.bar(roulette_bet, np.array(prob)*100, color='r')\n",
"plt.xlabel('Apuesta')\n",
"plt.ylabel('Prob ganar(%)')\n",
"plt.title('Probabilidad de ganar según la elección de apuesta')\n",
"plt.xticks(apuesta)\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment