Equity Risk Premium vs Real Yields: A Python Monitor Built on FRED and Damodaran Data

Equity Risk Premium vs Real Yields: A Python Monitor Built on FRED and Damodaran Data

Three numbers, two clocks. The 10-year real yield printed 2.86 on 2026-11-12 on FRED’s DFII10 page, and the nominal 10-year printed 5.10 the same day on DGS10. The most recent implied equity risk premium we could fetch is a year-end 2025 value of 4.23% from Damodaran’s historical implied ERP page. Two series are daily; the ERP is annual. This post puts them in one pandas script and explains what each number cannot tell you.

Provenance. All data were captured 2026-11-14. Rates come from the FRED DFII10 and DGS10 pages, which cite the Board of Governors H.15 release; both were updated Nov 13, 2026. The equity figure comes from Damodaran’s January 2026 update of the US historical implied ERP. Two sources are secondary and are labeled where used: Conard’s January 2026 post and a Mendeley mirror of Damodaran’s ERP series. This post is based on FRED series and Damodaran’s published data. We did not run a backtest, and the code is illustrative until you run it. Nothing here is investment advice.

What DFII10 and DGS10 each measure

Quick answer: DFII10 is the market yield on 10-year TIPS, a real rate. DGS10 is the 10-year nominal Treasury yield. Both are daily H.15 series in percent. On 2026-11-12 they printed 2.86% and 5.10%. Their gap is mostly inflation compensation, plus liquidity and risk premia.

DFII10 is published daily, in percent, not seasonally adjusted, per its FRED page. The printed capture shows 2.63 on 2026-11-06, 2.66 on 2026-11-09, 2.78 on 2026-11-10, a blank on 2026-11-11, and 2.86 on 2026-11-12. DGS10, per its FRED page, shows 4.86, 4.88, 4.98 and 5.10 on the same four dates; DGS10 has no 11-11 row in the capture. The blank is a data-cleaning trap: FRED prints “.” for a missing observation, and the script has to coerce it.

Both feeds are reachable as CSV at fredgraph.csv?id=DFII10 and fredgraph.csv?id=DGS10. Both returned HTTP 200 on 2026-11-14. We did not check their full history.

What Damodaran’s implied ERP measures, and against which rate

Quick answer: Damodaran’s implied ERP is a backed-out figure, not a survey. Conard’s reading of the January 2026 value is an expected return of 8.41% minus the 4.18% 10-year rate, giving 4.23%. It is a valuation snapshot, not a return forecast.

The dataset, Historical Implied Equity Risk Premiums (US), sits on Damodaran’s data page and as histimpl.xls. It has columns for earnings yield, dividend yield, S&P 500, earnings, dividends, T.Bond rate, smoothed growth and implied ERP (FCFE). The table sets the implied ERP beside a nominal T.Bond rate, so every comparison in this post is nominal-basis. Selected rows, as printed:

Year Earnings yield T.Bond rate Implied ERP ERP minus T.Bond (DERIVED)
1999 3.07% 6.44% 2.05% -4.39 pp
2000 3.94% 5.11% 2.87% -2.24 pp
2002 5.23% 3.81% 4.10% +0.29 pp
2008 7.24% 2.21% 6.43% +4.22 pp
2009 5.35% 3.84% 4.36% +0.52 pp
2022 5.72% 3.88% 5.94% +2.06 pp
2023 4.64% 3.88% 4.60% +0.72 pp
2024 4.14% 4.58% 4.33% -0.25 pp
2025 3.97% 4.18% 4.23% +0.05 pp

The last column is DERIVED from the table: implied ERP minus the T.Bond rate in the same row. Its range from -4.39 pp to +4.22 pp shows the gap is not a stable relationship. The 2025 value is one point in that range, not an excess return.

The latest fetched row is year-end 2025, with the S&P 500 at 6845.50 and a dividend yield of 1.15%. No current (November 2026) implied ERP was fetched.

The bridge: a 10-year breakeven proxy

Quick answer: DGS10 minus DFII10 gives a breakeven inflation proxy of 2.24 percentage points on 2026-11-12. It is not FRED’s official T10YIE series, which we did not fetch, and it also carries TIPS liquidity and risk premia.

On 2026-11-12, 5.10 − 2.86 = 2.24 pp (DERIVED from DGS10 and DFII10). Treat this as a proxy. It mixes inflation expectations with the TIPS liquidity and risk-premium wedge, so it will not match a survey inflation forecast even in principle. In a monitor, its use is consistency checking: when nominal yields move, the proxy shows whether the move came from the real rate or from inflation compensation.

The Python monitor

Quick answer: A pandas script pulls both FRED CSV endpoints with no API key, coerces “.” to missing, joins the two daily series on date, and prints the last eight rows with the breakeven proxy and two ERP spreads.

The script uses a one-line URL template and normalises FRED’s observation_date column. The ERP values are hardcoded from the year-end 2025 row and marked as not current. The second spread mixes vintages, so it is labeled illustrative.

import pandas as pd

# FRED fredgraph CSV endpoints (no API key needed).
# Both returned HTTP 200 on 2026-11-14; full history was not checked.
TEMPLATE = "https://fred.stlouisfed.org/graph/fredgraph.csv?id={}"

def load(series_id: str) -> pd.DataFrame:
    df = pd.read_csv(TEMPLATE.format(series_id))
    # FRED's CSV names the date column observation_date (as of 2026-11-14); normalise it.
    df = df.rename(columns={"observation_date": "DATE"})
    # FRED prints "." when there is no observation (DFII10 on 2026-11-11).
    df[series_id] = pd.to_numeric(df[series_id], errors="coerce")
    return df

real_10y = load("DFII10")    # 10-year TIPS real yield, percent, daily
nominal_10y = load("DGS10")  # 10-year nominal Treasury yield, percent, daily

df = real_10y.merge(nominal_10y, on="DATE", how="inner")
df["DATE"] = pd.to_datetime(df["DATE"])
df = df.sort_values("DATE")

# Breakeven inflation proxy: nominal minus real. Proxy only, not FRED's T10YIE.
df["breakeven_proxy"] = df["DGS10"] - df["DFII10"]

# Year-end 2025 values entered manually from Damodaran's histimpl page; not current.
ERP_2025 = 4.23    # Damodaran implied ERP (FCFE), year-end 2025
TBOND_2025 = 4.18  # Damodaran T.Bond rate, year-end 2025

df["erp_minus_tbond"] = ERP_2025 - TBOND_2025       # same vintage
df["erp_minus_real_10y"] = ERP_2025 - df["DFII10"]  # mixed vintage: illustrative only

print(df.tail(8).set_index("DATE").round(2).to_string())

Read the printed table column by column. DFII10 and DGS10 are the two daily prints, and breakeven_proxy is their difference. erp_minus_tbond is constant across rows because it uses only the fixed 2025 values. erp_minus_real_10y moves only with DFII10, which is why it is labeled mixed-vintage. The ERP never changes inside this monitor, so any day-to-day change you see comes from the yields.

What the fetched numbers show

Over the printed window from 2026-11-06 to 2026-11-12, the real yield moved from 2.63 to 2.86 (+0.23 pp) and the nominal from 4.86 to 5.10 (+0.24 pp). The +0.23 pp and +0.24 pp changes are DERIVED from the printed observations. The breakeven proxy therefore barely changed, from 2.23 to 2.24 pp (DERIVED). In this window the move was a shared shift in nominal and real yields, not a change in the inflation wedge. That is a qualitative reading of four printed observations per series, not a trend.

The Mendeley mirror (secondary) pairs Damodaran’s implied ERP with subsequent returns, with 214 monthly observations from Sept 2008 to June 2026. We did not fetch any result from it, so this post makes no claim about predictive power.

Running the monitor without fooling yourself

Quick answer: Log the fetch date with every run, keep the ERP vintage in the output label, and read the monitor as a consistency check. It is not a signal generator.

The script is short, so the discipline matters more than the code. Four habits keep its output honest:

  • Save the raw CSV with its fetch date. FRED revises history and the feed can change, so a stored file lets you reproduce a number later. Our own CSV fetches on 2026-11-14 are the example: the endpoints answered, and that is all the dossier can say.
  • Carry the vintage into every label. The ERP column is a year-end 2025 value. Print that in the header, not only in a code comment, so a screenshot cannot pass it off as current.
  • Treat missing values as data. The blank on 2026-11-11 is a holiday-style gap in the DFII10 capture. A monitor that silently forward-fills it will show a flat line that never happened.
  • Refresh the annual input on Damodaran’s schedule. The ERP table is updated annually. Until a new row exists, the monitor should keep showing the last fetched year, not a guessed current value.

Where this monitor stops

Quick answer: Five limits matter: a year-end 2025 ERP sits next to November 2026 yields, the FRED captures are short, the breakeven is a proxy, the ERP is a point estimate, and nothing here was backtested.

  1. Vintage mismatch. A year-end 2025 ERP sits beside November 2026 daily yields. The erp_minus_real_10y column exists only for illustration.
  2. Short capture. The FRED pages show only the last few observations. The CSV endpoints were reachable on 2026-11-14, but we did not check full history.
  3. Proxy, not T10YIE. DGS10 minus DFII10 includes TIPS liquidity and risk premia.
  4. Point estimate, no predictive claim. The implied ERP is a solved point estimate. The fetched pages support no link to future returns.
  5. No execution or backtest. The code has not been run as part of this post. Run it before you trust its output.

FAQ

Does a higher implied ERP predict higher future returns?

Nothing fetched here supports that claim, and this post does not make it. The Mendeley mirror was built to study that question, but we did not fetch any results from it.

Why does the ERP-minus-T.Bond gap change from year to year?

The gap is the difference between two values that move for different reasons. The table above shows it ranging from -4.39 pp in 1999 to +4.22 pp in 2008. The 2025 value of +0.05 pp is one point in that range, so it should not be read as a stable relationship.

Can I compare a real yield directly with the implied ERP?

Not directly. The implied ERP is nominal-basis and comes from a different vintage than the November 2026 yields. The breakeven proxy links the two conceptually, but the script keeps any real-yield comparison in a column labeled as mixed-vintage.

← Back to all posts