Plots

Time series segmentation and plotting

This post documents an exploratory data analysis that assesses the relationship between the slope of the yield curve and the S&P 500 index. We will discretise the yield curve into equal frequency bins based on its level and change and draw a histogram of the subsequent S&P 500 returns associated with each bin. We will also prepare a plot visualising periods when future S&P 500 returns are within specific parameters.