Skip to content

Commit 0afb24e

Browse files
ken-rmmckyCopilot
authored
Fix scipy exercise hints (#388)
* Fix scipy exercise hints Two exercise hints in the scipy lecture are not fully accurate. * Update lectures/scipy.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Matt McKay <mmcky@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1f13005 commit 0afb24e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)