Skip to content

Commit 6fcac9d

Browse files
authored
Fixed the issue in Random Variables.ipynb
Missing initialization of StockProbabilities for the first example with the probability of success = 0.5.
1 parent c41837e commit 6fcac9d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Random Variables.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@
257257
}
258258
],
259259
"source": [
260+
"StockProbabilities = BinomialRandomVariable(5, 0.5)\n",
260261
"plt.hist(StockProbabilities.draw(10000), bins = [0, 1, 2, 3, 4, 5, 6], align = 'left')\n",
261262
"plt.xlabel('Value')\n",
262263
"plt.ylabel('Occurences');\n",

0 commit comments

Comments
 (0)