Calculate a simulation approximation to the price

Assignment Help Python Programming
Reference no: EM132642729

MF 703 Programming for Mathematical Finance - Boston University

1. Historical Analysis of Sector ETFs:
Ticker Description
SPY S&P Index
XLB Materials
XLE Energy
XLF Financials
XLI Industrials
XLK Technology XLP Consumer Staples XLU Utilities
XLV Healthcare
XLY Consumer Discretionary

(a) Download historical price data from January 1st 2010 for the following ETFs on ya- hoo finance or another site of your choice. Clean/check the data for splits and other anomalies.

(b) Calculate the annualized return and standard deviation of each ETF

(c) Calculate the covariance matrix of daily and monthly returns. Comment on the differ- ences in correlations at different frequencies.

(d) Calculate a rolling 90-day correlation of each sector ETF with the S&P index. Do the correlations appear to be stable over time? What seems to cause them to vary the most?

(e) Consider a single factor CAPM model where returns are composed of the market return and an idiosyncratic component:
ri,t = βrmkt,t + si,t (1)
For each sector ETF, compute it's β to the market using the above model. This will require computing a linear regression on stock returns. Compute the β for the entire historical period and also compute rolling 90-day β's. Are the β's that you calculated consistent over the entire period? How do they compare to the rolling correlations?

(f) Compute the auto-correlation of each ETF by regressing each ETFs current days return against its previous days return:
ri,t = αri,t-1 + si,t (2)
Is there any evidence of auto-correlation in this ETF universe? Present the α's for each ETF and comment on your results.

2. Exotic Option Pricing via Simulation
Consider a one-year fixed strike lookback option which enables the buyer to choose the point of exercise for the option at its expiry.
Recall that the dynamics of the Black-Scholes model can be written as:
dSt = rSt dt + σSt dWt (3)
And that each Brownian motion increment dWt is normally distributed with mean zero and variance ?t. Assume that r = 0, S0 = 100 and σ = 0.25.

(a) Generate a series of normally distributed random numbers and use these to generate simulated paths for the underlying asset. What is the mean and variance of the terminal value of these paths? Does it appear to be consistent with the underlying dynamics? (b)Calculate the payoff of a European put option with strike 100 along all simulated paths. Make a histogram of the payoffs for the European option. What is the mean
and standard deviation of the payoffs?

(c) Calculate a simulation approximation to the price of a European put option by taking the average discounted payoff across all paths.

(d) Compare the price of the European put option obtained via simulation to the price you obtain using the Black-Scholes formula. Comment on any difference between the two prices.

(e) Calculate the payoff of a fixed strike lookback put option with stike 100 along all simulated path. (HINT: The option holder should exercise at the minimum price along each simulated path). Calculate the simulation price for the lookback option by averaging the discounted payoffs.

(f) Calculate the premium that the buyer is charged for the extra optionality embedded in the lookback. When would this premium be highest? Lowest? Can it ever be negative? (g)Try a few different values of σ and comment on what happens to the price of the
European, the Lookback option and the spread/premium between the two.

NOTE: All code for completing these exercises should be completed either in

Python or C++ and should be written generically. You may end up using this code on future assignments so I encourage you to code thoughtfully.

Attachment:- Programming for Mathematical Finance.rar

Reference no: EM132642729

Questions Cloud

Role of narrator in loneliness of the long distance runner : Analyze the role of narrator in The Loneliness of the Long Distance Runner. Provide specific examples showing why the narrator is reliable or unreliable
Analyze the role of the narrator in the yellow wallpaper : Analyze the role of the narrator in "The Yellow Wallpaper". Provide specific examples showing why the narrator is reliable, unreliable, or moves from one state
Review on a particular developmental disability : Describe the etiology, epidemiology, course, diagnostic and assessment procedures, interventions, challenges, strengths, community support programs, societal
Prepare the trial balance as of april : Prepare income statement for April. Ignore income taxes. Prepare the trial balance as of April 30, 20X8. Collected $10,000 on accounts receivable.
Calculate a simulation approximation to the price : Calculate a simulation approximation to the price of a European put option by taking the average discounted payoff across all paths
What are the business activities of commonwealth bank : What are the business activities of commonwealth bank. Briefly describe the basic business activities involved in the revenue and expenditure cycles
Solve for the COST OF SALES : Solve for the COST OF SALES - Goods received from suppliers on December 20, 2016, $850, was not invoiced to and recorded by the shop until January 2017
Describe bhp group ltd : Describe BHP Group ltd and its business activities. Briefly describe the basic business activities involved in the revenue and expenditure cycles of BHP.
How AARNet is connected to the Internet in Australia : Show the composite signal that each receiver will receive and how each receiver can retrieve its own data using the corresponding spreading code

Reviews

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