GitHub

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

Read the original on github.com ↗