{"id":40,"date":"2025-04-21T03:25:15","date_gmt":"2025-04-21T03:25:15","guid":{"rendered":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/?post_type=chapter&#038;p=40"},"modified":"2025-06-13T13:13:40","modified_gmt":"2025-06-13T13:13:40","slug":"yield-curve","status":"publish","type":"chapter","link":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/chapter\/yield-curve\/","title":{"raw":"Yield Curve","rendered":"Yield Curve"},"content":{"raw":"<div class=\"textbox\">\r\n<p class=\"import-epf\">\u201cYo word is yo bond,\u201d which in today\u2019s Hip Hop Culture has become <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">word is born<\/span><\/span>.<\/p>\r\n<p class=\"import-ept\" style=\"text-align: right;\">Geneva Smitherman<\/p>\r\n\r\n<\/div>\r\n<h1 class=\"import-ahaft\">7.1 Bond Basics<\/h1>\r\n<p class=\"import-pf\">It is January 1, 2030. You give XYZ Inc. $1,000 today, and they promise to pay you back in two years. Congratulations, you just bought a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>!<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The $1,000 is called the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">face<\/em><\/span> or <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">par<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">value<\/em><\/span>, and the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">maturity<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">date<\/em><\/span> is two years from now, January 1, 2032 (when you get the face value back). Not surprisingly, you own a two-year bond.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Of course, you must be compensated for the time value of money\u2014$1,000 two years from now is worth less than $1,000 right now. So XYZ also promises to pay you interest at regular intervals\u2014say, every six months. The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">coupon<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">rate<\/em><\/span>, say 5%, tells you the interest you will be paid in a year. Five percent of $1,000 is $50, so you will get two payments of $25.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Because the coupon (interest) and final payments are on a strict schedule, bonds are called <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">fixed-income securities<\/em><\/span>. Bonds are <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">debt<\/em><\/span>, and they give investors a safer but lower return, on average, than stocks which are <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">equity<\/em><\/span> (since they involve ownership of a corporation).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The jargon\u2014special words or technical language used by professionals\u2014can make financial products and choices difficult to understand. We can make your bond come to life with Excel. As you enter the information, think about the trade-off involved here\u2014the lender (you) gives up money now in return for future payments from the borrower (XYZ). This is the core idea.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Open a blank Excel workbook and save it as <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span>. In cells A1 to A5, enter the dates <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2030<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">7\/1\/2030<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2031<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">7\/1\/2031<\/em><\/span>, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2032<\/em><\/span>, respectively. In cell B1, enter <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">-$1000<\/em><\/span>; this is the amount you invested in the bond (hence the minus sign). Cells B2, B3, and B4 represent the coupon payments, so enter <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">25<\/em><\/span> for each of those cells. At the end, you get the last interest payment plus the face value back, so cell B5 is <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1,025<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Your spreadsheet now looks quite familiar, given the work we did on present value and the internal rate of return (IRR). That\u2019s right; a bond is just another application of those ideas. You start with a negative number that represents your investment, then get a stream of income over time that is your return on investment.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR is a measure of the quality of an investment; the bigger it is, the better the investment. We can compute the IRR for these cash flows at these dates using Excel\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">XIRR<\/em><\/span> function. It incorporates the dates at which the flows are paid and received and returns the annualized internal rate of return.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=XIRR(B1:B5,A1:A5)<\/em><\/span> in cell C1 and format it as a % with two decimal places. In cell D1, enter the label <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">IRR<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YTM<\/em><\/span> so that your spreadsheet replicates Figure 7.1.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"472\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p215-1.png\" alt=\"screen-capture of cells showing a 2-year bond with semi-annual payments\" width=\"472\" height=\"168\" \/> <strong>Figure 7.1: Understanding a bond.<\/strong>[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR is a little over 5% because you received the annual interest payment of $50 a little ahead of time: $25 halfway through the year and another $25 at the end of the year instead of all $50 at the end of the year.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Confirm this by changing cells B2 and B4 to 0, cell B3 to $50, and cell B5 to $1,050.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Cell C1 now shows the IRR as 5.00%. This shows that the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">XIRR<\/em><\/span> function is working as advertised. It also shows that the timing of the coupon payments is critical. Your spreadsheet is now displaying a different bond than the one in Figure 7.1. The IRR of the bond in Figure 7.1 is higher than the one on your spreadsheet because of the timing of the interest payments.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR for a bond is called the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">to<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">maturity<\/em><\/span> (YTM). It is calculated as if the investor will hold the bond until the maturity date. But they might not. Bonds can be traded before they mature in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">secondary<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">market<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">zero-coupon<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>, also called a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">strip<\/em><\/span>, is just what it says\u2014it has no interest payments.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change the value in cell B3 to 0 (so the values in cells B2, B3, and B4 are all 0), and make cell B5 $1,000.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The YTM is now zero. That\u2019s terrible. No investor would buy this bond. To entice buyers, the issuer must sell the bond at a discount (or below par).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell B1 to <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">-<\/em><em class=\"import-i\">$<\/em><em class=\"import-i\">900<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">That\u2019s better. Now the YTM is about 5.4%. Investors are compensated for lending $900 today by getting the face value of the bond, $1000, in two years. Someone might be willing to buy this bond and lend the issuer $900.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Bonds are complex financial assets. They have many variations, and the jargon is intimidating, but no matter how complicated it gets, the idea is that a bond is a promise\u2014money in the future is promised in return for money now.<\/p>\r\n\r\n<h2 class=\"import-bh\">Yield Data<\/h2>\r\n<p class=\"import-paft\">With a basic understanding of a bond and how it works, we can get yield data and create visualizations, including that of our ultimate goal: the yield curve over time.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We will work with US Treasury securities with different maturity dates. They all work like bonds, but they have different names depending on their maturity dates: Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bills<\/em><\/span> mature in 1 year or less, Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">notes<\/em><\/span> in two to 10 years, and Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bonds<\/em><\/span> in 20 or 30 years.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">First, we will examine a single security over time, but our eventual goal is to visualize a richer dataset with yields for different maturities over time. This will give us the yield curve.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Insert a sheet in your workbook, rename it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, and enter the Series ID <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span> (for government security maturing in 1 year) in cell A1. Use the FRED Excel add-in to get the data. Use FRED\u2019s charting tools to make a chart with recession shading, like Figure 7.2 (made in October 2023). Refer back to the work we did using FRED to get unemployment data (in chapter 5) if needed.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Figure 7.2 shows the yield on a one-year US Treasury bill on a monthly frequency from April 1953 to September 2023. Your spreadsheet will have this series up to the previous month in which you created it.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"923\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p217-1.png\" alt=\"plot showing variation in T-bill rates over time\" width=\"923\" height=\"546\" \/> <strong>Figure 7.2: One-year US Treasury bill yield over time.<\/strong><br \/>Source: Board of Governors of the Federal Reserve System (US) via FRED, Public Domain Data \/ <a href=\"https:\/\/fred.stlouisfed.org\/legal\/\">FRED Terms<\/a>.[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Unlike the unemployment rate, which rose in every recession, one-year US Treasury bill yields are mostly falling when they enter the shaded bars. This is because the government is actively trying to use monetary policy to lower interest rates to stimulate the economy.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The US Federal Reserve (Fed) acts as a central bank and influences many different interest rates, including bond yields, by controlling the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">federal funds rate<\/em><\/span> (the interest rate at which banks lend reserves to each other).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The key point for our yield data is that one-year US Treasury bill yields are not directly controlled by the Fed. They are the outcome of supply and demand. Bonds, including US Treasury securities, can be traded before their maturity dates. It is the bond market that determines yields.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It is easy to see in Figure 7.2 that in the early 1980s, yields were very high, in double-digit territory. Why? Certainly, a contributing factor was high inflation at that time. The yield had to be high to entice the lender to part with money now to be paid back later.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to your bond demonstration sheet. You should see the zero-coupon bond. You part with $900 now and get $1,000 in two years, which has a YTM of about 5.4%.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">In the early 1980s, there would be no way you would give anyone (XYZ or the US government) $900 in return for $1,000 in two years. The $1,000 you got back two years later would be so watered down by the high inflation at that time that you would refuse that deal. So the issuer would need to raise the yield by lowering (discounting) the bond by more than $100.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell B1 to <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">-<\/em><em class=\"import-i\">$<\/em><em class=\"import-i\">800<\/em><\/span>. What happens?<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Not surprisingly, the YTM increases to almost 12%. Is that enough to get you to make the trade? Not in August 1981.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span> sheet. Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=MAX(B:B)<\/em><\/span> in cell C8 to see the highest yield in the dataset. Scroll down to find when it occurred.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">In August 1981, the market, or equilibrium, yield was 16.7%. You would not lend unless you got that yield, just like you would not buy apples from a particular seller if their price was higher than the market price that many other sellers were selling apples for.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to the sheet with the simple two-year bond we were playing with and use Solver to find the discount in the bond price needed to produce a yield of 16.7%. Be sure to uncheck (if needed) Solver\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Make unconstrained variables nonnegative<\/em><\/span> option, since we want a negative number in cell B1.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You should find that the bond price is roughly $734, so it is a discount of $266 from the par value.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The inverse relationship between the yield and the bond price is a fundamental concept in the bond world. The Excel implementation of a bond makes it easy to see: The lower the price (the bigger the discount) in cell B1, the higher the yield.<\/p>\r\n\r\n<h2 class=\"import-bh\">Yields for Different Maturities<\/h2>\r\n<p class=\"import-paft\">Just like <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, the yield on a 1-year US Treasury bill, FRED has data for yields on US Treasury securities with different maturities, also known as the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">term<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">structure<\/em><\/span>. We will get data on US Treasuries from 3-month to 30-year terms.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Insert a sheet in your workbook and name it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">TermStructure<\/em><\/span>. In individual cells in the top row, enter the following <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Series<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">IDs<\/em><\/span>: <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS3M<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS6M<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS2<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS3<\/em><\/span>. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS5<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS7<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS10<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS20<\/em><\/span>, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS30<\/em><\/span>. The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">M<\/em><\/span> stands for months, and the numbers indicate the length of time. So <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS6M<\/em><\/span> is a 6-month US Treasury bill, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS20<\/em><\/span> is a 20-year Treasury bond. Click the <span class=\"import-ccust1\">Get FRED Data<\/span> button.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The series start at different dates. We need to find the latest date and start them all from that point so that we can see how the yields varied by maturity on the same date.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>The latest starting date in row 8 is 9\/1\/1981. Copy this cell and paste it in cells E4, G4, and so on until S4. Update the data.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Each row has yields for differing maturities of US Treasury securities for a particular point in time. Thus, each row has the data for the yield curve for that month.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Here is how the Fed describes the yield curve:<\/p>\r\n\r\n<blockquote>\r\n<p class=\"import-bqf\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">Investors can trade Treasury securities freely between issuance and maturity. As the market price of Treasury securities varies over time, so does their implied yield\u2014their return relative to their price. At any given time, there is a wide range of Treasury securities with different maturities outstanding. Market forces tend to ensure that the yields on securities with similar maturities are not dramatically different from each other. This feature makes it possible to summarize the information contained in the cross section of market-implied yields by a smooth curve of yield as a function of maturity\u2014the yield curve.[footnote]<span style=\"border: none windowtext 0pt; padding: 0;\">Source:<\/span> <a href=\"https:\/\/www.federalreserve.gov\/data\/nominal-yield-curve.htm\"><span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">https:\/\/www.federalreserve.gov\/data\/nominal-yield-curve.htm<\/span><\/span><\/a>[\/footnote]<\/p>\r\n<\/blockquote>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Thus, the yield curve shows yield by maturity. Let\u2019s make one.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Copy the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">TermStructure<\/em><\/span> sheet and rename it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve<\/em><\/span>. Change each of the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">value<\/em><\/span> labels in row 7 to the corresponding length of time in years. Cell B7 is 0.25 (you may have to increase the decimal places displayed), cell D7 is 0.5, cell F7 is 1, and so on. Delete rows 1 to 6. Delete the date columns, starting with column C (so C, E, G, and so forth, all the way to S). Finally, select the yield data (from B2 to the last row in column K) and display two decimal places.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You now have a dataset that looks like Figure 7.3. It has dates in column A, lengths of maturity in years in row 1, and yields for each month by maturity. These are the inputs needed to make a yield curve.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"923\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p220-1.png\" alt=\"screen-capture of cells with yield data for different maturities over time\" width=\"923\" height=\"145\" \/> <strong>Figure 7.3: Data to make a yield curve.<\/strong>[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Select cells A1:K2 and insert a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Scatter with Straight Lines and Markers<\/em><\/span> chart. Add a title, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Curve<\/em><\/span>, and label the axes <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(%)<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Maturity<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(years)<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You just made your first yield curve. It is not common. Usually, it is upward sloping. The longer the maturity, the higher the yield, because lenders have to be rewarded for locking up their money for longer periods of time.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The 1980s were certainly exceptional economic times. The yield curve was <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">inverted<\/em><\/span> because yields for shorter maturities were higher than those for longer maturities. This usually means bad tidings for the economy.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">There is another step we could take to make our yield curve a true curve: We could fit a smooth curve to the data. The smoothed curve version of yield as a function of maturity is what most people call a yield curve. There are many ways to fit such a curve, and it gets complicated, so we will stay with our rudimentary version that connects the data with straight lines.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We can easily make another yield curve so we can understand what the yield curve is telling us. We work smart by using the edit SERIES formula approach.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Copy and paste the chart. Click on the data and edit the SERIES formula by changing the 2 to 222 in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">y<\/em><\/span>-axis part of the formula, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$B$222:$K$222<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You just produced a yield curve for January 2000. Unlike September 1981, it rises fast, then stretches out. Figure 7.4 compares the two yield curves.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">While the slightly lower yield for 30 versus 20 years is unexpected, the January 2000 yield curve (on the right) is a typical yield curve. As the yield to maturity rises from very short term (starting at 30 days) to 2 years, yields rise quickly, but then they rise much more slowly as maturity increases.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"923\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p221-1.png\" alt=\"plots of two example yield curves, one inverted and the other normal\" width=\"923\" height=\"279\" \/> <strong>Figure 7.4: September 1981 (left) and January 2000 (right) yield curves.<\/strong>[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We learned about bonds and yields, got yield data, and created yield curve charts. Next up, we work on fancier visualizations of yield curve data.<\/p>\r\n\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Takeaways<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<p class=\"import-paft\">In everyday English, a bond is a connection between people (a bond of friendship) or objects (to bond is to glue things together). In finance, the connection is between lender and borrower.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A bond is a security in which a borrower (e.g., a firm or government) promises to pay back the face value at the maturity date and make interest payments at specific dates (to compensate the lender for the time value of money).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Unlike the two-year bond we implemented in Excel, most bonds are on a 30\/360 calendar and have a high threshold of legalese, like this example:<\/p>\r\n\r\n<blockquote>\r\n<p class=\"import-bqf\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">(1) Interest. Ventas Realty, Limited Partnership (the \u201cIssuer\u201d) promises to pay interest on the principal amount of this Note at 4.125% per annum from July 16, 2015 until maturity. The Issuer will pay interest semi-annually in arrears on January 15 and July 15 of each year, or if any such day is not a Business Day, on the next succeeding Business Day (each, an \u201cInterest Payment Date\u201d). Interest on the Notes will accrue from the most recent date to which interest has been paid or, if no interest has been paid, from July 16, 2015; provided, that if there is no existing Default in the payment of interest, and if this Note is authenticated between a record date referred to on the face hereof and the next succeeding Interest Payment Date, interest shall accrue from such next succeeding Interest Payment Date; provided, further, that the first Interest Payment Date shall be January 15, 2016. The Issuer will pay interest (including post-petition interest in any proceeding under any Bankruptcy Law) on overdue principal and premium, if any, from time to time on demand at a rate that is 1% per annum in excess of the rate then in effect; the Issuer will pay interest (including post-petition interest in any proceeding under any Bankruptcy Law) on overdue installments of interest (without regard to any applicable grace periods) from time to time on demand at the same rate to the extent lawful. Interest will be computed on the basis of a 360-day year of twelve 30-day months.[footnote]Source: EDGAR filing at the Securities and Exchange Commission website, <a href=\"http:\/\/www.sec.gov\/Archives\/edgar\/data\/740260\/000110465915051467\/a15-1495311ex4d2.htm\">www.sec.gov\/Archives\/edgar\/data\/740260\/000110465915051467\/a15-1495311ex4d2.htm<\/a>[\/footnote]<\/p>\r\n<\/blockquote>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A bond is a way for borrowers to raise money. Firms often use bonds to fund operations, while government bonds pay for deficit spending (when outlays are greater than tax revenues).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The funds raised by issuing bonds are debt because the issuer has to pay the lenders back, just like they would pay back a bank loan.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The jargon in the bond world is intense. Knowing things like the difference between the coupon rate and the yield to maturity is critical for those who live in the bond world.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It is important to understand that the contract is ironclad, so the coupon rate and promised cash flows do not change as interest rates change. You might buy a bond in the secondary market above or below par value, so the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">spot<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">rate<\/em><\/span> (the IRR at the time you buy the bond) does change.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Higher interest rates produce lower bond prices. This fundamental law of bonds is easiest to see in a strip because there are no interest payments. The bond price will always be lower than the face value, but as the bond price (the amount you pay to buy the bond) gets farther from the face value (the amount you get at maturity), the higher the yield: \u201cThe U.S. Treasury yield curve is of tremendous importance both in concept and in practice. From a conceptual perspective, the yield curve determines the value that investors place today on nominal payments at all future dates\u2014a fundamental determinant of almost all asset prices and economic decisions\u201d (G\u00fcrkaynak et al., 2006, p. 1).<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">References<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<p class=\"import-paft hanging-indent\">The epigraph is from p. 8 of Geneva Smitherman\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Black Talk: Words and Phrases from the Hood to the Amen Corner<\/em><\/span>, Houghton Mifflin (1994). Here is the full entry for <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">word <\/span><span class=\"import-sm\">is born<\/span><\/span>!:<\/p>\r\n<p class=\"import-bqs\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">\"An affirmative response to statement or action. Also, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word!<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">up!<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">to<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">the<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">mother!<\/em><\/span> A resurfacing of an old, familiar saying in the Black Oral Tradition, \u201cYo word is yo bond,\u201d which was popularized by the <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">five percent nation<\/span><\/span> in its early years. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">is<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">born!<\/em><\/span> reaffirms strong belief in the power of the word, and thus the value of verbal commitment. One\u2019s word is the guarantee, the warranty, the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>, that whatever was promised will actually occur. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Born<\/em><\/span> is the result of the AAE [African American English] pronunciation of \u201cbond\u201d; see Introduction.\"<\/p>\r\n<p class=\"hanging-indent\">Board of Governors of the Federal Reserve System (US), <em>Market Yield on U.S. Treasury Securities at 1-Year Constant Maturity, Quoted on an Investment Basis [GS1]<\/em>, retrieved from FRED, Federal Reserve Bank of St. Louis; <a href=\"https:\/\/fred.stlouisfed.org\/series\/GS1\">https:\/\/fred.stlouisfed.org\/series\/GS1<\/a>.<\/p>\r\n<p class=\"hanging-indent\">The yield data in FRED are produced by the Fed, and it is a complicated process. A good source for digging into the details is Refet S. G\u00fcrkaynak, Brian Sack, and Jonathan H. Wright (2006) \u201cThe U.S. Treasury Yield Curve: 1961 to the Present,\u201d Finance and Economics Discussion Series, Divisions of Research &amp; Statistics and Monetary Affairs, Federal Reserve Board, Washington, DC.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<h1 class=\"import-ah\">7.2 Yield Curve Visualizations<\/h1>\r\n<p class=\"import-paft\">We begin our visualizations of the yield curve with a clever way to easily control which month-year yield curve to display. Our strategy will be to use a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> form control to enable the user to select a date. The selected month-year will be connected to a cell in the sheet, which we will use to get the yields via the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">OFFSET<\/em><\/span> function. Finally, we will tie the chart to the selected yields by directly editing the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">SERIES<\/em><\/span> formula. This will all make more sense as we actually do it.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>With yield curve data in columns B through K, dates in column A, and labels in row 1, click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Developer<\/em><\/span> tab, then the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Insert<\/em><\/span> group, and select the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Box<\/em><\/span> form control as shown in Figure 7.5. Click on the spreadsheet under your yield curve chart, and drag to place the control on the sheet. Right-click the control and choose <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Format<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Control<\/em><\/span>. For the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Input<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">range<\/em><\/span>, select from cell A2 to the last row with data in column A. For the cell link, select cell M1.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"411\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p224-1.png\" alt=\"screen-capture showing how to select Excel's ComboBox control\" width=\"411\" height=\"274\" \/> <strong>Figure 7.5: Selecting the Combo Box control.<\/strong><br \/>Source: Screenshot of Excel interface, \u00a9 Microsoft Corporation.[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It does not look like we have done anything, but we have. Our Combo Box is loaded with the dates in column A.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click on any cell in the sheet so that the Combo Box is not selected and then click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control. Select any date.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Cell M1 now shows the row number of the date you selected. Next, we get the yield data for the chosen date.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=OFFSET(A1,$M$1,0)<\/em><\/span> in cell N1.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel displays the date for that row. The OFFSET function works by taking you to cell A1 and then going down however many rows are in cell M1 while staying in column A (that is what the zero says to do).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell M1 to 10. What happens?<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Not only does the date in cell N1 change to the date in cell A10, but notice that the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control has also changed. Cell M1 is connected to the Combo Box, so you can use the Combo Box to set cell M1\u2019s value or do the reverse and set the Combo Box\u2019s value by entering a number in cell M1.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Select cell N1 and fill it right to cell X1.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Now you are displaying the yields for each maturity for that month-year. This means all we have to do is edit the chart\u2019s SERIES formula to display the yields in cells O1:X1.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click a point on the yield curve to see the SERIES formula in the formula bar. Remove the legend text and edit the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">y<\/em><\/span>-axis so that the SERIES formula is <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=SERIES(,<\/em><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$B$1:$K$1, <\/em><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$O$1:$X$1,1)<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We are ready to test our dynamic visualization of the yield curve.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control and pick a date.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The chart immediately updates and shows you the yield curve for that date! The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control is an effective way to get user input.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Use the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control to display yield curves from several dates. Try one from each decade. Definitely visualize the last row so you can see the current state of the yield curve.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">If you play around a bit, you will see that the yield curve is usually upward sloping, but there are a variety of shapes. Inversion is when yields for longer maturities are lower than those for shorter maturities. This does happen, but it is not the usual shape of the yield curve. Before we discuss the interpretation of inversion, we will do some 3D visualizations.<\/p>\r\n\r\n<h2 class=\"import-bh\">3D Viz in Excel<\/h2>\r\n<p class=\"import-paft\">What if we visualized all the month-year yield curves at once, in one chart? The yield would be the vertical axis in a 3D plot, with time and the maturities as the two horizontal axes.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Delete the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">date<\/em><\/span> text from cell A1 (the top-left corner of the data must be an empty cell). Select from cell A1 to the last row in column K. Click <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Insert<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Recommended<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Charts<\/em><\/span> and then select <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">3D<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Surface<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel puts a chart on your spreadsheet, but it certainly needs some cleaning up. What follows are the steps to produce Figure 7.6.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"723\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p226-1.png\" alt=\"plot of a 3D visualization attempt of yield data using Excel, but it looks ugly\" width=\"723\" height=\"439\" \/> <strong>Figure 7.6: 3D surface Excel chart of the yield curve.<\/strong>[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Make the title <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield Curve over Time<\/em><\/span> and delete the legend.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The problem with the chart on your screen is that the time axis (near the front) is long and the maturity axis is too narrow. This is because there are many more rows than columns. We need to widen the maturity axis.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Right-click the surface and select <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">3-D<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Rotation<\/em><em class=\"import-i\">.\u00a0.\u00a0.\u00a0<\/em><\/span>. Repeatedly click the up arrow in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Depth<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(%<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">of<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">base)<\/em><\/span> setting until you start to see the maturity axis start to widen. You can go up to 2,000, so directly enter this value.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Your chart should now look like Figure 7.6. It still needs more work. The maturity axis labels are unclear, and too many dates are displayed. The vertical axis needs a label, and the way it is angled is not helpful. We will not bother trying to fix these issues because there is a big problem with Excel\u2019s charting interface: Rotation is clumsy.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel provides X, Y, and Z rotation controls, and you can try them, but they are difficult to work with. We want to be able to easily spin the chart with the cursor. To do this, we will use Python.<\/p>\r\n\r\n<h2 class=\"import-bh\">3D Viz in Python<\/h2>\r\n<p class=\"import-paft\">Python is \u201can interpreted, object-oriented, high-level programming language with dynamic semantics\u201d (<span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">www.python.org\/doc\/essays\/blurb\/<\/span><\/span>). That sounds complicated, but do not worry; Python is really easy to access and use. It is open-source (free), and its many users provide a strong support system.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">As of this writing, generative AI (especially ChatGPT) can be used to write effective Python code.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Although you can download and install it on your personal device, we will use an even simpler approach, Google\u2019s Colab environment.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the link <span style=\"border: none windowtext 0pt; padding: 0;\"><a class=\"rId177\" href=\"https:\/\/colab.research.google.com\/\"><span class=\"import-url\">colab.research.google.com\/<\/span><\/a><\/span> or enter it into your favorite browser. If needed, login to Google when prompted. Click on the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Welcome to <\/em><em class=\"import-i\">Colab<\/em><\/span> link and read it.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The Colab notebook that you read is composed of executable and text cells. Across the top of the Colab screen are the usual menu items, and on the left is a table of contents with the sections in the notebook.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield data in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span> workbook were uploaded to Google Drive. A few lines of Python code create a 3D plot that is easy to rotate and spin.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the link <a href=\"http:\/\/dub.sh\/3DVizYieldCurve\">dub.sh\/3DVizYieldCurve<\/a> or enter it into your favorite browser to see a Colab notebook that creates a 3D visualization of the data. Follow the instructions to spin the plot.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Figure 7.7 shows the Python visualization of the yield curve over time. Of course, the online version is live in the sense that you can spin it and use the cursor to get values at specific points on the surface.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"860\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p228-1.png\" alt=\"plot of a 3D visualization of yield data using Python\" width=\"860\" height=\"476\" \/> <strong>Figure 7.7: 3D chart in Python.<\/strong>[\/caption]\r\n<h2 class=\"import-bh\">Yield Curve Meaning<\/h2>\r\n<p class=\"import-paft\">Our yield curve visualizations are certainly eye-catching, but what does the yield curve actually tell us? There are several ways to answer this question, but the most important use of the yield curve is as the market\u2019s expectation of future economic performance.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Before we dig into how the yield curve can be used as a predictor, consider this: You follow a sports team that is expected to be really good this year, but they have aging stars at key positions. Then the betting odds of your team winning a championship would be higher for this season than a few years from now.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Conversely, if your team was bad now but had young players who could develop into superstars, their odds of winning in future years are higher than now.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You can stretch the time horizon even farther and think about odds a decade or longer from now. For so far into the future, all the teams would have similar odds (almost none of the current players would be active) unless there is some reason to believe that the ownership or management of a team is especially good or bad.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">This thought exercise is quite similar to what the yield curve is doing. The yields are produced by supply and demand for each maturity. In a real sense, the yields for different maturities reflect the market participants\u2019 overall outlook on the economy at different times in the future.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">When the yield curve inverts and longer maturities have lower yields than shorter ones, it means that investors think yields and interest rates will be lower in the future. This is interpreted as pessimism because low interest rates are associated with the Fed trying to stimulate an economy in recession.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">So is the yield curve any good at predicting the future?<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to your <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span> workbook and insert a blank sheet. Use FRED\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Data<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Search<\/em><\/span> tool to search for <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">yield curve<\/em><\/span>. Select the top 2 hits, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">T10Y2Y<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">T10Y2YM<\/em><\/span>. Get the data and make separate charts with recession shading.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The daily chart is more jagged, but it tells the same story as the monthly frequency chart, shown in Figure 7.8. When the series dips below zero (so 2-year yields are higher than 10-year yields), the yield curve is inverted.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"923\"]<img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p229-1.png\" alt=\"plot of 10-year minus 2-year yield data, clearly showing inversion time periods\" width=\"923\" height=\"547\" \/> <strong>Figure 7.8: FRED Series ID T10Y2YM: Inversion when below zero.<\/strong><br \/>Source: Federal Reserve Bank of St. Louis via FRED, Copyrighted Data \/ <a href=\"https:\/\/fred.stlouisfed.org\/legal\/\">FRED Terms<\/a>.[\/caption]\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Since 1969, an inverted yield curve has correctly predicted recessions shortly after the inversion (roughly within 15 months). Figure 7.8 shows that when the series goes below zero, a shaded bar soon follows\u2014except the last one.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Is this time different? As of this writing, in 2024, the yield curve has been inverted for a record long time (<span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">www.google.com\/search?q=yield+curve+record<\/span><\/span>), yet the US economy seems strong. Will the yield curve be right again?<\/p>\r\n\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Takeaways<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<p class=\"import-paft\">Excel can be used to make charts, and adding controls can make an Excel chart responsive to user input. We used a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control to allow the user to display the yield curve for a particular month-year.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel is not, however, strong data visualization software. In particular, its ability to manipulate charts, such as spinning a 3D plot, is quite limited.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Python, on the other hand, has extensive data display libraries. We used Google\u2019s Colab environment to produce a 3D plot of the yield curve over time. It is simple to share the chart, and users can easily click and rotate it.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield curve itself has been the subject of extensive research. Analysts model the shape and fit curves to yield data.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Usually, there is a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">term premium<\/em><\/span> for bonds with longer maturities. Investors have to be rewarded with higher yields when they lock up their money for longer periods of time.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">One especially keen area of interest is the concept of an <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">inverted yield curve<\/em><\/span>.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Inversion occurs when long-term yields are lower than short-term yields (this is not common).<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">An inverted yield curve is strongly associated with a recession in the near future.<\/p>\r\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield curve, measured by 10-year minus 2-year YTM, inverted on July 11, 2023. It has remained inverted in the early part of 2024. There is great debate about whether this time it\u2019s different.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">References<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<p class=\"hanging-indent\">For an overview of the yield curve with excellent graphics and an explanation of the meaning of the yield curve, see Bruce-Lockhart, C., Lewis, E., and Stubbington, T. \u201cAn Inverted Yield Curve: Why Investors Are Watching Closely.\u201d <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Financial<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Times<\/em><\/span>, April 6, 2022, <a href=\"http:\/\/ig.ft.com\/the-yield-curve-explained\/\"><span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">ig.ft.com\/the-yield-curve-explained\/<\/span><\/span><\/a>.<\/p>\r\n<p class=\"hanging-indent\">Federal Reserve Bank of St. Louis, <em>10-Year Treasury Constant Maturity Minus 2-Year Treasury Constant Maturity [T10Y2YM]<\/em>, retrieved from FRED, Federal Reserve Bank of St. Louis; <a href=\"https:\/\/fred.stlouisfed.org\/series\/T10Y2YM\">https:\/\/fred.stlouisfed.org\/series\/T10Y2YM<\/a>.<\/p>\r\n\r\n<\/div>\r\n<\/div>","rendered":"<div class=\"textbox\">\n<p class=\"import-epf\">\u201cYo word is yo bond,\u201d which in today\u2019s Hip Hop Culture has become <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">word is born<\/span><\/span>.<\/p>\n<p class=\"import-ept\" style=\"text-align: right;\">Geneva Smitherman<\/p>\n<\/div>\n<h1 class=\"import-ahaft\">7.1 Bond Basics<\/h1>\n<p class=\"import-pf\">It is January 1, 2030. You give XYZ Inc. $1,000 today, and they promise to pay you back in two years. Congratulations, you just bought a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>!<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The $1,000 is called the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">face<\/em><\/span> or <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">par<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">value<\/em><\/span>, and the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">maturity<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">date<\/em><\/span> is two years from now, January 1, 2032 (when you get the face value back). Not surprisingly, you own a two-year bond.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Of course, you must be compensated for the time value of money\u2014$1,000 two years from now is worth less than $1,000 right now. So XYZ also promises to pay you interest at regular intervals\u2014say, every six months. The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">coupon<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">rate<\/em><\/span>, say 5%, tells you the interest you will be paid in a year. Five percent of $1,000 is $50, so you will get two payments of $25.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Because the coupon (interest) and final payments are on a strict schedule, bonds are called <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">fixed-income securities<\/em><\/span>. Bonds are <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">debt<\/em><\/span>, and they give investors a safer but lower return, on average, than stocks which are <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">equity<\/em><\/span> (since they involve ownership of a corporation).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The jargon\u2014special words or technical language used by professionals\u2014can make financial products and choices difficult to understand. We can make your bond come to life with Excel. As you enter the information, think about the trade-off involved here\u2014the lender (you) gives up money now in return for future payments from the borrower (XYZ). This is the core idea.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Open a blank Excel workbook and save it as <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span>. In cells A1 to A5, enter the dates <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2030<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">7\/1\/2030<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2031<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">7\/1\/2031<\/em><\/span>, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1\/1\/2032<\/em><\/span>, respectively. In cell B1, enter <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">-$1000<\/em><\/span>; this is the amount you invested in the bond (hence the minus sign). Cells B2, B3, and B4 represent the coupon payments, so enter <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">25<\/em><\/span> for each of those cells. At the end, you get the last interest payment plus the face value back, so cell B5 is <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">1,025<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Your spreadsheet now looks quite familiar, given the work we did on present value and the internal rate of return (IRR). That\u2019s right; a bond is just another application of those ideas. You start with a negative number that represents your investment, then get a stream of income over time that is your return on investment.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR is a measure of the quality of an investment; the bigger it is, the better the investment. We can compute the IRR for these cash flows at these dates using Excel\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">XIRR<\/em><\/span> function. It incorporates the dates at which the flows are paid and received and returns the annualized internal rate of return.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=XIRR(B1:B5,A1:A5)<\/em><\/span> in cell C1 and format it as a % with two decimal places. In cell D1, enter the label <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">IRR<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YTM<\/em><\/span> so that your spreadsheet replicates Figure 7.1.<\/p>\n<figure style=\"width: 472px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p215-1.png\" alt=\"screen-capture of cells showing a 2-year bond with semi-annual payments\" width=\"472\" height=\"168\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.1: Understanding a bond.<\/strong><\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR is a little over 5% because you received the annual interest payment of $50 a little ahead of time: $25 halfway through the year and another $25 at the end of the year instead of all $50 at the end of the year.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Confirm this by changing cells B2 and B4 to 0, cell B3 to $50, and cell B5 to $1,050.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Cell C1 now shows the IRR as 5.00%. This shows that the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">XIRR<\/em><\/span> function is working as advertised. It also shows that the timing of the coupon payments is critical. Your spreadsheet is now displaying a different bond than the one in Figure 7.1. The IRR of the bond in Figure 7.1 is higher than the one on your spreadsheet because of the timing of the interest payments.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The IRR for a bond is called the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">to<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">maturity<\/em><\/span> (YTM). It is calculated as if the investor will hold the bond until the maturity date. But they might not. Bonds can be traded before they mature in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">secondary<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">market<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">zero-coupon<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>, also called a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">strip<\/em><\/span>, is just what it says\u2014it has no interest payments.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change the value in cell B3 to 0 (so the values in cells B2, B3, and B4 are all 0), and make cell B5 $1,000.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The YTM is now zero. That\u2019s terrible. No investor would buy this bond. To entice buyers, the issuer must sell the bond at a discount (or below par).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell B1 to <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">&#8211;<\/em><em class=\"import-i\">$<\/em><em class=\"import-i\">900<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">That\u2019s better. Now the YTM is about 5.4%. Investors are compensated for lending $900 today by getting the face value of the bond, $1000, in two years. Someone might be willing to buy this bond and lend the issuer $900.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Bonds are complex financial assets. They have many variations, and the jargon is intimidating, but no matter how complicated it gets, the idea is that a bond is a promise\u2014money in the future is promised in return for money now.<\/p>\n<h2 class=\"import-bh\">Yield Data<\/h2>\n<p class=\"import-paft\">With a basic understanding of a bond and how it works, we can get yield data and create visualizations, including that of our ultimate goal: the yield curve over time.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We will work with US Treasury securities with different maturity dates. They all work like bonds, but they have different names depending on their maturity dates: Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bills<\/em><\/span> mature in 1 year or less, Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">notes<\/em><\/span> in two to 10 years, and Treasury <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bonds<\/em><\/span> in 20 or 30 years.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">First, we will examine a single security over time, but our eventual goal is to visualize a richer dataset with yields for different maturities over time. This will give us the yield curve.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Insert a sheet in your workbook, rename it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, and enter the Series ID <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span> (for government security maturing in 1 year) in cell A1. Use the FRED Excel add-in to get the data. Use FRED\u2019s charting tools to make a chart with recession shading, like Figure 7.2 (made in October 2023). Refer back to the work we did using FRED to get unemployment data (in chapter 5) if needed.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Figure 7.2 shows the yield on a one-year US Treasury bill on a monthly frequency from April 1953 to September 2023. Your spreadsheet will have this series up to the previous month in which you created it.<\/p>\n<figure style=\"width: 923px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p217-1.png\" alt=\"plot showing variation in T-bill rates over time\" width=\"923\" height=\"546\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.2: One-year US Treasury bill yield over time.<\/strong><br \/>Source: Board of Governors of the Federal Reserve System (US) via FRED, Public Domain Data \/ <a href=\"https:\/\/fred.stlouisfed.org\/legal\/\">FRED Terms<\/a>.<\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Unlike the unemployment rate, which rose in every recession, one-year US Treasury bill yields are mostly falling when they enter the shaded bars. This is because the government is actively trying to use monetary policy to lower interest rates to stimulate the economy.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The US Federal Reserve (Fed) acts as a central bank and influences many different interest rates, including bond yields, by controlling the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">federal funds rate<\/em><\/span> (the interest rate at which banks lend reserves to each other).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The key point for our yield data is that one-year US Treasury bill yields are not directly controlled by the Fed. They are the outcome of supply and demand. Bonds, including US Treasury securities, can be traded before their maturity dates. It is the bond market that determines yields.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It is easy to see in Figure 7.2 that in the early 1980s, yields were very high, in double-digit territory. Why? Certainly, a contributing factor was high inflation at that time. The yield had to be high to entice the lender to part with money now to be paid back later.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to your bond demonstration sheet. You should see the zero-coupon bond. You part with $900 now and get $1,000 in two years, which has a YTM of about 5.4%.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">In the early 1980s, there would be no way you would give anyone (XYZ or the US government) $900 in return for $1,000 in two years. The $1,000 you got back two years later would be so watered down by the high inflation at that time that you would refuse that deal. So the issuer would need to raise the yield by lowering (discounting) the bond by more than $100.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell B1 to <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">&#8211;<\/em><em class=\"import-i\">$<\/em><em class=\"import-i\">800<\/em><\/span>. What happens?<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Not surprisingly, the YTM increases to almost 12%. Is that enough to get you to make the trade? Not in August 1981.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span> sheet. Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=MAX(B:B)<\/em><\/span> in cell C8 to see the highest yield in the dataset. Scroll down to find when it occurred.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">In August 1981, the market, or equilibrium, yield was 16.7%. You would not lend unless you got that yield, just like you would not buy apples from a particular seller if their price was higher than the market price that many other sellers were selling apples for.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to the sheet with the simple two-year bond we were playing with and use Solver to find the discount in the bond price needed to produce a yield of 16.7%. Be sure to uncheck (if needed) Solver\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Make unconstrained variables nonnegative<\/em><\/span> option, since we want a negative number in cell B1.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You should find that the bond price is roughly $734, so it is a discount of $266 from the par value.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The inverse relationship between the yield and the bond price is a fundamental concept in the bond world. The Excel implementation of a bond makes it easy to see: The lower the price (the bigger the discount) in cell B1, the higher the yield.<\/p>\n<h2 class=\"import-bh\">Yields for Different Maturities<\/h2>\n<p class=\"import-paft\">Just like <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, the yield on a 1-year US Treasury bill, FRED has data for yields on US Treasury securities with different maturities, also known as the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">term<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">structure<\/em><\/span>. We will get data on US Treasuries from 3-month to 30-year terms.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Insert a sheet in your workbook and name it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">TermStructure<\/em><\/span>. In individual cells in the top row, enter the following <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Series<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">IDs<\/em><\/span>: <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS3M<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS6M<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS1<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS2<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS3<\/em><\/span>. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS5<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS7<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS10<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS20<\/em><\/span>, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS30<\/em><\/span>. The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">M<\/em><\/span> stands for months, and the numbers indicate the length of time. So <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS6M<\/em><\/span> is a 6-month US Treasury bill, and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">GS20<\/em><\/span> is a 20-year Treasury bond. Click the <span class=\"import-ccust1\">Get FRED Data<\/span> button.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The series start at different dates. We need to find the latest date and start them all from that point so that we can see how the yields varied by maturity on the same date.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>The latest starting date in row 8 is 9\/1\/1981. Copy this cell and paste it in cells E4, G4, and so on until S4. Update the data.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Each row has yields for differing maturities of US Treasury securities for a particular point in time. Thus, each row has the data for the yield curve for that month.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Here is how the Fed describes the yield curve:<\/p>\n<blockquote>\n<p class=\"import-bqf\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">Investors can trade Treasury securities freely between issuance and maturity. As the market price of Treasury securities varies over time, so does their implied yield\u2014their return relative to their price. At any given time, there is a wide range of Treasury securities with different maturities outstanding. Market forces tend to ensure that the yields on securities with similar maturities are not dramatically different from each other. This feature makes it possible to summarize the information contained in the cross section of market-implied yields by a smooth curve of yield as a function of maturity\u2014the yield curve.<a class=\"footnote\" title=\"Source: https:\/\/www.federalreserve.gov\/data\/nominal-yield-curve.htm\" id=\"return-footnote-40-1\" href=\"#footnote-40-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a><\/p>\n<\/blockquote>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Thus, the yield curve shows yield by maturity. Let\u2019s make one.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Copy the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">TermStructure<\/em><\/span> sheet and rename it <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve<\/em><\/span>. Change each of the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">value<\/em><\/span> labels in row 7 to the corresponding length of time in years. Cell B7 is 0.25 (you may have to increase the decimal places displayed), cell D7 is 0.5, cell F7 is 1, and so on. Delete rows 1 to 6. Delete the date columns, starting with column C (so C, E, G, and so forth, all the way to S). Finally, select the yield data (from B2 to the last row in column K) and display two decimal places.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You now have a dataset that looks like Figure 7.3. It has dates in column A, lengths of maturity in years in row 1, and yields for each month by maturity. These are the inputs needed to make a yield curve.<\/p>\n<figure style=\"width: 923px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p220-1.png\" alt=\"screen-capture of cells with yield data for different maturities over time\" width=\"923\" height=\"145\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.3: Data to make a yield curve.<\/strong><\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Select cells A1:K2 and insert a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Scatter with Straight Lines and Markers<\/em><\/span> chart. Add a title, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Curve<\/em><\/span>, and label the axes <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(%)<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Maturity<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(years)<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You just made your first yield curve. It is not common. Usually, it is upward sloping. The longer the maturity, the higher the yield, because lenders have to be rewarded for locking up their money for longer periods of time.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The 1980s were certainly exceptional economic times. The yield curve was <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">inverted<\/em><\/span> because yields for shorter maturities were higher than those for longer maturities. This usually means bad tidings for the economy.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">There is another step we could take to make our yield curve a true curve: We could fit a smooth curve to the data. The smoothed curve version of yield as a function of maturity is what most people call a yield curve. There are many ways to fit such a curve, and it gets complicated, so we will stay with our rudimentary version that connects the data with straight lines.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We can easily make another yield curve so we can understand what the yield curve is telling us. We work smart by using the edit SERIES formula approach.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Copy and paste the chart. Click on the data and edit the SERIES formula by changing the 2 to 222 in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">y<\/em><\/span>-axis part of the formula, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$B$222:$K$222<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You just produced a yield curve for January 2000. Unlike September 1981, it rises fast, then stretches out. Figure 7.4 compares the two yield curves.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">While the slightly lower yield for 30 versus 20 years is unexpected, the January 2000 yield curve (on the right) is a typical yield curve. As the yield to maturity rises from very short term (starting at 30 days) to 2 years, yields rise quickly, but then they rise much more slowly as maturity increases.<\/p>\n<figure style=\"width: 923px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p221-1.png\" alt=\"plots of two example yield curves, one inverted and the other normal\" width=\"923\" height=\"279\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.4: September 1981 (left) and January 2000 (right) yield curves.<\/strong><\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We learned about bonds and yields, got yield data, and created yield curve charts. Next up, we work on fancier visualizations of yield curve data.<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Takeaways<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p class=\"import-paft\">In everyday English, a bond is a connection between people (a bond of friendship) or objects (to bond is to glue things together). In finance, the connection is between lender and borrower.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A bond is a security in which a borrower (e.g., a firm or government) promises to pay back the face value at the maturity date and make interest payments at specific dates (to compensate the lender for the time value of money).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Unlike the two-year bond we implemented in Excel, most bonds are on a 30\/360 calendar and have a high threshold of legalese, like this example:<\/p>\n<blockquote>\n<p class=\"import-bqf\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">(1) Interest. Ventas Realty, Limited Partnership (the \u201cIssuer\u201d) promises to pay interest on the principal amount of this Note at 4.125% per annum from July 16, 2015 until maturity. The Issuer will pay interest semi-annually in arrears on January 15 and July 15 of each year, or if any such day is not a Business Day, on the next succeeding Business Day (each, an \u201cInterest Payment Date\u201d). Interest on the Notes will accrue from the most recent date to which interest has been paid or, if no interest has been paid, from July 16, 2015; provided, that if there is no existing Default in the payment of interest, and if this Note is authenticated between a record date referred to on the face hereof and the next succeeding Interest Payment Date, interest shall accrue from such next succeeding Interest Payment Date; provided, further, that the first Interest Payment Date shall be January 15, 2016. The Issuer will pay interest (including post-petition interest in any proceeding under any Bankruptcy Law) on overdue principal and premium, if any, from time to time on demand at a rate that is 1% per annum in excess of the rate then in effect; the Issuer will pay interest (including post-petition interest in any proceeding under any Bankruptcy Law) on overdue installments of interest (without regard to any applicable grace periods) from time to time on demand at the same rate to the extent lawful. Interest will be computed on the basis of a 360-day year of twelve 30-day months.<a class=\"footnote\" title=\"Source: EDGAR filing at the Securities and Exchange Commission website, www.sec.gov\/Archives\/edgar\/data\/740260\/000110465915051467\/a15-1495311ex4d2.htm\" id=\"return-footnote-40-2\" href=\"#footnote-40-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a><\/p>\n<\/blockquote>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">A bond is a way for borrowers to raise money. Firms often use bonds to fund operations, while government bonds pay for deficit spending (when outlays are greater than tax revenues).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The funds raised by issuing bonds are debt because the issuer has to pay the lenders back, just like they would pay back a bank loan.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The jargon in the bond world is intense. Knowing things like the difference between the coupon rate and the yield to maturity is critical for those who live in the bond world.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It is important to understand that the contract is ironclad, so the coupon rate and promised cash flows do not change as interest rates change. You might buy a bond in the secondary market above or below par value, so the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">spot<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">rate<\/em><\/span> (the IRR at the time you buy the bond) does change.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Higher interest rates produce lower bond prices. This fundamental law of bonds is easiest to see in a strip because there are no interest payments. The bond price will always be lower than the face value, but as the bond price (the amount you pay to buy the bond) gets farther from the face value (the amount you get at maturity), the higher the yield: \u201cThe U.S. Treasury yield curve is of tremendous importance both in concept and in practice. From a conceptual perspective, the yield curve determines the value that investors place today on nominal payments at all future dates\u2014a fundamental determinant of almost all asset prices and economic decisions\u201d (G\u00fcrkaynak et al., 2006, p. 1).<\/p>\n<\/div>\n<\/div>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">References<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p class=\"import-paft hanging-indent\">The epigraph is from p. 8 of Geneva Smitherman\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Black Talk: Words and Phrases from the Hood to the Amen Corner<\/em><\/span>, Houghton Mifflin (1994). Here is the full entry for <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">word <\/span><span class=\"import-sm\">is born<\/span><\/span>!:<\/p>\n<p class=\"import-bqs\" style=\"margin-left: 18pt; margin-right: 18pt; text-indent: 0pt;\">&#8220;An affirmative response to statement or action. Also, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word!<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">up!<\/em><\/span>, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">to<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">the<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">mother!<\/em><\/span> A resurfacing of an old, familiar saying in the Black Oral Tradition, \u201cYo word is yo bond,\u201d which was popularized by the <span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-sm\">five percent nation<\/span><\/span> in its early years. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Word<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">is<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">born!<\/em><\/span> reaffirms strong belief in the power of the word, and thus the value of verbal commitment. One\u2019s word is the guarantee, the warranty, the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">bond<\/em><\/span>, that whatever was promised will actually occur. <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Born<\/em><\/span> is the result of the AAE [African American English] pronunciation of \u201cbond\u201d; see Introduction.&#8221;<\/p>\n<p class=\"hanging-indent\">Board of Governors of the Federal Reserve System (US), <em>Market Yield on U.S. Treasury Securities at 1-Year Constant Maturity, Quoted on an Investment Basis [GS1]<\/em>, retrieved from FRED, Federal Reserve Bank of St. Louis; <a href=\"https:\/\/fred.stlouisfed.org\/series\/GS1\">https:\/\/fred.stlouisfed.org\/series\/GS1<\/a>.<\/p>\n<p class=\"hanging-indent\">The yield data in FRED are produced by the Fed, and it is a complicated process. A good source for digging into the details is Refet S. G\u00fcrkaynak, Brian Sack, and Jonathan H. Wright (2006) \u201cThe U.S. Treasury Yield Curve: 1961 to the Present,\u201d Finance and Economics Discussion Series, Divisions of Research &amp; Statistics and Monetary Affairs, Federal Reserve Board, Washington, DC.<\/p>\n<\/div>\n<\/div>\n<h1 class=\"import-ah\">7.2 Yield Curve Visualizations<\/h1>\n<p class=\"import-paft\">We begin our visualizations of the yield curve with a clever way to easily control which month-year yield curve to display. Our strategy will be to use a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> form control to enable the user to select a date. The selected month-year will be connected to a cell in the sheet, which we will use to get the yields via the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">OFFSET<\/em><\/span> function. Finally, we will tie the chart to the selected yields by directly editing the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">SERIES<\/em><\/span> formula. This will all make more sense as we actually do it.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>With yield curve data in columns B through K, dates in column A, and labels in row 1, click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Developer<\/em><\/span> tab, then the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Insert<\/em><\/span> group, and select the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Box<\/em><\/span> form control as shown in Figure 7.5. Click on the spreadsheet under your yield curve chart, and drag to place the control on the sheet. Right-click the control and choose <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Format<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Control<\/em><\/span>. For the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Input<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">range<\/em><\/span>, select from cell A2 to the last row with data in column A. For the cell link, select cell M1.<\/p>\n<figure style=\"width: 411px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p224-1.png\" alt=\"screen-capture showing how to select Excel's ComboBox control\" width=\"411\" height=\"274\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.5: Selecting the Combo Box control.<\/strong><br \/>Source: Screenshot of Excel interface, \u00a9 Microsoft Corporation.<\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">It does not look like we have done anything, but we have. Our Combo Box is loaded with the dates in column A.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click on any cell in the sheet so that the Combo Box is not selected and then click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control. Select any date.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Cell M1 now shows the row number of the date you selected. Next, we get the yield data for the chosen date.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Enter the formula <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=OFFSET(A1,$M$1,0)<\/em><\/span> in cell N1.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel displays the date for that row. The OFFSET function works by taking you to cell A1 and then going down however many rows are in cell M1 while staying in column A (that is what the zero says to do).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Change cell M1 to 10. What happens?<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Not only does the date in cell N1 change to the date in cell A10, but notice that the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control has also changed. Cell M1 is connected to the Combo Box, so you can use the Combo Box to set cell M1\u2019s value or do the reverse and set the Combo Box\u2019s value by entering a number in cell M1.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Select cell N1 and fill it right to cell X1.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Now you are displaying the yields for each maturity for that month-year. This means all we have to do is edit the chart\u2019s SERIES formula to display the yields in cells O1:X1.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click a point on the yield curve to see the SERIES formula in the formula bar. Remove the legend text and edit the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">y<\/em><\/span>-axis so that the SERIES formula is <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">=SERIES(,<\/em><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$B$1:$K$1, <\/em><em class=\"import-i\">YieldCurve<\/em><em class=\"import-i\">!$O$1:$X$1,1)<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">We are ready to test our dynamic visualization of the yield curve.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control and pick a date.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The chart immediately updates and shows you the yield curve for that date! The <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control is an effective way to get user input.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Use the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control to display yield curves from several dates. Try one from each decade. Definitely visualize the last row so you can see the current state of the yield curve.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">If you play around a bit, you will see that the yield curve is usually upward sloping, but there are a variety of shapes. Inversion is when yields for longer maturities are lower than those for shorter maturities. This does happen, but it is not the usual shape of the yield curve. Before we discuss the interpretation of inversion, we will do some 3D visualizations.<\/p>\n<h2 class=\"import-bh\">3D Viz in Excel<\/h2>\n<p class=\"import-paft\">What if we visualized all the month-year yield curves at once, in one chart? The yield would be the vertical axis in a 3D plot, with time and the maturities as the two horizontal axes.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Delete the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">date<\/em><\/span> text from cell A1 (the top-left corner of the data must be an empty cell). Select from cell A1 to the last row in column K. Click <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Insert<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Recommended<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Charts<\/em><\/span> and then select <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">3D<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Surface<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel puts a chart on your spreadsheet, but it certainly needs some cleaning up. What follows are the steps to produce Figure 7.6.<\/p>\n<figure style=\"width: 723px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p226-1.png\" alt=\"plot of a 3D visualization attempt of yield data using Excel, but it looks ugly\" width=\"723\" height=\"439\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.6: 3D surface Excel chart of the yield curve.<\/strong><\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Make the title <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Yield Curve over Time<\/em><\/span> and delete the legend.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The problem with the chart on your screen is that the time axis (near the front) is long and the maturity axis is too narrow. This is because there are many more rows than columns. We need to widen the maturity axis.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Right-click the surface and select <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">3-D<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Rotation<\/em><em class=\"import-i\">.\u00a0.\u00a0.\u00a0<\/em><\/span>. Repeatedly click the up arrow in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Depth<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">(%<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">of<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">base)<\/em><\/span> setting until you start to see the maturity axis start to widen. You can go up to 2,000, so directly enter this value.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Your chart should now look like Figure 7.6. It still needs more work. The maturity axis labels are unclear, and too many dates are displayed. The vertical axis needs a label, and the way it is angled is not helpful. We will not bother trying to fix these issues because there is a big problem with Excel\u2019s charting interface: Rotation is clumsy.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel provides X, Y, and Z rotation controls, and you can try them, but they are difficult to work with. We want to be able to easily spin the chart with the cursor. To do this, we will use Python.<\/p>\n<h2 class=\"import-bh\">3D Viz in Python<\/h2>\n<p class=\"import-paft\">Python is \u201can interpreted, object-oriented, high-level programming language with dynamic semantics\u201d (<span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">www.python.org\/doc\/essays\/blurb\/<\/span><\/span>). That sounds complicated, but do not worry; Python is really easy to access and use. It is open-source (free), and its many users provide a strong support system.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">As of this writing, generative AI (especially ChatGPT) can be used to write effective Python code.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Although you can download and install it on your personal device, we will use an even simpler approach, Google\u2019s Colab environment.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the link <span style=\"border: none windowtext 0pt; padding: 0;\"><a class=\"rId177\" href=\"https:\/\/colab.research.google.com\/\"><span class=\"import-url\">colab.research.google.com\/<\/span><\/a><\/span> or enter it into your favorite browser. If needed, login to Google when prompted. Click on the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Welcome to <\/em><em class=\"import-i\">Colab<\/em><\/span> link and read it.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The Colab notebook that you read is composed of executable and text cells. Across the top of the Colab screen are the usual menu items, and on the left is a table of contents with the sections in the notebook.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield data in the <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span> workbook were uploaded to Google Drive. A few lines of Python code create a 3D plot that is easy to rotate and spin.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Click the link <a href=\"http:\/\/dub.sh\/3DVizYieldCurve\">dub.sh\/3DVizYieldCurve<\/a> or enter it into your favorite browser to see a Colab notebook that creates a 3D visualization of the data. Follow the instructions to spin the plot.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Figure 7.7 shows the Python visualization of the yield curve over time. Of course, the online version is live in the sense that you can spin it and use the cursor to get values at specific points on the surface.<\/p>\n<figure style=\"width: 860px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p228-1.png\" alt=\"plot of a 3D visualization of yield data using Python\" width=\"860\" height=\"476\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.7: 3D chart in Python.<\/strong><\/figcaption><\/figure>\n<h2 class=\"import-bh\">Yield Curve Meaning<\/h2>\n<p class=\"import-paft\">Our yield curve visualizations are certainly eye-catching, but what does the yield curve actually tell us? There are several ways to answer this question, but the most important use of the yield curve is as the market\u2019s expectation of future economic performance.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Before we dig into how the yield curve can be used as a predictor, consider this: You follow a sports team that is expected to be really good this year, but they have aging stars at key positions. Then the betting odds of your team winning a championship would be higher for this season than a few years from now.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Conversely, if your team was bad now but had young players who could develop into superstars, their odds of winning in future years are higher than now.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">You can stretch the time horizon even farther and think about odds a decade or longer from now. For so far into the future, all the teams would have similar odds (almost none of the current players would be active) unless there is some reason to believe that the ownership or management of a team is especially good or bad.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">This thought exercise is quite similar to what the yield curve is doing. The yields are produced by supply and demand for each maturity. In a real sense, the yields for different maturities reflect the market participants\u2019 overall outlook on the economy at different times in the future.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">When the yield curve inverts and longer maturities have lower yields than shorter ones, it means that investors think yields and interest rates will be lower in the future. This is interpreted as pessimism because low interest rates are associated with the Fed trying to stimulate an economy in recession.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">So is the yield curve any good at predicting the future?<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\"><span style=\"color: #ff0000;\"><em class=\"import-hemb-i\">STEP<\/em> <\/span>Return to your <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">YieldCurve.xlsx<\/em><\/span> workbook and insert a blank sheet. Use FRED\u2019s <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Data<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Search<\/em><\/span> tool to search for <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">yield curve<\/em><\/span>. Select the top 2 hits, <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">T10Y2Y<\/em><\/span> and <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">T10Y2YM<\/em><\/span>. Get the data and make separate charts with recession shading.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The daily chart is more jagged, but it tells the same story as the monthly frequency chart, shown in Figure 7.8. When the series dips below zero (so 2-year yields are higher than 10-year yields), the yield curve is inverted.<\/p>\n<figure style=\"width: 923px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-content\/uploads\/sites\/73\/2025\/05\/GatewayBP-p229-1.png\" alt=\"plot of 10-year minus 2-year yield data, clearly showing inversion time periods\" width=\"923\" height=\"547\" \/><figcaption class=\"wp-caption-text\"><strong>Figure 7.8: FRED Series ID T10Y2YM: Inversion when below zero.<\/strong><br \/>Source: Federal Reserve Bank of St. Louis via FRED, Copyrighted Data \/ <a href=\"https:\/\/fred.stlouisfed.org\/legal\/\">FRED Terms<\/a>.<\/figcaption><\/figure>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Since 1969, an inverted yield curve has correctly predicted recessions shortly after the inversion (roughly within 15 months). Figure 7.8 shows that when the series goes below zero, a shaded bar soon follows\u2014except the last one.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Is this time different? As of this writing, in 2024, the yield curve has been inverted for a record long time (<span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">www.google.com\/search?q=yield+curve+record<\/span><\/span>), yet the US economy seems strong. Will the yield curve be right again?<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Takeaways<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p class=\"import-paft\">Excel can be used to make charts, and adding controls can make an Excel chart responsive to user input. We used a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Combo Box<\/em><\/span> control to allow the user to display the yield curve for a particular month-year.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Excel is not, however, strong data visualization software. In particular, its ability to manipulate charts, such as spinning a 3D plot, is quite limited.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Python, on the other hand, has extensive data display libraries. We used Google\u2019s Colab environment to produce a 3D plot of the yield curve over time. It is simple to share the chart, and users can easily click and rotate it.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield curve itself has been the subject of extensive research. Analysts model the shape and fit curves to yield data.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Usually, there is a <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">term premium<\/em><\/span> for bonds with longer maturities. Investors have to be rewarded with higher yields when they lock up their money for longer periods of time.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">One especially keen area of interest is the concept of an <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">inverted yield curve<\/em><\/span>.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">Inversion occurs when long-term yields are lower than short-term yields (this is not common).<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">An inverted yield curve is strongly associated with a recession in the near future.<\/p>\n<p class=\"import-p\" style=\"text-indent: 36pt;\">The yield curve, measured by 10-year minus 2-year YTM, inverted on July 11, 2023. It has remained inverted in the early part of 2024. There is great debate about whether this time it\u2019s different.<\/p>\n<\/div>\n<\/div>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">References<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p class=\"hanging-indent\">For an overview of the yield curve with excellent graphics and an explanation of the meaning of the yield curve, see Bruce-Lockhart, C., Lewis, E., and Stubbington, T. \u201cAn Inverted Yield Curve: Why Investors Are Watching Closely.\u201d <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Financial<\/em><\/span> <span style=\"border: none windowtext 0pt; padding: 0;\"><em class=\"import-i\">Times<\/em><\/span>, April 6, 2022, <a href=\"http:\/\/ig.ft.com\/the-yield-curve-explained\/\"><span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">ig.ft.com\/the-yield-curve-explained\/<\/span><\/span><\/a>.<\/p>\n<p class=\"hanging-indent\">Federal Reserve Bank of St. Louis, <em>10-Year Treasury Constant Maturity Minus 2-Year Treasury Constant Maturity [T10Y2YM]<\/em>, retrieved from FRED, Federal Reserve Bank of St. Louis; <a href=\"https:\/\/fred.stlouisfed.org\/series\/T10Y2YM\">https:\/\/fred.stlouisfed.org\/series\/T10Y2YM<\/a>.<\/p>\n<\/div>\n<\/div>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-40-1\"><span style=\"border: none windowtext 0pt; padding: 0;\">Source:<\/span> <a href=\"https:\/\/www.federalreserve.gov\/data\/nominal-yield-curve.htm\"><span style=\"border: none windowtext 0pt; padding: 0;\"><span class=\"import-url\">https:\/\/www.federalreserve.gov\/data\/nominal-yield-curve.htm<\/span><\/span><\/a> <a href=\"#return-footnote-40-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-40-2\">Source: EDGAR filing at the Securities and Exchange Commission website, <a href=\"http:\/\/www.sec.gov\/Archives\/edgar\/data\/740260\/000110465915051467\/a15-1495311ex4d2.htm\">www.sec.gov\/Archives\/edgar\/data\/740260\/000110465915051467\/a15-1495311ex4d2.htm<\/a> <a href=\"#return-footnote-40-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":13,"menu_order":7,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapters\/40"}],"collection":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/wp\/v2\/users\/13"}],"version-history":[{"count":17,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapters\/40\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapters\/40\/revisions\/402"}],"part":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapters\/40\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/pressbooks\/v2\/chapter-type?post=40"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/wp\/v2\/contributor?post=40"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.palni.org\/gatewaytobusinessanalytics\/wp-json\/wp\/v2\/license?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}