Skip to content

Commit d4defa1

Browse files
committed
update proof "bern-kl"
The second line of eq. 4 was corrected.
1 parent c6cfc23 commit d4defa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

P/bern-kl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ which, applied to the [Bernoulli distributions](/D/bern) in \eqref{eq:berns}, yi
4848
$$ \label{eq:bern-KL-s1}
4949
\begin{split}
5050
\mathrm{KL}[P\,||\,Q] &= \sum_{x \in \left\lbrace 0,1 \right\rbrace} p(x) \, \ln \frac{p(x)}{q(x)} \\
51-
&= p(X=0) \cdot \ln \frac{p(X=0)}{q(X=0)} + p(X=0) \cdot \ln \frac{p(X=0)}{q(X=0)} \; .
51+
&= p(X=0) \cdot \ln \frac{p(X=0)}{q(X=0)} + p(X=1) \cdot \ln \frac{p(X=1)}{q(X=1)} \; .
5252
\end{split}
5353
$$
5454

0 commit comments

Comments
 (0)