Question: MAT 3 2 2 ( 2 0 2 4 ) : Computational Assignment 1 [ Total Marks 4 0 ] Due: See the dates in

MAT322(2024): Computational Assignment 1[Total Marks 40]
Due: See the dates in the Course Outline.
Instructions:
Evaluation of assignments will be in two phases: Phase 1[50% Marks: In-person explanations of the
codes that you write plus running them and showing the results on screen], and Phase II [50% Marks:
Final evaluation on hard copy submissions (instructions on these submissions will be given after Phase I
is concluded).] You can work in a group and can use a programming language of your choice (you may
prefer to use MATLAB for various reasons). When done, you will have to run and show the simulations
to me in person. If you have failed to do so, you will loose the marks for this part.
I will not expect you to add the theoretical part when you submit the hard copy of the assignments but
I may ask questions on that part during evaluation Phase I.
The final assignment is due as per the date stipulated in the course outline. However, before that there
will be several lab sessions that you need to attend in person. The attendance will be taken in each of
these lab sessions. The Phase I of the evaluation will take place in those sessions.
Assignment Questions:
Q.1 Using the information presented on page 25-26(Chapter 2), write a code to calculate (x). Check your
code for positive as well as negative values of x.
Q.2 Starting at some fixed time, let A(n) denotes the price of an ABSA share at the end of n additional
weeks, n1; and let the evolution of these prices assumes that the price ratios AnA(n-1) for n1
are independent and identically distributed lognormal random variables. Assuming this model, with
lognormal parameters and , write a code to calculate the probability that the price of the share at
the end of the M weeks is higher than it is today? Test your code for =0.016,=0.038,M=7.[6]
Q.3 Use present value analysis to determine which of the following three payment sequences you would prefer
if you are to receive payments (in thousands of Rands) at the end of each of the next ten years when the
nominal interest rate is r :
A.12,14,16,18,20,20,18,16,14,12;
B.16,16,15,15,15,15,15,12,16,15;
C.20,16,14,12,10,16,20,16,10,10.
Write a code which can read different values of r and give you present values for each of these sequences.
Test you code for the values of r as 0.12,0.14,0.20 and 0.22.
Q.4 Suppose that you take a mortgage loan for the amount L that is to be paid back over n months with
equal payments of A at the end of each month. The interest rate for the loan is r per month, compounded
monthly. Write a code which:
reads the values of L,n and r and gives you the value of A.
can calculate the additional loan principal after the payment has been made at the end of month j.
can calculate how much of the payment during month j is for interest and how much is for principal
reduction.
Test these codes for a range of L,n,r and j values.
Q.5 Write a code to calculate the risk-neutral value of a t-month European put option to sell a First African
Bank share for a price of K when the current price is s, the interest rate is r(with the unit of time
being one year), and the volatility of the security on the Spring Stock Exchange is .[Hint. Use
the formula for C which is given in Chapter 7 and then the put-call-parity formula given in Chapter
You will also need the code that you would develop to answer Question 1.] Test your code for
t=3 months, s=210,K=190,r=9%,=0.22.
MAT 3 2 2 ( 2 0 2 4 ) : Computational Assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!