Skip to content
LeetQuant
QR07 Financial Data and Feature Engineering

QR07 · Financial Data and Feature Engineering · Lesson 3 of 5

Corporate Actions

Splits, dividends, adjusted versus unadjusted prices, computing total returns with worked numbers, ticker changes and delistings, and which price series to use for which feature.

15 min

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 −30%-30\%.

Total return

With sts_t new shares per old share on the ex-date (1 on normal days, 2 for a 2-for-1 split) and DtD_t the cash dividend per post-event share going ex on day tt,

Rt=stPt+stDtPt−1−1,R_t = \frac{s_t P_t + s_t D_t}{P_{t-1}} - 1 ,

which reduces to Pt+DtPt−1−1\dfrac{P_t + D_t}{P_{t-1}} - 1 on dividend days and stPtPt−1−1\dfrac{s_t P_t}{P_{t-1}} - 1 on split days. Total return over a period is the product of 1+Rt1 + R_t; 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:

split: 1st,dividend: 1−DtPt−1.\text{split: } \frac{1}{s_t}, \qquad \text{dividend: } 1 - \frac{D_t}{P_{t-1}} .

The most recent adjusted price equals the actual price, and every new event rewrites the whole history before it. Two consequences:

  1. Use adjusted prices (or total returns) for anything about returns: momentum, volatility, moving-average crossovers.
  2. 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 1−D/Pt−11 - D/P_{t-1} is a convention. It makes the adjusted return on the ex-date Pt/(Pt−1−Dt)−1P_t/(P_{t-1} - D_t) - 1, which is very close to, but not exactly, (Pt+Dt)/Pt−1−1(P_t + D_t)/P_{t-1} - 1. 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 solution

Daily total returns.

  • Tuesday (split): 2×101.00/200.00−1=1.000%2 \times 101.00 / 200.00 - 1 = 1.000\%. The naive 101/200−1=−49.5%101/200 - 1 = -49.5\% is meaningless.
  • Wednesday: 102.00/101.00−1=0.990%102.00/101.00 - 1 = 0.990\%.
  • Thursday (ex-dividend): (101.60+0.80)/102.00−1=0.392%(101.60 + 0.80)/102.00 - 1 = 0.392\%. The price-only return is −0.392%-0.392\%.
  • Friday: 102.50/101.60−1=0.886%102.50/101.60 - 1 = 0.886\%.

Week. 1.01×1.009901×1.003922×1.008858−1=3.307%1.01 \times 1.009901 \times 1.003922 \times 1.008858 - 1 = 3.307\%.

Split-adjusted price return. One Monday share became two Friday shares worth 2×102.50=2052 \times 102.50 = 205, so the price return is 205/200−1=2.5%205/200 - 1 = 2.5\%. The difference, about 0.8%0.8\%, is the dividend: 0.80/102=0.78%0.80/102 = 0.78\% of the price, plus a little compounding.

Adjusted closes. Work back from Friday. The dividend factor for Thursday's ex-date is 1−0.80/102.00=0.9921571 - 0.80/102.00 = 0.992157, applied to Wednesday and earlier. The split factor 1/21/2 applies to Monday. So Monday's adjusted close is 200×0.5×0.992157=99.2157200 \times 0.5 \times 0.992157 = 99.2157, Wednesday's is 102×0.992157=101.2102 \times 0.992157 = 101.2, and Thursday and Friday are unchanged.

From adjusted prices, Thursday's return is 101.60/101.20−1=0.395%101.60/101.20 - 1 = 0.395\% rather than 0.392%0.392\%, and the week's is 102.50/99.2157−1=3.310%102.50/99.2157 - 1 = 3.310\% rather than 3.307%3.307\%. 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 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 0.00310.0031 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 −49.5%-49.5\% return with no recorded split is a missing split), and any daily return beyond, say, ±40%\pm 40\% 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: Rt=(stPt+stDt)/Pt−1−1R_t = (s_t P_t + s_t D_t)/P_{t-1} - 1; compound it over time.
  • Back-adjusted prices rescale history by 1/s1/s per split and 1−D/Pt−11 - D/P_{t-1} 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).