## Assignment 7

BUSI 721: Data-Driven Finance I

Rice University

Consider a 5-year bond and a 30-year bond. Suppose each has $1,000 face value and pays semi-annual coupons totaling 6% of face value per year. Suppose the next coupon for each bond is six months away. Compute and plot the prices of the bonds for yields in a grid of 0 to 12%. Which price is most sensitive to the yield?

Compute the longest available history of monthly IEF returns using adjusted closing prices from Yahoo Finance. Get the Fed Funds rate from FRED (the name of the data is “FEDFUNDS”). Compute the monthlychange in the Fed Funds rate, and compute the correlation between the monthly change in the rate and the monthly (same month) IEF return. The following computes monthly IEF returns from first of month to first of month to match the Fed Funds data.

```
1970)["Adj Close"]
price = yf.download("IEF", start=
price = price.resample("MS").first() ief = price.pct_change().dropna()
```