如果是美国国债期限溢价的走势图,在圣路易斯联储银行FRED数据库的主页上搜索“10-Year Treasury Constant Maturity Rate”,然后点击“加入图表”功能键,在“编辑图表”功能选项的下拉菜单中,选择“定制数据”功能,输入“2-Year Treasury Constant Maturity Rate”后在“公式”栏中输入“a-b”,如果是比较10年期美国国债...
Louis Federal Reserve FRED database and find data on the M1 money supply (M1SL) and the 10-year treasury bond rate (GS10). Add the two series into a single graph by using the “Add Data Series” feature. Transform the M1 money supply variable into the M1 growth rate by adjusting the...
frommatplotlibimportpyplotaspltfrompystlouisfedimportFREDfred=FRED(api_key='abcdefghijklmnopqrstuvwxyz123456')# T10Y2Y - 10-Year Treasury Constant Maturity Minus 2-Year Treasury Constant Maturitydf=fred.series_observations(series_id='T10Y2Y')df.plot(y='value',grid=True)plt.show() ...
We examine inflation data: CPI and PCE, including the core versions, along with the 10-year BEI rate (break-even inflation) from the bond market. A unified inflation statistic m4infl is introduced, which leads to the estimation of the geometric mean rate. A robust optimized Holt-Winters mode...