Skip to content

quantgirluk/Yield-Curves-Visual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yield-Curves-Visual

This repository hosts the code for the dash app Yield Curves Visualisations. This dash app contains interactive charts illustrating the risk-free Yield Curve for the US and the UK. It was written in Python using the graphing the open source library Plotly.

If you like this project, please give it a star ⭐️


App


App


Yield Curve 101

In finance, the yield curve is a graph which depicts how the yields on debt instruments – such as bonds – vary as a function of their years remaining to maturity.

Ronald Melicher and Merle Welshans have identified several characteristics of a properly constructed yield curve. It should be based on a set of securities which have differing lengths of time to maturity, and all yields should be calculated as of the same point in time. All securities measured in the yield curve should have similar credit ratings, to screen out the effect of yield differentials caused by credit risk. For this reason, many traders closely watch the yield curve for U.S. Treasury (Bank of England in the UK) debt securities, which are considered to be risk-free.

Visualisations

  • The animation illustrates the evolution of the yield curve over time. It allows us to appreciate the different shapes that it has taken, and how it compares with the present curve.

  • The 3-D surfaces in this app follow the style from this article A 3-D View of a Chart That Predicts The Economic Future: The Yield Curve by The New York Times.

  • The Heatmap shows the yield curve evolution over time in two dimensions. It is worth noting that the heatmap provides the same picture as the 3-D surface when viewed from above.

  • Finally, the spread yield shows the difference between long and short term interest rates

Data Source

  • The data for the US Treasury Yield Curve comes from the FRED Federal Reserve Economic Data. Yields on actively traded non-inflation-indexed issues adjusted to constant maturities. For further information regarding treasury constant maturity data, please refer to the H.15 Statistical Release notes and the Treasury Yield Curve Methodology.

  • The data for the UK Yield Curve comes from the Bank of England official website. The government liability nominal yield curves are used. These are derived from UK gilt prices and General Collateral (GC) repo rates. The methodology used to construct the yield curves is described in the Bank of England Quarterly Bulletin article by Anderson and Sleath (1999), and a detailed technical description can be found in their Bank of England Working Paper no.126, 'New estimates of the UK real and nominal yield curves'.

About

📈A dash app showing Interactive Visualisation of the Yield Curve UK and US

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages