@@ -111,19 +111,20 @@ So far we have no need for a computer.
111111
112112But now suppose that we study the distribution of $S$ more carefully.
113113
114- We decide that the share price depends on three variables, $X_1$, $X_2, and $X_3$ (for example, sales, inflation, etc.).
114+ We decide that the share price depends on three variables, $X_1$, $X_2$, and
115+ $X_3$ (e.g., sales, inflation, and interest rates).
115116
116- In particular, our study tells us that
117+ In particular, our study suggests that
117118
118119$$
119120 S = (X_1 + X_2 + X_3)^p
120121$$
121122
122- Here
123+ where
123124
124- * $p$ is a positive number, which is known to us,
125+ * $p$ is a positive number, which is known to us (i.e., has been estimated) ,
125126* $X_i \sim LN(\mu_i, \sigma_i)$ for $i=1,2,3$,
126- * the values $\mu_i, \sigma_i$ are also known (i.e., have all been estimated) , and
127+ * the values $\mu_i, \sigma_i$ are also known, and
127128* the random variables $X_1$, $X_2$ and $X_3$ are independent.
128129
129130How should we compute the mean of $S$?
@@ -534,10 +535,9 @@ plt.show()
534535Now that our model is more complicated, we cannot easily determine the
535536distribution of $S_n$.
536537
537- So to compute the price $P_0 $ of the option, we use Monte Carlo
538+ So to compute the price $P $ of the option, we use Monte Carlo.
538539
539-
540- WE average over realizations $S_n^1, \ldots, S_n^M$ of $S_n$ and appealing to
540+ We average over realizations $S_n^1, \ldots, S_n^M$ of $S_n$ and appealing to
541541the law of large numbers:
542542
543543$$
@@ -582,7 +582,7 @@ compute_call_price()
582582
583583
584584
585- ## ExerciseS
585+ ## Exercises
586586
587587``` {exercise}
588588:label: monte_carlo_ex1
@@ -613,7 +613,7 @@ def compute_call_price(β=β,
613613 s = np.full(M, np.log(S0))
614614 h = np.full(M, h0)
615615 for t in range(n):
616- Z = np.random.randn(( 2, M) )
616+ Z = np.random.randn(2, M)
617617 s = s + μ + np.exp(h) * Z[0, :]
618618 h = ρ * h + ν * Z[1, :]
619619 expectation = np.mean(np.maximum(np.exp(s) - K, 0))
@@ -636,4 +636,4 @@ compute_call_price(M=10_000_000)
636636```
637637
638638``` {solution-end}
639- ```
639+ ```
0 commit comments