Skip to content

Commit

Permalink
Corrected formulas
Browse files Browse the repository at this point in the history
Corrected typos in descriptions of Bernoulli and Negative Binomial Distributions
  • Loading branch information
BoBernhardsson committed Sep 29, 2015
1 parent b4bdd90 commit 5129d67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/univariate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ A `Bernoulli distribution <http://en.wikipedia.org/wiki/Bernoulli_distribution>`
.. math::
P(X = k) = \begin{cases}
p & \quad \text{for } k = 0, \\
1 - p & \quad \text{for } k = 1.
1 - p & \quad \text{for } k = 0, \\
p & \quad \text{for } k = 1.
\end{cases}
.. code-block:: julia
Expand Down Expand Up @@ -443,7 +443,7 @@ A `Negative binomial distribution <http://en.wikipedia.org/wiki/Negative_binomia

.. math::
P(X = k) = {k + r - 1 \choose x} p^r (1 - p)^k, \quad \text{for } k = 0,1,2,\ldots.
P(X = k) = {k + r - 1 \choose k} p^r (1 - p)^k, \quad \text{for } k = 0,1,2,\ldots.
.. code-block:: julia
Expand Down

0 comments on commit 5129d67

Please sign in to comment.