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

  ITS320 Basic Programming Question - Create a program

ITS320 Basic Programming assignment help and assessment help, Colorado State University - Create a program that will calculate the weekly average tax.

  Create a program that converts roman numbers into numbers

Create a program that converts roman numbers into numbers (1,2,3 etc) but You have trouble doing it the question says to use the following.

  Draw nassishneiderman diagram

Draw NassiShneiderman (NS) diagram/s that present the steps of the algorithm required to perform the task specified

  Write a python program that prompts the user to enter

Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd.The program must use a while loop.

  Implement a voting test

Implement a voting test. The user enters their age and then the program prints either, "You must be 18 to vote" or "You are of voting age"

  Define the max_x function

Define the max_x function, which takes two arguments: a function -call it f- of one parameter and any iterable that produces values.

  Write a program that calculates the amount of money

Write a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day.

  Calculate the average rainfall over a period of years

COMP 3140-Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. Theprogram should first ask.

  Find the first smallest power of 2 which is larger than or n

Given a number n find the first smallest power of 2 which is larger than or equal to n. The response paper should be in APA format.

  Create a python list and add employee objects and manager

Create a Python list and add Employee objects and Manager objects to the same list. Use a loop to give a raise() to every object in the list.

  You are tasked with improving the code for the haunted

you are tasked with improving the code for the haunted house game. please read the associated hand-out and the code

  Define a word as ending a sentence

Define a word as ending a sentence if that word is immediately followed by a period. A startwords function that takes a single string argument.

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