Skip to content

Commit c2c1c8e

Browse files
committed
Update prob_dist.md
1 parent 0be5f5b commit c2c1c8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lectures/prob_dist.md

+2
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ Check that your answers agree with `u.mean()` and `u.var()`.
156156
#### Bernoulli distribution
157157

158158
Another useful distribution is the Bernoulli distribution on $S = \{0,1\}$, which has PMF:
159+
159160
$$
160161
p(x_i)=
161162
\begin{cases}
162163
p & \text{if $x_i = 1$}\\
163164
1-p & \text{if $x_i = 0$}
164165
\end{cases}
165166
$$
167+
166168
Here $x_i \in S$ is the outcome of the random variable.
167169

168170
We can import the Bernoulli distribution on $S = \{0,1\}$ from SciPy like so:

0 commit comments

Comments
 (0)