Skip to content

Commit d641f7f

Browse files
committed
update prob_dist
1 parent edfca6e commit d641f7f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lectures/prob_dist.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,21 +289,13 @@ The mean and variance are:
289289
```{code-cell} ipython3
290290
λ = 2
291291
u = scipy.stats.poisson(λ)
292-
```
293-
294-
```{code-cell} ipython3
295292
u.mean(), u.var()
296293
```
297-
298-
The the expectation of Poisson distribution is $\lambda$ and the variance is also $\lambda$.
294+
295+
The expectation of Poisson distribution is $\lambda$ and the variance is also $\lambda$.
299296

300297
Here's the PMF:
301298

302-
```{code-cell} ipython3
303-
λ = 2
304-
u = scipy.stats.poisson(λ)
305-
```
306-
307299
```{code-cell} ipython3
308300
u.pmf(1)
309301
```

0 commit comments

Comments
 (0)