A stock's score changed without the stock changing
Stock C keeps the same raw signal value of 14. Yesterday it had a positive standardized score, so a strategy bought it. Today one extra stock enters the universe with a very large value. C’s standardized score turns negative even though C’s own raw number did not move. A cross-sectional score is a comparison, and a comparison changes when the crowd changes.
Rebuild the score by hand
Start with three raw values, . Their cross-sectional mean is 12 and their population standard deviation is . Stock C has z-score .
Now add stock D with value 100 while keeping A, B and C unchanged. The new mean is 34. The population standard deviation is . C’s new score is .
| Stock | Raw value | Z-score among A, B, C | Z-score after D joins |
|---|---|---|---|
| A | 10 | −1.225 | −0.629 |
| B | 12 | 0 | −0.577 |
| C | 14 | +1.225 | −0.525 |
| D | 100 | — | +1.731 |
For the original three stocks, the raw ordering A < B < C did not change. Their z-scores moved because the center and scale did. A rule that buys every stock with bought C before D arrived and would no longer buy C afterward. That can be a legitimate change if the rule truly means “above the current universe mean.” It becomes a problem when the universe changes for an accidental or future-informed reason.
A rank rule and a z-score rule are different
Within one fixed universe, z-scoring with a positive standard deviation preserves the ordering of raw values. A strategy that buys the top one stock would still pick C among A, B and C; after D joins, it picks D. But a threshold such as depends on the mean, scale, and number of eligible names. A standardized score is not an intrinsic property of a stock.
Outlier treatment matters too. Winsorizing D at a predeclared cutoff, using a robust median and scale, or standardizing within comparable sectors would yield different scores. None is universally correct. The transformation should reflect the intended economic comparison and be fixed before evaluating results. If the signal’s magnitude has meaningful units, cross-sectional normalization can also erase information about how strong the entire market-wide opportunity set is today.
The point-in-time universe rule
Suppose a historical backtest constructs each day’s cross-sectional mean using only companies that are in today’s index membership file. Companies that later delisted may be missing from that file. Even if every individual surviving stock’s raw signal is historical, the daily normalization uses future knowledge about who remains. The z-scores and the trade list can change. A historical index constituent list or other point-in-time eligibility record is needed for the original decision date; point-in-time backtesting data develops that requirement.
The time of the raw features matters equally. A feature computed from end-of-day volume cannot be placed in a morning cross-section and traded at the morning price. Standardization does not cure timing leakage. If the mean and standard deviation use the current day’s complete cross-section, every raw value in that cross-section must have been known before the assumed trade.
Cross-sectional dependence affects evaluation
Scores standardized within a date are linked mechanically: their mean is zero, and their squared magnitudes obey the chosen scaling convention. A long-short strategy built by buying high scores and shorting low scores may have low market exposure by construction, but its tickets are not independent observations. A market-wide shock can move many names together, and a change in sector mix can shift the score distribution. Treating 500 same-day stock returns as 500 independent confirmations of a signal overstates evidence.
For a reproducible feature pipeline, record the universe rule, raw-data cutoff, missing-value handling, outlier policy, sector grouping if any, standard-deviation convention, and score timestamp. Save the population counts and the mean and scale used each day. When performance changes unexpectedly, those diagnostics distinguish a real signal change from a change in the population against which the signal was measured.
Missing values can move the whole book
Suppose D’s very large raw value is missing on one date because its vendor record arrives late. A pipeline that silently drops D calculates scores using A, B and C, then includes D again the next day. Every surviving stock’s z-score can jump even if no raw value changed. That jump can create trading and turnover from data availability rather than new economic information. A point-in-time system needs a declared rule: exclude the missing name, carry forward a permitted prior value, use a sector fallback, or abstain from trading that cross-section. Each choice changes the historical decision.
Small groups are another hazard. Sector neutralization can improve comparability across industries, but a sector containing only two eligible names has a very noisy mean and scale. If all values in a group are identical, standard deviation is zero and the ordinary z-score is undefined. A robust implementation needs a minimum group size and a specified fallback. These details are not just software hygiene: they decide which securities receive extreme weights when the data are sparse.
Add one outlier without changing the first three stocks
A, B and C stay at 10, 12 and 14. Z-scores use the population standard deviation of the current universe.
Practice
RankingIf all scores on one date are transformed using the same mean and positive standard deviation, can that transformation reverse the ordering of two stocks?Show answer
No. Subtracting the same mean and dividing by the same positive number preserves ordering. It can still move either stock across a fixed z-score threshold.
Missing nameWhy can excluding a delisted stock from a past date change a surviving stock's backtested decision even if its raw feature is unchanged?Show answer
The excluded stock changes that date’s cross-sectional mean and standard deviation. The survivor’s standardized score can change, possibly crossing the trading threshold. If the exclusion uses later survival information, the historical decision has been contaminated by future knowledge.