Sample Solutions for Assignment 2.

Similar documents
1 Interest rates, and risk-free investments

Lesson 4 Annuities: The Mathematics of Regular Payments

CHAPTER 1. Compound Interest

Financial Mathematics for Actuaries. Chapter 1 Interest Accumulation and Time Value of Money

5.1 Simple and Compound Interest

MATHEMATICS OF FINANCE AND INVESTMENT

Math 120 Basic finance percent problems from prior courses (amount = % X base)

Chapter 22: Borrowings Models

Annuities and Sinking Funds

The Basics of Interest Theory

Solutions to Exercises, Section 4.5

Lecture 12: The Black-Scholes Model Steven Skiena. skiena

PowerPoint. to accompany. Chapter 5. Interest Rates

2. Annuities. 1. Basic Annuities 1.1 Introduction. Annuity: A series of payments made at equal intervals of time.

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

$ Example If you can earn 6% interest, what lump sum must be deposited now so that its value will be $3500 after 9 months?

Vilnius University. Faculty of Mathematics and Informatics. Gintautas Bareikis

Math 120 Final Exam Practice Problems, Form: A

1. Annuity a sequence of payments, each made at equally spaced time intervals.

MBA Jump Start Program

Pre-Session Review. Part 2: Mathematics of Finance

Six Functions of a Dollar. Made Easy! Business Statistics AJ Nelson 8/27/2011 1

Math 115 Spring 2011 Written Homework 5 Solutions

1 Cash-flows, discounting, interest rate models

MAINTAINED SYSTEMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University ENGINEERING RELIABILITY INTRODUCTION

1.3 Algebraic Expressions

Equations, Inequalities & Partial Fractions

Betting with the Kelly Criterion

PRESENT VALUE ANALYSIS. Time value of money equal dollar amounts have different values at different points in time.

JANUARY 2016 EXAMINATIONS. Life Insurance I

How To Calculate A Balance On A Savings Account

Some Lecture Notes and In-Class Examples for Pre-Calculus:

MAT116 Project 2 Chapters 8 & 9

Simple Interest. and Simple Discount

Unit #14 - Integral Applications in Physics and Economics Section 8.6

Factoring Polynomials

Their point of intersection is the break-even point. The graph. Loss at right represents a break-even situation.

Guided Study Program in System Dynamics System Dynamics in Education Project System Dynamics Group MIT Sloan School of Management 1

9.2 Summation Notation

Microeconomics Sept. 16, 2010 NOTES ON CALCULUS AND UTILITY FUNCTIONS

Chapter 2. CASH FLOW Objectives: To calculate the values of cash flows using the standard methods.. To evaluate alternatives and make reasonable

Confidence Intervals for the Difference Between Two Means

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

EQUATIONS and INEQUALITIES

The Credit Card Model

Chapter 2 Finance Matters

$ ( $1) = 40

Finance 197. Simple One-time Interest

MATH 21. College Algebra 1 Lecture Notes

Call and Put. Options. American and European Options. Option Terminology. Payoffs of European Options. Different Types of Options

Basic Banking. 2) Money that a bank allows you to borrow and pay back with interest

CHAPTER 5 INTRODUCTION TO VALUATION: THE TIME VALUE OF MONEY

ECE302 Spring 2006 HW4 Solutions February 6,

1. (First passage/hitting times/gambler s ruin problem:) Suppose that X has a discrete state space and let i be a fixed state. Let

Computational Finance Options

The Credit Card Model

Section 1.5 Linear Models

Annuities: Present Value

Cooling and Euler's Method

10.6 Functions - Compound Interest

Option pricing. Vinod Kothari

MATH1510 Financial Mathematics I. Jitse Niesen University of Leeds

CHAPTER FIVE. Solutions for Section 5.1. Skill Refresher. Exercises

Percent, Sales Tax, & Discounts

TOPIC 4: DERIVATIVES

e.g. arrival of a customer to a service station or breakdown of a component in some system.

Compound Interest Formula

CHAPTER 4 DISCOUNTED CASH FLOW VALUATION

5. Time value of money

18.06 Problem Set 4 Solution Due Wednesday, 11 March 2009 at 4 pm in Total: 175 points.

Compound Interest. Invest 500 that earns 10% interest each year for 3 years, where each interest payment is reinvested at the same rate:

8.1 Simple Interest and 8.2 Compound Interest

Chapter 2: Linear Equations and Inequalities Lecture notes Math 1010

Lecture 6 Black-Scholes PDE

Homework #2 Solutions

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

REGS 2013: Variable Annuity Guaranteed Minimum Benefits

Understand the relationship between financial plans and statements.

Section 1.3 P 1 = 1 2. = P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., =

Section 9.5: Equations of Lines and Planes

Dick Schwanke Finite Math 111 Harford Community College Fall 2013

( 1) = 9 = 3 We would like to make the length 6. The only vectors in the same direction as v are those

16 21 Linear vs. Exponential.notebook May 14, LT 1c: I can compare linear vs. exponential change.

Chapter 2 Premiums and Reserves in Multiple Decrement Model

Section 4.5 Exponential and Logarithmic Equations

Finance 350: Problem Set 6 Alternative Solutions

This means there are two equilibrium solutions 0 and K. dx = rx(1 x). x(1 x) dt = r

Solutions to old Exam 1 problems

CHAPTER 4 DISCOUNTED CASH FLOW VALUATION

Numbers 101: Cost and Value Over Time

7-2 Solving Exponential Equations and Inequalities. Solve each equation x = 27 2x 4 SOLUTION:

8.7 Exponential Growth and Decay

averages simple arithmetic average (arithmetic mean) weighted average (weighted arithmetic mean) 32 33

Student Performance Q&A:

Chapter 5 Discounted Cash Flow Valuation

Sample Test Questions

Time Value Conepts & Applications. Prof. Raad Jassim

Finding the Payment $20,000 = C[1 1 / ] / C = $488.26

Calculations for Time Value of Money

Transcription:

AMath 383, Autumn 01 Sample Solutions for Assignment. Reading: Chs. -3. 1. Exercise 4 of Chapter. Please note that there is a typo in the formula in part c: An exponent of 1 is missing. It should say 4 dr dt = a R. a We are given a differential equation for N c t, the number of cells at time t, and wish to express it as a differential equation for mt, the total body mass at time t, where mt = m c N c t and m c is a constant equal to the mass of a single cell. We can write dt = d dt m dn c cn c t = m c dt = m c E c Y t Y c N c t. Replacing N c t on the right-hand side by mt/m c, we obtain an equation for /dt as a function of mt and Y t: dt = m c E c Y t Y c E c mt, and substituting the given expression for Y t, dt = am3/4 bm, 1 where a = Y 0 m c /E c and b = Y c /E c. b When /dt = 0, am 3/4 = bm, so solving for m we find that the mass of the matured organism M is: M = a/b 4. Returning to the differential equation 1, and factoring out am 3/4, we can write /dt = am 3/4 [1 b/am 1/4 ] and replacing b/a by 1/M 1/4 gives the desired form dt = am3/4 [1 m/m 1/4 ]. 1

c Letting r = m/m 1/4 and R = 1 r, we can write dr dt = 1 m 3/4 1 4 M M dt, and substituting expression for /dt, dr dt = 1 m 3/4 1 4 M M am3/4 [1 m/m 1/4 ] = Finally, using the expression for Rt, dr a dt = Solving for Rt, we find Rt = exp at R. R0. a [1 m/m1/4 ]. Dividing each side by R0 and taking logs on both sides gives Rt ln = at R0 4M, 1/4 which shows that if lnrt/r0 is plotted vs. at/ it will be a straight line through the origin with slope 1. Note that this holds for any organism regardless of its size. d In c, we showed that dr a dt = R, 3 which is an equation describing the rate at which different organisms grow to maturity in terms of their mass M at maturity. If we introduce a new time variable τ = at/, which is adjusted for the mass of the organism, then, using the chain rule, and equation 3 becomes dr dτ = dr dt dt dτ = dr dt dr dτ = Rτ. 1/4 4M, a This holds for all animals regardless of their mass M. Since the rate at which any mammal matures is the same in terms of τ and τ M 1/4, time scales associated with the animal, such as time to maturity or lifetime should scale as M 1/4. Since the lifetime of an animal is the product of the number of heartbeats 1.5 billion and the interval between heartbeats, the interval between heartbeats should also scale as M 1/4.

. Exercise 7 of Chapter. a We are told that the number of nodes that currently have k links and gain one when the new node comes into the network is kp k n/. Similarly, the number of nodes that currently have k 1 links and gain one when the new node comes into the network is k 1p k 1 n/. Let N k n + 1 denote the number of nodes with k links after the new node enters the network and N k n denote the number of nodes with k links before the new node enters. Then N k n + 1 N k n = k 1p k 1n kp kn. b For a large network, we expect the ratios p k n N k n/n to be almost constant independent of n, so let s denote these simply as p k. Then the equation in part a can be written as c that is, n + 1p k np k = k 1p k 1 p k 1 + k k 1 = p k 1 [Note that this makes sense only for k.] p k = k 1 p k 1 = k + k 1 k + kp k ; p k p k 1 = k 1 k +. k p k = k + 1 k 1 k k 3 k 1! p k 3 =... = p k + k + 1 k k + k + 1 5 Most of the factors in the numerator and denominator cancel and we are left with 4 p k = p ; k + k + 1k that is, for k large, p k k 3. 3. Exercise 4 of Chapter 3. This should have said your choices are to take 5 annual payments of $400,000 each or to take $5 million dollars up front. [Now, there might be reasons independent of interest rates that would make you want the money in one form or the other. For instance, if you owe a loan shark $4 million dollars and he is threatening to break your legs if you don t pay immediately, you should take the $5 million dollars up front, for sure! One person mentioned tax differences, which I hadn t actually thought about. 3

The $5 million lump sum would surely be taxed at a higher rate than the $400,000 installments. I will just discuss a decision based on interest rates.] Suppose you take the $5 million up front and you deposit it at interest rate r per year, compounded continuously, but at the start of each year you withdraw $x to buy cool things. So initially you deposit 5 10 6 x. At the end of the first year it has grown to e r 5 10 6 x. You then withdraw x more dollars and you are left with e r 5 10 6 x x = e r 5 10 6 x[1 + e r ]. At the end of the second year you have e r 5 10 6 x[e r + e r ] and after withdrawing your spending money for the coming year this becomes e r 5 10 6 x[1 + e r + e r ] After 4 years which is when the last installment payment would be made, you will have e e 4r 5 10 6 x[1 + e r +... + e 4r ] = e 4r 5 10 6 5r 1 x. 4 e r 1 Now suppose you take $400,000 per year for 5 years. Assume that you earn the same interest rate and have the same spending habits as above so we are assuming that the amount x that you spend each year is less than or equal to 400, 000. You initially receive $400,000 and you set $x aside for spending. You deposit the remaining 4 10 5 x dollars at interest rate r per year and at the end of one year you have e r 4 10 5 x. You now receive your next installement of $400,000 and you set aside another $x for spending. You add the rest to your savings so that you have [e r + 1]4 10 5 x. This earns interest over the next year so that after years you have [e r + e r ]4 10 5 x. You then receive your next installment and deposit all but $x of that so that you have [e r + e r + 1]4 10 5 x. This continues until you receive your last installment, at which time you have e [e 4r +... + e r + 1]4 10 5 5r 1 x = 4 10 5 x. 5 e r 1 4

By setting the right-hand side of 4 equal to that of 5 and solving for r, we can determine the breakeven point r. For r < r, it is better to take the installments, while for r > r it is better to take the lumpsum. Another idea is to plot the right-hand sides of 4 and 5 vs. interest rate r say, for x = 0 and look at where the plots intersect to determine the breakeven point. 6 x 107 Breakeven = 0.067375 lumpsum installments 5 4 Savings after 4 years 3 1 0 0 0.01 0.0 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 r For this problem there was no one right answer. But whatever answer you got, you needed to say what the assumptions were that led to that answer. Were you assuming interest compounded continuously, annually, or at some other rate? 4. In the 1999 movie Office Space, a character creates a program that takes fractions of cents that are truncated in a bank s transactions and deposits them to his own account. This is not a new idea, and hackers who have actually attempted it have been arrested. In this exercise we will simulate the program to determine how long it would take to become a millionaire this way. Assume that we have access to 50,000 bank accounts. Initially we can take the account balances to be uniformly distributed between, say, $100 and $100,000. The annual interest rate on the accounts is 5%, and interest is compounded daily and added to the accounts, except that fractions of a cent are truncated. These will be deposited to an illegal account that initially has balance $0. a Take the following partial MATLAB code and fill in the indicated lines to simulate the Office Space scenario. [Alternatively, you may write a code in a language of your choice to do the same thing.] % Simulate "Office Space" scenario, where fractions of a 5

% penny from legal accounts are transferred to an illegal % account. Determine how long before illegal account has % a million dollars. accounts = 100 + 100000-100*rand50000,1; % Sets up 50,000 accounts with % balances between $100 and $100000. accounts = floor100*accounts/100; % Deletes fractions of a cent from % initial balances. illegal = 0; % illegal acct is initially 0. days = 0; while illegal < 10^6, % Continue until illegal acct % has a million dollars days = days + 1; accounts_new = % Add daily interest to accounts. %% Fill in formula for value of accounts after interest is added. accounts = floor100*accounts_new/100; % Delete fractions of a cent. illegal = % Add daily interest to illegal acct. %% Fill in formula for value of illegal acct after interest is added. illegal = illegal + % Also add fractions of a cent % deleted from other accounts. %% Fill in an expression for the total amount of money deleted from the other %% accounts that will now be added to illegal acct. You may want to use %% the Matlab sum command. end; days, illegal % Print results. The first lines of the code set up the initial accounts. The MATLAB function rand generates uniformly distributed random numbers between 0 and 1. The function floor takes the largest integer that is less than or equal to its argument. Thus, if an account value is, say 57.15 dollars, we multiply by 100 to get 571.5 cents, then take floor of this number to get 571 cents. Finally to get the truncated amount back into dollars, we divide by 100 and have 57.1 dollars. After setting up the accounts and initializing the illegal account to 0, we will now iterate until the amount in the illegal account reaches a million dollars 10 6, using a while loop. Inside that loop, the first thing you need to fill in is a formula for the value of the accounts after interest is added. This is stored in the vector accounts_new. The line after that uses floor to delete fractions of a cent, just as was done in the initial setup. Next you need to fill in a formula for the value of the illegal account after interest is added. We will assume that this account can hold fractional amounts, so it will not be truncated. Finally, you need to add to 6

the illegal account all of the money that was removed from the other accounts. You may find the MATLAB sum command useful for this. Turn in a listing of your code or, at least, the lines that you filled in above as well as the answer to the question of how long does it take to become a millionaire this way. I filled in the following lines: accounts_new = accounts*1 +.05/365; % Add daily interest to accounts. accounts = floor100*accounts_new/100; % Delete fractions of a cent. illegal = illegal*1 +.05/365; % Add daily interest to illegal acct. illegal = illegal + sumaccounts_new-accounts; % Also add fractions of a cent deleted from other accounts. I found that it took 3189 days or about 8.7 years to become a millionaire this way. b Without running your code, answer the following questions: On average about how much money would you expect to be added to the illegal account each day due to the embezzlement? Suppose you had access to 100,000 accounts, each initially with a balance of, say $5000. About how much money would be added to the illegal account each day in this case? Explain your answers. On average, the illegal account would get about 0.005 dollars half a cent from each account that it accesses independent of the amount in that account, assuming only that the fractions of a cent in the accounts are uniformly distributed. Hence with access to 100,000 accounts, I would expect to embezzle about 500 dollars a day. 7