Skip to content

Commit 16c0d70

Browse files
committed
Update MorePyMC.ipynb
fixed a typo of probability for Ber(p) for X is 0
1 parent ce7db32 commit 16c0d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter2_MorePyMC/MorePyMC.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@
677677
"The *observed frequency* is then the frequency we observe: say rolling the die 100 times you may observe 20 rolls of 1. The observed frequency, 0.2, differs from the true frequency, 0.166. We can use Bayesian statistics to infer probable values of the true frequency using an appropriate prior and observed data.\n",
678678
"\n",
679679
"\n",
680-
"With respect to our A/B example, we are interested in using what we know, $N$ and $n$, to estimate what $p_A$, the true frequency of buyers, might be. To make this more concrete, consider an example where $p_A = 0.05$, $N = 1500$ users shown site A, and we will simulate whether the user made a purchase or not. To simulate this from $N$ trials, we will use a *Bernoulli* distribution: if $ X\\ \\sim \\text{Ber}(p)$, then $X$ is 1 with probability $p$ and 0 with probability $1$."
680+
"With respect to our A/B example, we are interested in using what we know, $N$ and $n$, to estimate what $p_A$, the true frequency of buyers, might be. To make this more concrete, consider an example where $p_A = 0.05$, $N = 1500$ users shown site A, and we will simulate whether the user made a purchase or not. To simulate this from $N$ trials, we will use a *Bernoulli* distribution: if $ X\\ \\sim \\text{Ber}(p)$, then $X$ is 1 with probability $p$ and 0 with probability $1-p$."
681681
]
682682
},
683683
{

0 commit comments

Comments
 (0)