Skip to content

Commit

Permalink
Fixing the goblin problem
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Nov 15, 2019
1 parent 0e5ccb4 commit 3ae71c0
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 61 deletions.
68 changes: 49 additions & 19 deletions 01_cookie.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,22 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"# If we're running on Colab, install empiricaldist\n",
"# https://pypi.org/project/empiricaldist/\n",
"\n",
"import sys\n",
"IN_COLAB = 'google.colab' in sys.modules\n",
"\n",
"if IN_COLAB:\n",
" !pip install empiricaldist"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"\n",
Expand All @@ -45,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -61,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -78,7 +92,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -94,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -110,7 +124,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -126,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -142,7 +156,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -158,7 +172,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -174,7 +188,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -191,7 +205,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -208,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -226,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -246,7 +260,16 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"# Solution goes here"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -266,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -283,7 +306,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -301,7 +324,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -321,7 +344,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -341,12 +364,19 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"# Solution goes here"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 3ae71c0

Please sign in to comment.