Skip to content

Commit f139584

Browse files
committed
gave random sampling lecture
1 parent dba4f89 commit f139584

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

chapters/01_simulation/00_random-sampling.ipynb

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,6 @@
7878
"np.random.choice"
7979
]
8080
},
81-
{
82-
"cell_type": "code",
83-
"execution_count": 3,
84-
"metadata": {
85-
"collapsed": true,
86-
"slideshow": {
87-
"slide_type": "fragment"
88-
}
89-
},
90-
"outputs": [],
91-
"source": [
92-
"# best solution\n",
93-
"tosses = np.random.choice([0,1],1000)"
94-
]
95-
},
9681
{
9782
"cell_type": "code",
9883
"execution_count": null,
@@ -103,12 +88,7 @@
10388
}
10489
},
10590
"outputs": [],
106-
"source": [
107-
"# okay solution\n",
108-
"tosses = []\n",
109-
"for i in range(1000):\n",
110-
" tosses.append(np.random.choice([0,1]))"
111-
]
91+
"source": []
11292
},
11393
{
11494
"cell_type": "markdown",
@@ -499,7 +479,6 @@
499479
}
500480
],
501481
"metadata": {
502-
"celltoolbar": "Slideshow",
503482
"kernelspec": {
504483
"display_name": "Python 3",
505484
"language": "python",

0 commit comments

Comments
 (0)