Skip to content

Commit 8632a77

Browse files
committed
fixes to Ex 6
Fixed question mark and answer to last question
1 parent 334284a commit 8632a77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

notebook9_discrete_random_variables/py_exploratory_comp_9_sol.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
{
7676
"data": {
7777
"text/plain": [
78-
"array([1, 0, 0, 0, 1, 1, 0, 1, 0, 1])"
78+
"array([0, 1, 0, 1, 0, 0, 1, 1, 1, 0])"
7979
]
8080
},
8181
"execution_count": 3,
@@ -613,7 +613,7 @@
613613
"cell_type": "markdown",
614614
"metadata": {},
615615
"source": [
616-
"Compute the probability that the Dog will predict the correct winner based on 1000 poles of 5000 people? Does the probability that The Dog predicts the correct winner increase significantly when he poles 5000 people?"
616+
"Compute the probability that the Dog will predict the correct winner based on 1000 poles of 5000 people. Does the probability that The Dog predicts the correct winner increase significantly when he poles 5000 people?"
617617
]
618618
},
619619
{
@@ -944,7 +944,7 @@
944944
"output_type": "stream",
945945
"text": [
946946
"1000 poles of 5000 people\n",
947-
"Probability that The Dog predicts candidate A to win: 0.014\n"
947+
"Probability that The Dog predicts candidate A to win: 0.07\n"
948948
]
949949
}
950950
],
@@ -961,7 +961,7 @@
961961
" else:\n",
962962
" Bwins += 1\n",
963963
"print('1000 poles of 5000 people')\n",
964-
"print('Probability that The Dog predicts candidate A to win:', Awins / 5000)"
964+
"print('Probability that The Dog predicts candidate A to win:', Awins / 1000)"
965965
]
966966
},
967967
{

0 commit comments

Comments
 (0)