1. Homepage
  2. Programming
  3. MATH40082 Computational Finance: Mini Task 1 - Financial Contract Pricing

MATH40082 Computational Finance: Mini Task 1 - Financial Contract Pricing

Engage in a Conversation
UKThe University of ManchesterMATH40082Computational FinancePythonR

MATH40082 Mini Task 1 CourseNana.COM

Version 10747214 CourseNana.COM


A trader has asked you to price the value of the financial contract Π(S, t) CourseNana.COM

at time t = 0 which has the formula
d1 = tan((S/X) 1) + r(T t)e1(σ2/q) CourseNana.COM

cos(σ2(T t))
d2 = tan((S/X) 1) q(T t)e1(σ2/q) CourseNana.COM

cos(σ2(T t))
Π(
S,t) = Se1+σ2(Tt)er(Tt)N(d1) X?1 + (X/S)eq(Tt)N(d2) CourseNana.COM

where T = 1, X = 25000, r = 0.0248, q = 0.0424, σ = 0.2744. Here N(x) is the standard normal cummulative distribution function. CourseNana.COM

Tasks CourseNana.COM

1. Using the formula and the parameters provided write a program to calculate Π and output the results to the screen. You must generate four columns of data: CourseNana.COM

the value of S,
the value of d1,
the value of d2,
and the value of Π(S,t = 0). CourseNana.COM

Output each of the values when the stock price is
S ∈ {18750, 20000, 21250, 22500, 23750, 25000, 26250, 27500, 28750, 30000, 31250}. You should use a for loop to generate the data. CourseNana.COM

Instructions CourseNana.COM

This coursework should not take more than 2 hours or so to complete. You may use any codes that I have provided in Lab Classes or Support Classes as part of your solution (any codes/examples will be uploaded to the forum). Please write your own code and final solution, you may work together but do not transfer codes or solution files (via email/USB etc.). CourseNana.COM


CourseNana.COM

For the solution you should create a document (accepted formats are doc/docx/pdf) containing
CourseNana.COM


* A title with your student id number (9******) – do not mention your name; CourseNana.COM


* a table of your results - it must be a formatted table (not a screen- shot or plain text) within the document, numbered, captioned and labelled correctly as if it were in a technical report (2 marks); CourseNana.COM

* your full program - it doesn’t need annotations but you could add a small number of comments within the code (3 marks); CourseNana.COM

* NO text or accompanying comment is required. This exercise is worth 5% of the total mark for the course. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
UK代写,The University of Manchester代写,MATH40082代写,Computational Finance代写,Python代写,R代写,UK代编,The University of Manchester代编,MATH40082代编,Computational Finance代编,Python代编,R代编,UK代考,The University of Manchester代考,MATH40082代考,Computational Finance代考,Python代考,R代考,UKhelp,The University of Manchesterhelp,MATH40082help,Computational Financehelp,Pythonhelp,Rhelp,UK作业代写,The University of Manchester作业代写,MATH40082作业代写,Computational Finance作业代写,Python作业代写,R作业代写,UK编程代写,The University of Manchester编程代写,MATH40082编程代写,Computational Finance编程代写,Python编程代写,R编程代写,UKprogramming help,The University of Manchesterprogramming help,MATH40082programming help,Computational Financeprogramming help,Pythonprogramming help,Rprogramming help,UKassignment help,The University of Manchesterassignment help,MATH40082assignment help,Computational Financeassignment help,Pythonassignment help,Rassignment help,UKsolution,The University of Manchestersolution,MATH40082solution,Computational Financesolution,Pythonsolution,Rsolution,