Question: Must be done in MATLAB 2. Han invests $ 10,000 into a fund that combines stocks and bonds. The return varies from year to year.
Must be done in MATLAB
2. Han invests $ 10,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 t | Balance (x 1000) 10 14 17 31 10 15 20 25 68 The goal of this problem is to find constants a and b such that the model y = adt best fits the data. In order to do that, we apply the natural logarithm to both sides of the model. This yields Iny- In (ae) and using properties of logarithms ny- Ina+Ine In y = In a + be if we let Y-ny,C1=bn a and o2=b,the problem now redu to the set of data points to finding the linear fit Y = C1+ct 0 In(10) 5 In(14) 10 In(17) 15 In(31) 20 In(48) 25 | In(68) (a) Follow Example 1 to find the best linear fit to the set of data points (t,Y) in the table above using MATLAB. Note that the natural logarithm is entered as log in MATLAB. What values do you obtain for ci and o2? Plot the linear fit together with the points (use q - t) THIS CONTENT IS PROTECTED AND MAY NOT BE SHARED, UPLOADED, SOLD, OR 4 DISTRIBUTED -2018 Stefania Tracogna, SoMSS, ASU MATLAB sessions: Laboratory5 (b) Recalling that y e,a-i and b, plot the original data points t and y together with sure you use an appropriate vector q so that the graph of (e) Use your model to predict when the balance will reach $120,000 dollars. Note: this question the exponential it y- aebt. Make the exponential is nice and smooth. can be answered by hand or using MATLAB (by extending the q range and zooming in the graph of the fit), by using either the linear fit or the exponential model. Make sure you explain in detail which method you used
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
