Skip to content

Commit 472c0cf

Browse files
committed
Merge branch 'master' into gh-pages
2 parents 807a4c4 + 25e5964 commit 472c0cf

9 files changed

Lines changed: 58 additions & 58 deletions

File tree

doc/Projects/2020/Project5/BlackScholes/html/._BlackScholes-bs000.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="___sec1" class="anchor">The briefest introduction to options </h3>
166166

167167
<p>
168168
An option is a right, but not an obligation, to buy or sell
169-
and underlying asset <button type="button" class="btn btn-primary btn-xs" rel="tooltip" data-placement="top" title="We focus on stocks, but it can be anything."><a href="#def_footnote_1" id="link_footnote_1" style="color: white">1</a></button> at a pretermined price \( E \) at or before
169+
and underlying asset <button type="button" class="btn btn-primary btn-xs" rel="tooltip" data-placement="top" title="We focus on stocks, but it can be anything."><a href="#def_footnote_1" id="link_footnote_1" style="color: white">1</a></button> at a predetermined price \( E \) at or before
170170
an expiration time \( T \). Having such an option is valuable, but
171171
determining the fair price of an option is a difficult problem.
172172

@@ -199,7 +199,7 @@ <h3 id="___sec2" class="anchor">The Black-Scholes equation </h3>
199199
\begin{equation}
200200
\frac{\partial V}{\partial t}
201201
+ \frac{1}{2}S^2\sigma^2\frac{\partial^2 V}{\partial S^2}
202-
+ (r - D)\frac{\partial V}{\partial S} - r V = 0
202+
+ (r - D)S\frac{\partial V}{\partial S} - r V = 0
203203
\tag{1}
204204
\end{equation}
205205
$$
@@ -212,7 +212,7 @@ <h3 id="___sec2" class="anchor">The Black-Scholes equation </h3>
212212

213213
<p>
214214
The volatility \( \sigma \) stems from an underlying assumption that
215-
the stock moves like a geometric Brownial motion,
215+
the stock moves like a geometric Brownian motion,
216216
$$
217217
\begin{equation}
218218
\frac{dS}{S} = \mu dt + \sigma dW.
@@ -233,8 +233,8 @@ <h3 id="___sec3" class="anchor">5a: Transformation to Heat Equation/Diffusion eq
233233
Instead of an initial value problem, we have a terminal value
234234
problem at time \( T \), i.e. the expiration date or the
235235
maturity date. We change to an initial value problem
236-
by substitutin \( \tau = T - t \). This new variable can
237-
be interpretad as time remaining to expiration.
236+
by substituting \( \tau = T - t \). This new variable can
237+
be interpreted as time remaining to expiration.
238238

239239
<p>
240240
The transformed spatial variable is \( x = \ln(S/E) \), where
@@ -247,7 +247,7 @@ <h3 id="___sec3" class="anchor">5a: Transformation to Heat Equation/Diffusion eq
247247

248248
<p>
249249
Just substituting for the variables above leads to a parabolic
250-
equation, with constant coefficitions. Show that by making a final
250+
equation, with constant coefficients. Show that by making a final
251251
substitution;
252252
$$
253253
\begin{equation}
@@ -287,7 +287,7 @@ <h3 id="___sec4" class="anchor">5b: Create solver(s) for the 1D diffusion equati
287287
<p>
288288
You can implement a solver for the diffusion equation
289289
inspiration from the project on the diffusion equation.
290-
Another very good resourse is Langtangen and Linge's
290+
Another very good resource is Langtangen and Linge's
291291
book "Finite Difference Computing with PDEs".
292292

293293
<p>
@@ -430,7 +430,7 @@ <h2 id="___sec7" class="anchor">Introduction to numerical projects </h2>
430430
<li> Include the source code of your program. Comment your program properly.</li>
431431
<li> If possible, try to find analytic solutions, or known limits in order to test your program when developing the code.</li>
432432
<li> Include your results either in figure form or in a table. Remember to label your results. All tables and figures should have relevant captions and labels on the axes.</li>
433-
<li> Try to evaluate the reliabilty and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
433+
<li> Try to evaluate the reliability and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
434434
<li> Try to give an interpretation of you results in your answers to the problems.</li>
435435
<li> Critique: if possible include your comments and reflections about the exercise, whether you felt you learnt something, ideas for improvements and other thoughts you've made when solving the exercise. We wish to keep this course at the interactive level and your comments can help us improve it.</li>
436436
<li> Try to establish a practice where you log your work at the computerlab. You may find such a logbook very handy at later stages in your work, especially when you don't properly remember what a previous test version of your program did. Here you could also record the time spent on solving the exercise, various algorithms you may have tested or other topics which you feel worthy of mentioning.</li>

doc/Projects/2020/Project5/BlackScholes/html/BlackScholes-bs.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="___sec1" class="anchor">The briefest introduction to options </h3>
166166

167167
<p>
168168
An option is a right, but not an obligation, to buy or sell
169-
and underlying asset <button type="button" class="btn btn-primary btn-xs" rel="tooltip" data-placement="top" title="We focus on stocks, but it can be anything."><a href="#def_footnote_1" id="link_footnote_1" style="color: white">1</a></button> at a pretermined price \( E \) at or before
169+
and underlying asset <button type="button" class="btn btn-primary btn-xs" rel="tooltip" data-placement="top" title="We focus on stocks, but it can be anything."><a href="#def_footnote_1" id="link_footnote_1" style="color: white">1</a></button> at a predetermined price \( E \) at or before
170170
an expiration time \( T \). Having such an option is valuable, but
171171
determining the fair price of an option is a difficult problem.
172172

@@ -199,7 +199,7 @@ <h3 id="___sec2" class="anchor">The Black-Scholes equation </h3>
199199
\begin{equation}
200200
\frac{\partial V}{\partial t}
201201
+ \frac{1}{2}S^2\sigma^2\frac{\partial^2 V}{\partial S^2}
202-
+ (r - D)\frac{\partial V}{\partial S} - r V = 0
202+
+ (r - D)S\frac{\partial V}{\partial S} - r V = 0
203203
\tag{1}
204204
\end{equation}
205205
$$
@@ -212,7 +212,7 @@ <h3 id="___sec2" class="anchor">The Black-Scholes equation </h3>
212212

213213
<p>
214214
The volatility \( \sigma \) stems from an underlying assumption that
215-
the stock moves like a geometric Brownial motion,
215+
the stock moves like a geometric Brownian motion,
216216
$$
217217
\begin{equation}
218218
\frac{dS}{S} = \mu dt + \sigma dW.
@@ -233,8 +233,8 @@ <h3 id="___sec3" class="anchor">5a: Transformation to Heat Equation/Diffusion eq
233233
Instead of an initial value problem, we have a terminal value
234234
problem at time \( T \), i.e. the expiration date or the
235235
maturity date. We change to an initial value problem
236-
by substitutin \( \tau = T - t \). This new variable can
237-
be interpretad as time remaining to expiration.
236+
by substituting \( \tau = T - t \). This new variable can
237+
be interpreted as time remaining to expiration.
238238

239239
<p>
240240
The transformed spatial variable is \( x = \ln(S/E) \), where
@@ -247,7 +247,7 @@ <h3 id="___sec3" class="anchor">5a: Transformation to Heat Equation/Diffusion eq
247247

248248
<p>
249249
Just substituting for the variables above leads to a parabolic
250-
equation, with constant coefficitions. Show that by making a final
250+
equation, with constant coefficients. Show that by making a final
251251
substitution;
252252
$$
253253
\begin{equation}
@@ -287,7 +287,7 @@ <h3 id="___sec4" class="anchor">5b: Create solver(s) for the 1D diffusion equati
287287
<p>
288288
You can implement a solver for the diffusion equation
289289
inspiration from the project on the diffusion equation.
290-
Another very good resourse is Langtangen and Linge's
290+
Another very good resource is Langtangen and Linge's
291291
book "Finite Difference Computing with PDEs".
292292

293293
<p>
@@ -430,7 +430,7 @@ <h2 id="___sec7" class="anchor">Introduction to numerical projects </h2>
430430
<li> Include the source code of your program. Comment your program properly.</li>
431431
<li> If possible, try to find analytic solutions, or known limits in order to test your program when developing the code.</li>
432432
<li> Include your results either in figure form or in a table. Remember to label your results. All tables and figures should have relevant captions and labels on the axes.</li>
433-
<li> Try to evaluate the reliabilty and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
433+
<li> Try to evaluate the reliability and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
434434
<li> Try to give an interpretation of you results in your answers to the problems.</li>
435435
<li> Critique: if possible include your comments and reflections about the exercise, whether you felt you learnt something, ideas for improvements and other thoughts you've made when solving the exercise. We wish to keep this course at the interactive level and your comments can help us improve it.</li>
436436
<li> Try to establish a practice where you log your work at the computerlab. You may find such a logbook very handy at later stages in your work, especially when you don't properly remember what a previous test version of your program did. Here you could also record the time spent on solving the exercise, various algorithms you may have tested or other topics which you feel worthy of mentioning.</li>

doc/Projects/2020/Project5/BlackScholes/html/BlackScholes.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3 id="___sec1">The briefest introduction to options </h3>
124124

125125
<p>
126126
An option is a right, but not an obligation, to buy or sell
127-
and underlying asset [<a id="link_footnote_1" href="#def_footnote_1">1</a>] at a pretermined price \( E \) at or before
127+
and underlying asset [<a id="link_footnote_1" href="#def_footnote_1">1</a>] at a predetermined price \( E \) at or before
128128
an expiration time \( T \). Having such an option is valuable, but
129129
determining the fair price of an option is a difficult problem.
130130

@@ -157,7 +157,7 @@ <h3 id="___sec2">The Black-Scholes equation </h3>
157157
\begin{equation}
158158
\frac{\partial V}{\partial t}
159159
+ \frac{1}{2}S^2\sigma^2\frac{\partial^2 V}{\partial S^2}
160-
+ (r - D)\frac{\partial V}{\partial S} - r V = 0
160+
+ (r - D)S\frac{\partial V}{\partial S} - r V = 0
161161
\label{_auto1}
162162
\end{equation}
163163
$$
@@ -170,7 +170,7 @@ <h3 id="___sec2">The Black-Scholes equation </h3>
170170

171171
<p>
172172
The volatility \( \sigma \) stems from an underlying assumption that
173-
the stock moves like a geometric Brownial motion,
173+
the stock moves like a geometric Brownian motion,
174174
$$
175175
\begin{equation}
176176
\frac{dS}{S} = \mu dt + \sigma dW.
@@ -191,8 +191,8 @@ <h3 id="___sec3">5a: Transformation to Heat Equation/Diffusion equation </h3>
191191
Instead of an initial value problem, we have a terminal value
192192
problem at time \( T \), i.e. the expiration date or the
193193
maturity date. We change to an initial value problem
194-
by substitutin \( \tau = T - t \). This new variable can
195-
be interpretad as time remaining to expiration.
194+
by substituting \( \tau = T - t \). This new variable can
195+
be interpreted as time remaining to expiration.
196196

197197
<p>
198198
The transformed spatial variable is \( x = \ln(S/E) \), where
@@ -205,7 +205,7 @@ <h3 id="___sec3">5a: Transformation to Heat Equation/Diffusion equation </h3>
205205

206206
<p>
207207
Just substituting for the variables above leads to a parabolic
208-
equation, with constant coefficitions. Show that by making a final
208+
equation, with constant coefficients. Show that by making a final
209209
substitution;
210210
$$
211211
\begin{equation}
@@ -245,7 +245,7 @@ <h3 id="___sec4">5b: Create solver(s) for the 1D diffusion equation. </h3>
245245
<p>
246246
You can implement a solver for the diffusion equation
247247
inspiration from the project on the diffusion equation.
248-
Another very good resourse is Langtangen and Linge's
248+
Another very good resource is Langtangen and Linge's
249249
book "Finite Difference Computing with PDEs".
250250

251251
<p>
@@ -388,7 +388,7 @@ <h2 id="___sec7">Introduction to numerical projects </h2>
388388
<li> Include the source code of your program. Comment your program properly.</li>
389389
<li> If possible, try to find analytic solutions, or known limits in order to test your program when developing the code.</li>
390390
<li> Include your results either in figure form or in a table. Remember to label your results. All tables and figures should have relevant captions and labels on the axes.</li>
391-
<li> Try to evaluate the reliabilty and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
391+
<li> Try to evaluate the reliability and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.</li>
392392
<li> Try to give an interpretation of you results in your answers to the problems.</li>
393393
<li> Critique: if possible include your comments and reflections about the exercise, whether you felt you learnt something, ideas for improvements and other thoughts you've made when solving the exercise. We wish to keep this course at the interactive level and your comments can help us improve it.</li>
394394
<li> Try to establish a practice where you log your work at the computerlab. You may find such a logbook very handy at later stages in your work, especially when you don't properly remember what a previous test version of your program did. Here you could also record the time spent on solving the exercise, various algorithms you may have tested or other topics which you feel worthy of mentioning.</li>
Binary file not shown.

doc/Projects/2020/Project5/BlackScholes/pdf/BlackScholes.p.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ \subsection{Solving the Black-Scholes Equation Numerically}
146146
history is by greek philosopher Thales from the sixth century.
147147

148148
An option is a right, but not an obligation, to buy or sell
149-
and underlying asset\footnote{We focus on stocks, but it can be anything.} at a pretermined price $E$ at or before
149+
and underlying asset\footnote{We focus on stocks, but it can be anything.} at a predetermined price $E$ at or before
150150
an expiration time $T$. Having such an option is valuable, but
151151
determining the fair price of an option is a difficult problem.
152152

@@ -174,7 +174,7 @@ \subsection{Solving the Black-Scholes Equation Numerically}
174174
\begin{equation}
175175
\frac{\partial V}{\partial t}
176176
+ \frac{1}{2}S^2\sigma^2\frac{\partial^2 V}{\partial S^2}
177-
+ (r - D)\frac{\partial V}{\partial S} - r V = 0
177+
+ (r - D)S\frac{\partial V}{\partial S} - r V = 0
178178
\end{equation}
179179

180180
Here $V(S, T)$ is the value of the options, $S$ is the price of the
@@ -183,7 +183,7 @@ \subsection{Solving the Black-Scholes Equation Numerically}
183183
(dividend paying rate) of the underlying stock.
184184

185185
The volatility $\sigma$ stems from an underlying assumption that
186-
the stock moves like a geometric Brownial motion,
186+
the stock moves like a geometric Brownian motion,
187187
\begin{equation}
188188
\frac{dS}{S} = \mu dt + \sigma dW.
189189
\end{equation}
@@ -198,8 +198,8 @@ \subsection{Solving the Black-Scholes Equation Numerically}
198198
Instead of an initial value problem, we have a terminal value
199199
problem at time $T$, i.e.~the expiration date or the
200200
maturity date. We change to an initial value problem
201-
by substitutin $\tau = T - t$. This new variable can
202-
be interpretad as time remaining to expiration.
201+
by substituting $\tau = T - t$. This new variable can
202+
be interpreted as time remaining to expiration.
203203

204204
The transformed spatial variable is $x = \ln(S/E)$, where
205205
$E$ is the exercise price of the option. Now, values of
@@ -210,7 +210,7 @@ \subsection{Solving the Black-Scholes Equation Numerically}
210210
exercise price.
211211

212212
Just substituting for the variables above leads to a parabolic
213-
equation, with constant coefficitions. Show that by making a final
213+
equation, with constant coefficients. Show that by making a final
214214
substitution;
215215
\begin{equation}
216216
u(x, \tau) = e^{\alpha x + \beta \tau} V(S, t)
@@ -237,7 +237,7 @@ \subsection{Solving the Black-Scholes Equation Numerically}
237237
\paragraph{5b: Create solver(s) for the 1D diffusion equation.}
238238
You can implement a solver for the diffusion equation
239239
inspiration from the project on the diffusion equation.
240-
Another very good resourse is Langtangen and Linge's
240+
Another very good resource is Langtangen and Linge's
241241
book "Finite Difference Computing with PDEs".
242242

243243
It is highly recommended to start with an explicit
@@ -357,7 +357,7 @@ \subsection{Introduction to numerical projects}
357357

358358
\item Include your results either in figure form or in a table. Remember to label your results. All tables and figures should have relevant captions and labels on the axes.
359359

360-
\item Try to evaluate the reliabilty and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.
360+
\item Try to evaluate the reliability and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.
361361

362362
\item Try to give an interpretation of you results in your answers to the problems.
363363

44 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)