Question: ***must do in MATLAB*** 2. Han invests $ 10,000 into a fund that combines stocks and bonds. The return varies from year to year. The

***must do in MATLAB***
 ***must do in MATLAB*** 2. Han invests $ 10,000 into a
fund that combines stocks and bonds. The return varies from year to

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 interynls is given in the table below 01 Balance (x 1000) 10 15 20 25 10 14 17 31 48 68 The goal of this problem is to find constants a and b such that the model y aebt 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) In y- Ina +Ineb and using properties of logarithms If we let Y = lny, cl = Ina and ca-b, the problem now reduces to finding the linear fit Y = etc21 to the set of data points t Y O In(10) 5 In(14) 10In(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 c2? Plot the linear fit together with the points (use q-t;)

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 Databases Questions!