Make a yield curve by interpolating and extrapolating from four given terms and yields. Create...

70.2K

Verified Solution

Question

Finance

Make a yield curve by interpolating and extrapolating from four given terms and yields. Create a table of values on a spreadsheet as shown below, but with the following terms and yields:
Term Yield
1 5.00%
1.5 7.00%
3 5.00%
5 9.00%
Create a straight-line interpolation function in VBA called, FInterp(x, xarray, yarray), that takes as input an array of x values, an array of their matching y values, and the x value for which you want it to interpolate/extrapolate a y value. Instructions for doing this are here. Create a new table with column headings Term Interpolated Vlookup true Vlookup false Under Term, create a column of terms running from 0 to 6.0 by increments of 0.2. In the Interpolated column, for each term, call your FInterp to interpolate/extrapolate the yield for that term (If your sheet appears like the one above, the xarray input for the interpolator is $B$5:$B$8, while the yarray is $C$5:$C$8). For comparison, also find what the vlookup function produces. In the column beside your Interpolated column, use vlookup on the table $B$5:$C$8 for each term, with the optional 4th argument, Range_lookup, set to TRUE to have vlookup provide the closest match. In the last column, again use vlookup, but with Range_lookup set to FALSE so that it returns #N/A if there is no exact match. (note: with vlookup set to false, vlookup may return #N/A even for terms of 3 and 5. The failure to find a match is due to unseen numerical errors somewhere around the 16th decimal place of the value in the Term column. Your solution will be accepted even with the #N/As).
(a) What value does your interpolator return for a term of 2.0?
(b) What value does your interpolator return for a term of 0.6?

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students