Objective
A raw price series is not a return series. Splits, dividends, spin-offs, ticker changes and delistings all move the printed price without changing (or while changing in a specific way) what a holder owns. You should be able to compute a total return by hand across a split and a dividend, explain how adjusted prices are built, and say which series each kind of feature needs.
The main actions
- Split (and reverse split). A 2-for-1 split doubles the share count and halves the price. Nothing of value changes. On the ex-date the printed price drops by the split ratio.
- Cash dividend. On the ex-dividend date the share stops carrying the right to the dividend, and the price drops by roughly the dividend. The holder's wealth is price plus cash, so the price change alone understates the return.
- Stock dividends, rights issues, spin-offs. Economically similar: the holder receives extra shares or shares in a new company, and the parent's price drops accordingly. Spin-offs need the value of the new shares, which is why they are a common source of errors.
- Ticker changes and reuse. Facebook became META in 2022; tickers are also reassigned to unrelated companies after a delisting. Always key data on a permanent identifier (a vendor's permanent security id, FIGI, or CUSIP with history), never on the ticker.
- Delistings. Mergers, failures to meet listing standards, bankruptcies. The last return (from the final trade to the delisting value, often paid weeks later) is frequently missing from price files. Dropping it biases returns upward, most for small and distressed stocks; Shumway (1997) estimated that the missing performance-related delisting returns of NYSE and AMEX stocks average roughly .
Total return
With new shares per old share on the ex-date (1 on normal days, 2 for a 2-for-1 split) and the cash dividend per post-event share going ex on day ,
which reduces to on dividend days and on split days. Total return over a period is the product of ; it assumes the dividend is reinvested at the ex-date close.
Adjusted prices
Data vendors also publish an adjusted close: the history is rescaled so that ratios of adjusted prices give total returns. Working backwards from the latest date, each event multiplies every earlier price by a factor:
The most recent adjusted price equals the actual price, and every new event rewrites the whole history before it. Two consequences:
- Use adjusted prices (or total returns) for anything about returns: momentum, volatility, moving-average crossovers.
- Use unadjusted prices for anything about the level as it was seen: a minimum-price filter (exclude stocks under $5), tick-size and lot-size logic, the price you would have sent in an order. A back-adjusted price from 2005 for a stock that has since split twenty-fold is not a price anyone traded at, and a "price under $5" filter on it is look-ahead: it uses splits that had not happened yet.
The dividend factor is a convention. It makes the adjusted return on the ex-date , which is very close to, but not exactly, . The worked example shows the size of the difference.
Worked example
total return across a split and a dividend
A stock closes at 200.00 on Monday. Tuesday is the ex-date of a 2-for-1 split and it closes at 101.00. It closes at 102.00 on Wednesday. Thursday is the ex-date of a 0.80 cash dividend (per post-split share) and it closes at 101.60. It closes at 102.50 on Friday. Compute the daily total returns, the week's total return, the naive return from printed prices, and the split-adjusted price return.
Show solutionHide solution
Daily total returns.
- Tuesday (split): . The naive is meaningless.
- Wednesday: .
- Thursday (ex-dividend): . The price-only return is .
- Friday: .
Week. .
Split-adjusted price return. One Monday share became two Friday shares worth , so the price return is . The difference, about , is the dividend: of the price, plus a little compounding.
Adjusted closes. Work back from Friday. The dividend factor for Thursday's ex-date is , applied to Wednesday and earlier. The split factor applies to Monday. So Monday's adjusted close is , Wednesday's is , and Thursday and Friday are unchanged.
From adjusted prices, Thursday's return is rather than , and the week's is rather than . The difference (about 0.3 basis points) is the reinvestment convention, not an error, but it is why two "total return" series rarely match to the last digit.
Worked example
building adjusted prices in pandas
Reproduce the previous numbers from a table of printed closes, split ratios and dividends, building the backward adjustment factors programmatically.
Show solutionHide solution
import pandas as pd
df = pd.DataFrame({
"close": [200.00, 101.00, 102.00, 101.60, 102.50], # as printed that day
"split": [1.0, 2.0, 1.0, 1.0, 1.0], # new shares per old share, on the ex-date
"div": [0.0, 0.0, 0.0, 0.80, 0.0], # cash per share, on the ex-date
}, index=pd.date_range("2024-06-03", periods=5, freq="B"))
prev = df["close"].shift(1)
df["naive"] = df["close"].pct_change()
df["total"] = (df["close"] * df["split"] + df["div"]) / prev - 1
# Backward adjustment: each ex-date event scales every EARLIER price.
event = (1 / df["split"]) * (1 - df["div"] / prev)
factor = event[::-1].cumprod()[::-1].shift(-1, fill_value=1.0)
df["adj_close"] = df["close"] * factor
df["adj_ret"] = df["adj_close"].pct_change()
print(df.round(6).to_string())
print("compounded total return:", round((1 + df["total"].dropna()).prod() - 1, 6))
print("adj_close end / start: ", round(df["adj_close"].iloc[-1] / df["adj_close"].iloc[0] - 1, 6))
close split div naive total adj_close adj_ret
2024-06-03 200.0 1.0 0.0 NaN NaN 99.215686 NaN
2024-06-04 101.0 2.0 0.0 -0.495000 0.010000 100.207843 0.010000
2024-06-05 102.0 1.0 0.0 0.009901 0.009901 101.200000 0.009901
2024-06-06 101.6 1.0 0.8 -0.003922 0.003922 101.600000 0.003953
2024-06-07 102.5 1.0 0.0 0.008858 0.008858 102.500000 0.008858
compounded total return: 0.033071
adj_close end / start: 0.033103
The reverse cumulative product gives each date the product of all later event factors; the shift(-1) excludes the event on the date itself, because an ex-date's own price is already post-event. Adjusted returns match the total returns except on the ex-dividend date, where the convention differs by percentage points.
Two checks worth automating on any price file: the naive return on every ex-date should be roughly explained by the action (a return with no recorded split is a missing split), and any daily return beyond, say, should be matched to news or a corporate action before it enters a backtest.
Knowledge check
A stock closes at 90.00, then goes ex on a 3-for-1 split and closes at 30.60. What is the total return on the split day?
Knowledge check
Your backtest excludes stocks priced below $5 to avoid penny stocks. It uses the vendor's back-adjusted close for the filter. What goes wrong?
Knowledge check
Your price file contains no delisting returns, so stocks simply stop appearing after their last trade. Which strategy's backtest is most inflated?
Key takeaways
- Total return: ; compound it over time.
- Back-adjusted prices rescale history by per split and per dividend, so the history changes after every event.
- Adjusted prices for returns-based features; unadjusted prices for level-based rules and order prices.
- Key on permanent identifiers, not tickers.
- Include delisting returns, or the strategies that buy losers look far better than they were.
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).