Problem 4: With the same parameters as in Problem 2, but the additional parameters $n_1 = 4, n_2 =6,$ and $b=66$: price a down and out barrier option, that has payoff at time $T$ of $$ C_T = (S_T -K)^+ I\{ S_{n_1} \geq b, S_{n_2} \geq b \}.$$ Use $n=100, n=1000, n=10,000$ id copies of $C_T$ (for averaging). In the above, recall that for any event $A$, $I\{A\}$ denotes the indicator random variable defined by $$ 1\{A\} = \left\{ \begin{array}{Il} 1 & \mbox{if $A$ occurs,} || 0 & \mbox{if $A$ does not occur.} \end{array} \right. $$ Here, $A = \{S_{n_1} \geq b, S_{n_2} \geq b\}$. # write your code here # you may add more cells as needed

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Python Programming: Option Pricing Using Monte Carlo Simulation

Problem 4: with the same parameters as in Problem 2, but the additional parameters $n_1 = 4, n_2
=6,$ and $b=66$: price a down and out barrier option, that has payoff at time $T$ of
$$ C_T = (S_T -K)^+ I\{ S_{n_1} \geq b, S_{n_2} \geq b \}.$$
%3D
Use $n=100, n=1000, n=10,000$ id copies of $C_T$ (for averaging).
In the above, recall that for any event $A$, $1\{A\}$ denotes the indicator random variable defined
by
$$ I{{A\} = \left\{ \begin{array}{II} 1 & \mbox{if $A$ occurs,} || 0 & \mbox{if $A$ does not occur.}
%3D
\end{array} \right. $$
Here, $A = \{S_{n_1} \geq b, S_{n_2} \geq b\}$.
%3D
In [5]:
# write your code here
# you may add more cells as needed
Transcribed Image Text:Problem 4: with the same parameters as in Problem 2, but the additional parameters $n_1 = 4, n_2 =6,$ and $b=66$: price a down and out barrier option, that has payoff at time $T$ of $$ C_T = (S_T -K)^+ I\{ S_{n_1} \geq b, S_{n_2} \geq b \}.$$ %3D Use $n=100, n=1000, n=10,000$ id copies of $C_T$ (for averaging). In the above, recall that for any event $A$, $1\{A\}$ denotes the indicator random variable defined by $$ I{{A\} = \left\{ \begin{array}{II} 1 & \mbox{if $A$ occurs,} || 0 & \mbox{if $A$ does not occur.} %3D \end{array} \right. $$ Here, $A = \{S_{n_1} \geq b, S_{n_2} \geq b\}$. %3D In [5]: # write your code here # you may add more cells as needed
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Bayes' Theorem
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education