Question

In: Economics

3. When interest is compounded continuously, the following equation represents the growth of your savings: P...

3. When interest is compounded continuously, the following equation represents the growth of your savings:
P = Poert

Solve the following question in Matlab:

When interest is compounded continuously, the following equation represents the growth of your savings:

Where
P is the current balance
Po is the initial investment
r is the growth rate, expressed as a decimal fraction
t is the time invested in years.
Use the meshgrid function to determine all the possible amounts that could be in your account at the end of 10 years given the following initial investments ($1000, $2000, $3500, $1500, $500) and growth or interest rates (0.15, 0.20, 0.1).

Solutions

Expert Solution

ANSWER :

MATLAB CODE :

%% Finding Final Amount Present in ACCOUNT whose interest rate is
%% Compounded
clear
clc
P_oi = [1000 2000 3500 1500 500];% Initial amount
r = [0.15 0.2 0.1];% Interest rate
t = 10;% time period
m=1;
for i=1
for j=1:5
P_o = P_oi(i,j);
disp('Initial Investment And Differt Interest rates')
fprintf('\n Initial Investment P_o = %d\n\n',P_o);
for k = 1:3
P = P_o*exp(r(i,k)*t);
P(i,k)= P;
fprintf(' interest rate r = %f\nP after 10 years = %d\n\n\n',r(i,k),P(i,k));
end
end
end
[P_o1,r1] = meshgrid(500:500:3500,0.05:0.05:0.35)
Q1 = P_o1*exp(r1*t);
Q = [Q1]
surf(P_o1,r1,Q)

Output :

Initial Investment And Differt Interest rates

Initial Investment P_o = 1000

interest rate r = 0.150000
P after 10 years = 4.481689e+003


interest rate r = 0.200000
P after 10 years = 7.389056e+003


interest rate r = 0.100000
P after 10 years = 2.718282e+003


Initial Investment And Differt Interest rates

Initial Investment P_o = 2000

interest rate r = 0.150000
P after 10 years = 8.963378e+003


interest rate r = 0.200000
P after 10 years = 1.477811e+004


interest rate r = 0.100000
P after 10 years = 5.436564e+003


Initial Investment And Differt Interest rates

Initial Investment P_o = 3500

interest rate r = 0.150000
P after 10 years = 1.568591e+004


interest rate r = 0.200000
P after 10 years = 2.586170e+004


interest rate r = 0.100000
P after 10 years = 9.513986e+003


Initial Investment And Differt Interest rates

Initial Investment P_o = 1500

interest rate r = 0.150000
P after 10 years = 6.722534e+003


interest rate r = 0.200000
P after 10 years = 1.108358e+004


interest rate r = 0.100000
P after 10 years = 4.077423e+003


Initial Investment And Differt Interest rates

Initial Investment P_o = 500

interest rate r = 0.150000
P after 10 years = 2.240845e+003


interest rate r = 0.200000
P after 10 years = 3.694528e+003


interest rate r = 0.100000
P after 10 years = 1.359141e+003

P_o1 =

500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500
500 1000 1500 2000 2500 3000 3500


r1 =

0.0500 0.0500 0.0500 0.0500 0.0500 0.0500 0.0500
0.1000 0.1000 0.1000 0.1000 0.1000 0.1000 0.1000
0.1500 0.1500 0.1500 0.1500 0.1500 0.1500 0.1500
0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000
0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500
0.3000 0.3000 0.3000 0.3000 0.3000 0.3000 0.3000
0.3500 0.3500 0.3500 0.3500 0.3500 0.3500 0.3500


Q =

1.0e+005 *

2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166
2.3166 2.3166 2.3166 2.3166 2.3166 2.3166 2.3166

>>

PLOT :


Related Solutions

The amount of $5000 is placed in savings account where interest is compounded continuously at the...
The amount of $5000 is placed in savings account where interest is compounded continuously at the rate of 6% per year. How long will it take for this amount to triple?
A stock sells for $84 and pays a continuously compounded 3% dividend. The continuously compounded risk-free...
A stock sells for $84 and pays a continuously compounded 3% dividend. The continuously compounded risk-free rate is 5%. a. What is the price of a pre-paid forward contract for one share to be delivered six months (.5 year) from today? b. What is the price of a forward contract that expires six months from today? c.Describe the transactions you would undertake to use the stock and bonds (borrowing and lending) to construct a synthetic long forward contract for one...
The Bank quotes the interest rate on loans as 12% per annum continuously compounded. The interest...
The Bank quotes the interest rate on loans as 12% per annum continuously compounded. The interest is actually paid monthly on a $6911 loan. What is the interest payment (in $) of this loan per month?
Bank Monash quotes the interest rate on loans as 5% per annum continuously compounded. The interest...
Bank Monash quotes the interest rate on loans as 5% per annum continuously compounded. The interest is actually paid monthly on a $3752 loan. What is the interest payment (in $) of this loan per month? p.s That's the whole problem. It didn't provide any info about the duration.
An investment pays 8% interest compounded continuously. If money is invested steadily at the rate of...
An investment pays 8% interest compounded continuously. If money is invested steadily at the rate of ​$16,000​, how much time is required until the value of the investment reaches $160000? 2) Given f'(t)=-0.5t-e^-2t, compute f(5)-f(3) 3) Find the area under the given curve over the indicated interval. y= 6x^2+x+3e^x/3; x=1 to x=5
Suppose the S&P 500 currently has a level of 875. The continuously compounded return on a...
Suppose the S&P 500 currently has a level of 875. The continuously compounded return on a 1-year T-bill is 4.25%. You wish to hedge an $800,000 stock portfolio that has a beta of 1.2 and a correlation of 1.0 with the S&P 500. (a) What is the 1-year futures price for the S&P 500 assuming no dividends? (b) How many S&P 500 futures contracts should you short to hedge your portfolio? What return do you expect on the hedged portfolio?...
Your savings account is currently worth $5,000. The account pays 2.5% interest compounded annually . How...
Your savings account is currently worth $5,000. The account pays 2.5% interest compounded annually . How much will it be worth 3 years from now ? A) 5,543.6 B) 5,384.5 C) 5,978.9 D) 5,998.2
Suppose that the continuously compounded risk-free interest rates for dollars and pounds are 0.04 and 0.06,...
Suppose that the continuously compounded risk-free interest rates for dollars and pounds are 0.04 and 0.06, respectively. A 6-month dollar-denominated European call option on pounds with strike price 1.45 costs $0.05, and a 6-month dollar-denominated European put option on pounds with strike price 1.45 costs $0.02. a) Find the spot (current) exchange rate b) Find the 6-month forward exchange rate on pounds (in dollars per pound).
A stock currently trades at $40. The continuously compounded risk-free rate of interest is 7%, and...
A stock currently trades at $40. The continuously compounded risk-free rate of interest is 7%, and the volatility of the stock return is 35%. Use the Black-Scholes formula to compute each of the following (round each answer to the nearest penny). a) The price of a 0.25-year European call option, struck at $45. Price = $ . ------------------- b) The price of a 0.25-year European put option, struck at $45. Price = $ .----------------------
A futures contract on a share, which pays dividend at a continuously compounded rate of 3%,...
A futures contract on a share, which pays dividend at a continuously compounded rate of 3%, is written when the share has a price of $790, and the continuously compounded risk-free interest rate is 5%. The contract is priced at $800 and expires in 3 months. (b) Demonstrate how you could execute an arbitrage transaction and calculate arbitrage profit. [5]
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT