Han invests $13,000 into a fund that combines stocks and bonds. The return varies from year...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Han invests $13,000 into a fund that combines stocks and bonds. The return varies from year to year. The balance at 5- year intervals is given in the table below 0 5 10 15 20 25 y (Balance / $1,000)| 13 14.5 16 18.2 19.9 22.3 The goal of this exercise is to find constants a and b such that the model y = ae best fits the data. In order to do that. we apply the natural logarithm to both sides of the model. This yields In y = In (ae) and using properties of logarithms In y In a + In e In y = In a + bt If we let Y= In y, c, Ina and c₂=b, the problem now reduces to finding the linear fit Y = C₁+C₂! If we let y = In y, c₁ = Ina and c₂ = b, the problem now reduces to finding the linear fit Y = C₁ + c₂l to the set of data points 10 5 10 15 20 25 Y In (13) In (14.5) In (16) In (18.2) In (19.9) In (22.3) Part (a) • The vectors t and y have already been created for you. Compute the vector Y by evaluating the natural logarithm of y (note that the natural logarithm is entered as log in MATLAB). Create the matrix X for the linear fit Create the vector z Create the matrix s Find the cholesky decomposition of S and store it in U ▪ Solve the triangular system Uw = z using the backslash command. ▪ Solve the triangular system Uc = w using the backslash command Compute the best fit (use q = t) I • Plot the data points and Y (upper case Y) (Use 'o' to plot points) Plot the fit together with the original data points. Use 'linewidth', 2 and axis tight in your plot (Use '-' linestyle and color the line black) ▪ Release the figure by typing hold off Part (b) ▪ Compute a = ¹ and b = c₂ (where c, and ₂ are the values you found in part (a)). Store the values in the variables a and b respectively. . Enter figure to open a new figure. plot the original data points and y (lower case y) (Use 'o' to plot points) • Define a vector q that starts at 0 and ends at 25 with increments of 0.1. . Use the vector q to compute the exponential fit y=ae and store it in the variable fitz ▪ plot fit2 vs q together with the original data points. (Use red color to plot the line) Part (c) Use the linear model and the values of c, and c₂ computed in part (a) to determine the value ofr when the balance will reach $30,000. Store the result in the variable T. Hint: Note that y represents the balance in thousand of dollars and Y = In y. What should you substitute for Y in the linear fit to represent a balance of $30,000? Make sure you click on Run Script before you submit so you can check for syntax errors. Don't forget to include your name in the first editable line of the script. Han invests $13,000 into a fund that combines stocks and bonds. The return varies from year to year. The balance at 5- year intervals is given in the table below 0 5 10 15 20 25 y (Balance / $1,000)| 13 14.5 16 18.2 19.9 22.3 The goal of this exercise is to find constants a and b such that the model y = ae best fits the data. In order to do that. we apply the natural logarithm to both sides of the model. This yields In y = In (ae) and using properties of logarithms In y In a + In e In y = In a + bt If we let Y= In y, c, Ina and c₂=b, the problem now reduces to finding the linear fit Y = C₁+C₂! If we let y = In y, c₁ = Ina and c₂ = b, the problem now reduces to finding the linear fit Y = C₁ + c₂l to the set of data points 10 5 10 15 20 25 Y In (13) In (14.5) In (16) In (18.2) In (19.9) In (22.3) Part (a) • The vectors t and y have already been created for you. Compute the vector Y by evaluating the natural logarithm of y (note that the natural logarithm is entered as log in MATLAB). Create the matrix X for the linear fit Create the vector z Create the matrix s Find the cholesky decomposition of S and store it in U ▪ Solve the triangular system Uw = z using the backslash command. ▪ Solve the triangular system Uc = w using the backslash command Compute the best fit (use q = t) I • Plot the data points and Y (upper case Y) (Use 'o' to plot points) Plot the fit together with the original data points. Use 'linewidth', 2 and axis tight in your plot (Use '-' linestyle and color the line black) ▪ Release the figure by typing hold off Part (b) ▪ Compute a = ¹ and b = c₂ (where c, and ₂ are the values you found in part (a)). Store the values in the variables a and b respectively. . Enter figure to open a new figure. plot the original data points and y (lower case y) (Use 'o' to plot points) • Define a vector q that starts at 0 and ends at 25 with increments of 0.1. . Use the vector q to compute the exponential fit y=ae and store it in the variable fitz ▪ plot fit2 vs q together with the original data points. (Use red color to plot the line) Part (c) Use the linear model and the values of c, and c₂ computed in part (a) to determine the value ofr when the balance will reach $30,000. Store the result in the variable T. Hint: Note that y represents the balance in thousand of dollars and Y = In y. What should you substitute for Y in the linear fit to represent a balance of $30,000? Make sure you click on Run Script before you submit so you can check for syntax errors. Don't forget to include your name in the first editable line of the script.
Expert Answer:
Related Book For
Corporate Finance
ISBN: 978-0071339575
7th Canadian Edition
Authors: Stephen Ross, Randolph Westerfield, Jeffrey Jaffe, Gordon Ro
Posted Date:
Students also viewed these mathematics questions
-
Find constants A and B such that the function y = A sin x + B cos x satisfies the differential equation y" + y' - 2y = sin x.
-
The data given in the table below are the midterm scores in a course for a sample of 10 students and the scores of student evaluations of the instructor. (In the instructor evaluation scores, 1 is...
-
The density for X is given in the table of Problem 7. (a) Find E[X] (b) Find E[X - ] (c) Find Var[X] (d) Find the standard deviation for X.
-
Pinduoduo plans to launch a new platform to compete with its competitors, JD.Com, Taobao, and Tmall. The product manager of the new platform should decide whether to leverage the social commerce...
-
A packing crate of mass 40 kg must be moved to the left along the floor without tipping. Knowing that the coefficient of static friction between the crate and the floor is 0.35, determine (a) The...
-
For Table 4.3, let Y = 1 if a crab has at least one satellite, and Y = 0 otherwise. Using x = weight, fit the linear probability model. a. Use ordinary least squares. Interpret the parameter...
-
When is the cost of capital equal to the cost of equity? Can the cost of capital be equal to the cost of debt?
-
Banks in New Transylvania have a desired reserve ratio of 10 percent and no excess reserves. The currency drain ratio is 50 percent. Then the central bank increases the monetary base by $1,200...
-
-5 -4 + -2+ 14+ 2 The minimum degree of the polynomial is: 2 The minimum degree of the polynomial is: 3 The minimum degree of the polynomial is: 4 The minimum degree of the polynomial is: 5 The...
-
A process is in statistical control with x = 199 and R = 3.5. The control chart uses a sample size of n= 4. Specifications are at 200 ± 8. The quality characteristic is normally distributed....
-
I am stuck on this... All of the relevant information and data is provided. SCENARIO: CAPITAL BUDGET PROBLEMS Read each problem below and then answer the following questions. PROBLEM 1 The Gabriel...
-
Time left 1:14:58 The market portfolio has an expected excess return of 6% and and a standard deviation of 15%. Asset A sits above the SML and has an expected excess return of 10% inclusive of alpha...
-
Mah, Seng Company Berhad had total earnings last year of $5 million but expects total earnings to drop to $4,750,000 this year because of a slowdown in the consumer sector. There are currently 1...
-
Mackenzie Mining has two operating divisions, Northern and Southern, that share the common costs of the company's human resources (HR) department. The annual costs of the HR department total...
-
Can you explain how a company undertaking a share buyback and using either its existing reserves or borrowing money could result in an increase in its share price. How is value being created for...
-
8 . You are applying for a mortgage loan at 5 . 7 5 % over 3 0 years with monthly payments. The home you are considering is at a price of $ 2 2 9 , 0 0 0 . Lenders are offering 8 0 % loan to value...
-
income tax fundamentals. 6. LO 1.3, LO 1.5, LO 1.8 Marco and Tatiana are married and file separate returns income was $18,000, his itemized deductions were $2,4 assuming the couple does not live in a...
-
If the amplifier indicated by the box input impedance of oo, which of the following statements are true ? has an open loop gain as well as Feedback factor (\beta = 1/ R_1\) The feedback is voltage...
-
ABC Company is considering purchasing manufacturing equipment from two different suppliers. Equipment A has a purchase price of $2.9 million and will cost $80,000, pre tax, to operate on an annual...
-
Air Canada, West Jet, and Transat A.T. Inc. announced purchases of planes on July 18 (18/7), February 12 (12/2), and October 7 (7/10), respectively. Given the following information, calculate the CAR...
-
Evan Inc. has offered $620 million cash for all of the common stock in Tanner Corporation. Based on recent market information, Tanner is worth $585 million as an independent operation. If the merger...
-
As the manager of the external audit team, you realize that the embedded audit module only writes "material" invoices to the audit file for the accounts receivable confirmation process. You are...
-
The internal auditors of Brown Electrical Company report to the controller. Due to changes made in the past year to several of the transaction processing programs, the internal auditors created a new...
-
As an auditor, discuss any concerns that you would have, and any actions that you would take, in the following situation: You are conducting substantive tests on the accounts receivable file to...
Study smarter with the SolutionInn App