Skip to content

Commit 189c948

Browse files
authored
Fix scipy exercise hints
Two exercise hints in the scipy lecture are not fully accurate.
1 parent 1f13005 commit 189c948

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lectures/scipy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ over the interval $[0, 400]$ when `μ, σ, β, n, K = 4, 0.25, 0.99, 10, 40`.
476476
```{hint}
477477
:class: dropdown
478478
479-
From `scipy.stats` you can import `lognorm` and then use `lognorm(x, σ, scale=np.exp(μ)` to get the density $f$.
479+
From `scipy.stats` you can import `lognorm` and then use `lognorm.pdf(x, σ, scale=np.exp(μ)` to get the density $f$.
480480
```
481481

482482
```{exercise-end}
@@ -512,7 +512,7 @@ plt.show()
512512
```{exercise}
513513
:label: sp_ex02
514514
515-
In order to get the option price, compute the integral of this function numerically using `quad` from `scipy.optimize`.
515+
In order to get the option price, compute the integral of this function numerically using `quad` from `scipy.integrate`.
516516
517517
```
518518

0 commit comments

Comments
 (0)