Explain and discuss the relevance of the normal distribution

Assignment Help Python Programming
Reference no: EM132873942

Description of coursework

If you use a random number generator for any of the problems below, seed the generator so that the results are reproducible.

Problem 1. Explain and discuss the relevance of the Normal distribution in the context of Monte Carlo estimation.

Problem 2. Consider the function f : R → R given by

f(x) = { (λe-λx)/e - e-2λ if x ∈ [1, 2],

f(x) = {0, otherwise,

for some flied λ > D.

1. Prove that f is a probability density function.

2. Explain how you can generate a sample from f -using the inverse transform method. Implement the inverse transform. method for generating a sample from f in Python and show a histogram of a sample generated from f.

3. Suppose you would like to generate a sample from f using von Neurraann's acceptance-rejection algorithm,

(a) Specify two different prob-ability density functions g1 ≠ g2 with g1 ≠ f and g2 ≠ f that can be used for this purpose. Discuss which of the two pdfs g1 and g2 you prefer to use in von Neumann's acceptance rejection algorithm for generating a sample from f and give reasons for your, choice.

(b) Write down von Neumann's acceptance-rejection algorithm that is designed such. that it has the highest possible acceptance rate for your preferred choice of gb. Explain how you can generate the required sample from. your preferred gi.

(c) Implement von Neumann's acceptance-rejection method for generating a sample from f by using your preferred choice of gi in Python and show a histogram of a sample generated from f .

4. What is your preferred method for generating a sample from f and why?

Problem 3. Consider the standard Black-Scholes financial market consisting of two assets: The riskless asset has time-t price Bt = ert, where r ≥ 0 is the constant interest rate and the stock has time-t price

(1) St = S0 exp ((r - σ2/2)t + σwt)

where S0 > 0 is the initial stock price, σ > 0 is the volatility., (Wt)t≥o is a standard one-dimensional Brownian motion under the risk-neutruI measure.

Consider an option whose payoff at maturity T > 0 is given by H(ST), where

H(ST) = 0,         if ST ≤ 100,

H(ST) = 2ST - 200,         if 100 ≤ ST ≤ 150,

H(ST) = 0.25ST + 62.5,         if 150 ≤ ST ≤ 350,

H(ST) = 150,         if ST ≥ 350,

1. Write down a Monte Carlo estimator together with an asbrmptotic 95% confidence interval for the time-a price of an option with payoff H(ST) given in 49 and justify your answer. Implement the Monte Carlo estimator and an asymptotic 95% confidence internal for the time-O price of the option with payoff in Python.

2. Specify two alternative estimators for the time-O price of an option with payoff H(ST) that have lower variances than the Monte Carlo estimator considered in part 1. Implement both in Python and discuss and compare their performance.

3. Consider the following function

k(S0) = E[e-rTH(ST)]
where H (ST) is given in 2.

(a) Explain how you can numerically approximate the derivative of the function k with respect to S0 denoted by ks0(S0) = ∂k(S0)/∂S0, assuming that you can-not evaluate this derivative analytically in the following situations:
i. k(S0) is known analytically;
ii. k(S0) is not known analytically.

Justify your answers.

(b) Write Python code that numerically approlirnates the derivative kS0, for the situation (a)(ii) and plot the approximation of the derivative kS0, as a function of S0. Discuss your results. In particular, comment on what the financial interpretation of the derivative S0 is.

Problem 4. Consider a continuous-time stochastic process (log(St)t≥0 whose sample paths are simulated on a discrete-time grid given by the points ti = ih, i ∈ {0, N} where h > 0 and N ∈ N using the following recursive scheme:

Set A(0) = A0 and S(0) = S0 for some fired A0, S0 > 0.

Then, for n = 0,......N - 1 set

2231_figure.jpg

where the 2-dimensional random vectors (ZA1. ZS1)T (ZA(N), ZS(N))T are and for each n ∈ {0, N - 1} the 2-dimensional random vector (ZAn+1 , ZSn+1))T has a multivariate Normal distribution with mean (0,0)T and covariance matrix 541_figure1.jpgwhere Ρ ∈ (-1, 1).

Furthermore, x+= max{x, 0}, log denotes the natural logarithm and α, β, γ ∈ (0, ∞) satisfy 2αβ > γ2 and r ≥ 0.

1. Write down. a stochastic differential equation for the stochastic process (log(St)) and a stochastic differential equation for a stochastic process (At)t≥0 that can be approximated by the scheme in CV. Justih your answer.

2. Write Python code that implements the simulation scheme given in and use it to plot several realisations of the sample paths of the corresponding stochastic process S.

3. Suppose the scheme in is used to approximate a sample path of (log(St)), where (St) represents the price of a risky asset (e.g., a stock price). Consider the same option payoff H(ST) as in Problem 3 a. Write Python code to approximate the time-0 price of this option using a Monte Carlo estimator together with the simulation scheme in a).

Compare your results to the results obtained in the standard Black-Scholes model and discuss your findings.

Attachment:- Computational Finance Assignment.rar

Reference no: EM132873942

Questions Cloud

Connection between labor costs in united states : -What is the relationship between money, labor costs, profitability, and knowledge in the modern democratic-capitalistic society?
Baldrige performance excellence program : How can a healthcare organization meet the goals for the Baldrige Performance Excellence Program as a guide to become a high-reliability organization?
Describe the type of team that whole foods uses : What label would best describe the type of team that Whole Foods uses in its stores? Explain.
Major issues of hr in fusion electric company : The Fusion Electric Company worked day and night to develop a new current regulator designed to cut the electric power consumption in aluminium plants by 35%. T
Explain and discuss the relevance of the normal distribution : Explain and discuss the relevance of the Normal distribution in the context of Monte Carlo estimation - Explain how you can generate a sample
Examples of benchmark positions : Your organization, a major retailer headquartered in Houston, Texas, has acquired a small fashion boutique headquartered in MontanafcxAZ. The new organization h
What are the requirements to run for congress : What are the powers bestowed upon the legislative branch by the Constitution? What are the requirements to run for Congress? How does a bill become a law?
Is politicial demonstration an effective tool in law reform : Is politicial demonstration an effective tool in law reform, if yes why then
How has party membership changed over time : What is the history of the two political parties? How have they changed over time and what defines them today? How has party membership changed over time?

Reviews

len2873942

5/1/2021 4:19:10 AM

Hello, I hope you''re doing well. I need help with my Computational Finance assignment. The details are in the attached file. Please let me know if it is feasible. Thank you in advance.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd