Skip to content

Commit e90ce7e

Browse files
authored
Merge pull request #88 from snowch/claude/fix-bernoulli-rendering-mjFhe
Clarify binomial formula derivation in coin flip example
2 parents fc98f12 + 4509ecf commit e90ce7e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

chapter_07.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ Let's verify this works for our coin flip example (n=10, p=0.5):
579579

580580
$$
581581
\begin{align}
582-
P(X=5) &= \binom{10}{5} (0.5)^5 (0.5)^5 \\
582+
P(X=5) &= \binom{10}{5} p^5 (1-p)^{10-5} \\
583+
&= \binom{10}{5} (0.5)^5 (1-0.5)^5 \\
584+
&= \binom{10}{5} (0.5)^5 (0.5)^5 \\
583585
&= 252 \times 0.03125 \times 0.03125 \\
584586
&\approx 0.246 \quad \checkmark
585587
\end{align}

0 commit comments

Comments
 (0)