BLOG

Behind the numbers.

Code examples, market analysis, and data quality deep-dives.

Do Company Insiders Predict Their Own Stock's Returns? Form 4 Cross-Section in Python
How Many Independent Bets Are There in the S&P 500? Principal Component Analysis in Python
Can a Company's Revenue Be Forecast From Its Own History? Out-of-Sample Test in Python
What Is EBITDA and Why Do Sources Disagree?
Does the Turn-of-the-Month Effect Still Work? Calendar Anomaly Test in Python
Is the S&P 500 Getting More Capital Intensive? Capex Analysis in Python
Do High-Accrual Companies Underperform? Accruals Screening in Python
What Does a Financial Data API Cost?
Do Price Gaps Get Filled? Gap-Fill Rates Against a Random Walk in Python
What Expected Returns Does the S&P 500 Imply? Reverse Optimization in Python
Which Sectors Are Really Cyclical? Revenue Betas vs Stock Betas in Python
How to Build a Stock Dataset for Machine Learning
Comparing Companies With Different Fiscal Year Ends
How Much Has Corporate Debt Actually Repriced? Effective Interest Rates in Python
Does Deferred Revenue Predict Next Quarter's Sales? Leading Indicator Test in Python
How Much Debt Is Hidden in Operating Leases? Lease-Adjusted Leverage in Python
How Much Do Profits Move When Sales Move? Operating Leverage Regression in Python
How Concentrated Is the S&P 500? Index Weight Analysis in Python
How Long Is Cash Tied Up in a Business? Cash Conversion Cycle Analysis in Python
Broker API vs Data API for Historical Stock Data
Where to Get Free Cash Flow Data for Stocks in Python
Are Stock Returns Skewed? Return Skewness in Python
Do High-Margin Companies Trade at Higher Multiples? EV/Sales in Python
How Much Profit Becomes Cash? Free Cash Flow Conversion in Python
Which Sectors Lead Out of a Market Bottom? Sector Recovery Analysis in Python
Are Buybacks Funded by Cash Flow or by Debt? S&P 500 Payout Analysis in Python
What to Look for in Fundamentals Data
Does Cash on the Balance Sheet Cushion a Crash? Quintile Sorts in Python
Do Corporate Insiders Time the Market? S&P 500 Insider Buying Breadth in Python
Does Unstable Volatility Warn of Deeper Drawdowns? Vol-of-Vol Sorts in Python
Does Fast Asset Growth Predict Weak Stock Returns? Decile Sorts in Python
How to Replace yfinance in a Python Script
Does the Nasdaq-100 Index Effect Still Exist? Event Study in Python
Does the Piotroski F-Score Still Work? Quality Screening in Python
How Many S&P 500 Stocks Beat the Index? Return Breadth Analysis in Python
Why Beta Differs Between Data Sources
Where to Get Historical Dividend Data for Stocks
Does a High Dividend Yield Predict a Dividend Cut? Yield-Trap Screening in Python
Do Old Ticker Symbols Still Point to the Same Company? S&P 500 Ticker Recycling in Python
What Growth Is Priced Into the S&P 500? Reverse DCF in Python
Ticker vs CIK vs FIGI: Which Company ID to Use
Does Illiquidity Still Pay? Amihud Measure in the S&P 500 in Python
Where to Get R&D Spending Data for Public Companies
Does R&D Spending Predict Revenue Growth? Cross-Sectional Test in Python
What Actually Drives Return on Equity? DuPont Decomposition in Python
What Data Do You Need to Measure Portfolio Risk?
Does a 60/40 Portfolio Actually Cut Drawdowns? Stocks and Bonds in Python
Do Steady Margins Mean Calmer Stocks? Cross-Sectional Analysis in Python
Do Sectors Diversify When It Matters? Conditional Correlation in Python
How to Get Historical Market Cap Data in Python
How Much of the S&P 500 Survives 20 Years? Index Turnover Analysis in Python
Does Joining the S&P 500 Bring New Institutional Owners? 13F Event Study in Python
Is Volatility Seasonal? Calendar Month Analysis of Realized Volatility in Python
Does Fast Revenue Growth Force Companies to Borrow? Cash Funding Analysis in Python
How Far Back Does SEC EDGAR Data Go?
Are One-Time Charges Really One-Time? Charge Frequency Analysis in Python
Does Buying the Dip Work? Short-Term Reversal by Volatility Regime in Python
Alpha Vantage vs Massive vs xfinlink for Fundamentals
How Long Does a Stock Take to Recover From a 50% Fall? Drawdown Analysis in Python
Do Companies That Shrink Their Share Count Outperform? Net Buyback Yield in Python
How Much Does the Dow's Price Weighting Distort It? Index Weighting Analysis in Python
How to Get SEC Form 4 Insider Trading Data in Python
Can Anything Predict Next Month's Stock Returns? Out-of-Sample R-Squared Testing in Python
How Much of a Stock's Return Comes From Its Sector? Variance Decomposition in Python
Altman Z-Score: Where To Get It in Python
Do Value Screens Agree on Which Stocks Are Cheap? Multiple Overlap Analysis in Python
Annual vs Quarterly Financial Data: Which to Use
Do High Returns on Capital Persist? ROIC Fade Analysis in Python
Does Past Beta Predict Future Beta? Beta Stability Testing in Python
Do Defensive Sectors Actually Defend? Up and Down Capture in Python
How to Choose a Financial Data API
Do Small Caps Actually Beat Large Caps? Size Premium Test in Python
What If You Miss the Market's Best Days? Extreme-Day Analysis in Python
Does Rebalancing Add Return? Fixed-Weight vs Drift Portfolios in Python
Which S&P 500 Companies Are Closest to Default? Merton Distance-to-Default in Python
What Happens to Stocks Removed From the S&P 500? Replacement Pair Analysis in Python
Does the Golden Cross Work? 50/200 Moving Average Crossover Backtest in Python
Financial Data for Academic Finance Research
Does Skipping the Most Recent Month Improve Momentum? S&P 500 Decile Sorts in Python
Does Cointegration Survive Out of Sample? Pairs Trading Validation in Python
Which Dividends Are Not Covered by Cash? Free-Cash-Flow Coverage Screening in Python
GICS vs SIC vs NAICS: Which Industry Classification to Use
How Many Stocks Does It Take to Diversify? Random Portfolio Simulation in Python
How Many Days of Data Does a Volatility Estimate Need? Range-Based Estimators in Python
How Much of S&P 500 Cash Flow Is Stock Compensation? Cross-Sectional Analysis in Python
What Is a 13F Filing? Institutional Holdings Explained
Does Revenue Growth Explain Profit Growth? Cross-Sectional Decomposition in Python
How Much of the Nasdaq 100 Is Already in the S&P 500? Index Overlap Analysis in Python
How Often Does a 99% Value-at-Risk Limit Actually Break? VaR Backtesting in Python
Real-Time vs End-of-Day Market Data: Which Do You Need?
How Concentrated Are S&P 500 Earnings? Point-in-Time Index Analysis in Python
Does Volatility Scale With the Square Root of Time? Variance Ratio Test in Python
Does Goodwill Distort the Price-to-Book Screen? Goodwill-Adjusted Valuation in Python
How Are Shares Outstanding Reported (and Why They Disagree)
Do Low-Volatility Stocks Deliver Better Risk-Adjusted Returns? S&P 500 Quintile Sorts in Python
Does Trend Following Beat Buy and Hold? Time-Series Momentum in Python
Has the Stock-Bond Correlation Flipped? 60/40 Portfolio Risk in Python
What API to Use for a Stock Screener
Which Assets Hedge Inflation Shocks? Macro Factor Betas in Python
Does Covariance Shrinkage Beat the Sample Covariance? Minimum-Variance Portfolios in Python
Do Faster Inventory Turns Mean Thinner Margins? Gross Margin Return on Inventory in Python
SEC EDGAR API vs Fundamentals API: Which to Use
Does Fast Earnings Growth Persist? Rank Correlation Analysis in Python
Split Adjustment Explained: Adjusted Close vs Close
Which Trading Day of the Month Pays Best? Turn-of-the-Month Analysis in Python
Can You Use Yahoo Finance Data Commercially?
How Many Independent Bets Does a Nine-Sector Portfolio Give You? Eigenvalue Analysis in Python
Which Volatility Forecast Wins One Month Ahead? HAR vs EWMA in Python
How Concentrated Are Institutional Equity Portfolios? Form 13F Concentration Analysis in Python
Do Stocks Earn Their Returns Overnight or Intraday? Return Decomposition in Python
When Do Corporate Insiders Actually Trade? Form 4 Timing Analysis in Python
Data Requirements for Backtesting a Trading Strategy
What Is Survivorship Bias in Backtesting?
Do High Dividend Yields Come From Bigger Payouts or Falling Prices? Yield Decomposition in Python
Do Stocks Fall Harder Than They Rise? Downside Beta vs Upside Beta in Python
Does Volatility Targeting Improve Sharpe Ratios? Seven-Asset Backtest in Python
Free Stock Market Data APIs: What You Actually Get
How to Give an LLM Financial Data With an MCP Server
Does Post-Earnings Announcement Drift Survive Real Filing Dates? PEAD Event Study in Python
Do Insider Buying Clusters Predict Returns? Signal Testing in Python
Does the S&P 500 Index Effect Still Exist? Event Study in Python
Are Companies Leaving the S&P 500 Faster Than They Used To? Index Survival Analysis in Python
Does Gross Profitability Predict Stock Returns? Quintile Factor Test in Python
What Growth Rate Is the Market Pricing In? Reverse DCF in Python
Does a Strong Balance Sheet Cushion Drawdowns? Leverage and Downside Risk in Python
Does Ticker Recycling Corrupt a Mean-Reversion Backtest? Entity-Resolved Z-Scores in Python
How Much of a Growth Screen's Backtested Edge Is Survivorship Bias? Point-in-Time Index Testing in Python
Why Do Leveraged ETFs Decay? Measuring Volatility Drag in Python
Are Consumer Staples Margins Shrinking Under Inflation? Gross Margin Trend Analysis in Python
Do Weak Jobs Reports Predict Market Drawdowns? NFP Surprise Event Study in Python
Is the Rotation From Tech to Industrials Backed by Earnings? Relative EPS Growth Analysis in Python
Is the Semiconductor Rally Broadening Beyond NVIDIA? Return Dispersion Analysis in Python
Which Stocks Benefit Most When Oil Prices Fall? Oil Beta Screening in Python
Do Bond Returns Predict Stock Returns? Granger Causality Test in Python
Which Stocks Actually Drive Portfolio Returns? Shapley Value Attribution in Python
Does "Sell in May" Still Work? Calendar Anomaly Backtest in Python
How to Build Complete Price History Through Ticker Changes? Entity Resolution in Python
Are KO and PEP Cointegrated? Pairs Trading Signal Construction in Python
Which Commodities Have the Strongest Momentum? Rotation Backtest in Python
Which Commodity ETFs Have the Worst Tail Risk? Expected Shortfall in Python
Are Gold Miners Leveraged Gold Bets? Rolling Beta Analysis in Python
Does the Base-Metals-to-Gold Ratio Lead Cyclical Stocks? Signal Test in Python
Can Risk Parity Tame Commodity Volatility? Portfolio Optimization in Python
Are Power Stocks Becoming an AI Infrastructure Trade? Momentum Screening in Python
Which AI Chip Stocks Have Margin Momentum? Profitability Trend Analysis in Python
Which AI Stocks Are Cheapest Relative to Growth? Growth-Adjusted Valuation in Python
Does AI Stock Leadership Persist? Momentum Backtest in Python
Which AI Stocks Have the Cleanest Balance Sheets? Net Cash Screening in Python
Can Risk Parity Reduce Mega-Cap Drawdowns? Portfolio Optimization in Python
Which Growth Stocks Are Self-Funding? Cash-Flow Quality Screening in Python
Which Sectors Struggle When the Dollar Rallies? Sector Rotation Analysis in Python
Do Cheap Stocks Hold Up When Bonds Sell Off? Valuation Rotation in Python
Does the Nasdaq 100 Have Better Growth Quality Than the Dow? Index Constituent Analysis in Python
Do Healthcare Cash-Flow Margins Predict Returns? Signal Evaluation in Python
Which Dividend Stocks Survive a Cash-Flow Stress Test? Dividend Screening in Python
Does Heavy Insider Selling Predict Weak Returns? Insider Flow Test in Python
Can Quality Screens Reduce Small-Cap Balance-Sheet Risk? Russell 2000 Test in Python
Which Retailers Have Positive Operating Leverage? Margin Screening in Python
Is MSTR a Leveraged Bitcoin Proxy? Rolling Beta Analysis in Python
Is Micron's Memory Cycle Recovering? Inventory and Margin Forecasting in Python
Which Sectors Work When Bonds Rally? Rate-Sensitive Rotation in Python
Do One-Month Price Extremes Reverse? Signal Evaluation in Python
Do Low-Volatility S&P 500 Stocks Reduce Drawdowns? Factor Test in Python
Is AI Capex Paying Back Fast Enough? Revenue Hurdle Forecasting in Python
Could Shorter AI Asset Lives Hit Earnings? Depreciation Stress Test in Python
How Much AI Capex Risk Can a Portfolio Remove? Constrained Optimization in Python
Is the AI Capex Trade Crowded? Rolling Volatility and Sector Rotation in Python
Did the AI Boom Come From Existing S&P 500 Members? Point-in-Time Momentum Test in Python
Is AI Revenue Circular? Customer-Vendor Capex Loop Analysis in Python
Is the AI Trade Connected to Private Credit? Rolling Correlation Network in Python
Is Apollo More Balance-Sheet Sensitive Than Peers? Leverage Screen in Python
Are AI Earnings Supported by Cash Flow? Accrual and Capex Screen in Python
Can Defensive Stocks Hedge AI Drawdowns? Basket Regime Test in Python
How Fast Does the Market Price In Fed Decisions? FOMC Event Study in Python
How Much Are Options Sellers Overpaid? The Variance Risk Premium in Python
Which Companies Have the Worst Earnings Quality? Sloan Accrual Screen with Geographic Revenue Data in Python
Does the Oil-to-Gold Ratio Signal Recessions? XLE/GLD Backtest in Python
Is AI Spending Crowding Out Free Cash Flow? Capex Sustainability Across the Mag 7 in Python
Does a Long Energy / Short Bonds Portfolio Capture Inflation Surprises? Factor Construction in Python
Can a Hidden Markov Model Detect Oil Market Regimes? HMM Analysis in Python
Do Grain Prices Predict Food Inflation? Granger Causality Test in Python
Does the Corporate Credit Spread Predict Stock Market Crashes? BAA-AAA Spread Analysis in Python
Do Oil Stocks Hedge Inflation? Rolling Beta Analysis in Python
Which Stocks Are Most Rate-Sensitive? Equity Duration via Bond Beta in Python
Which Companies Have the Highest Accrual Ratios? Earnings Quality Screening in Python
Is Alpha Persistent or Decaying? Rolling Sharpe Ratio Analysis in Python
Are Markets Trending or Mean-Reverting? Hurst Exponent Analysis in Python
Is Consumer Discretionary vs Staples a Leading Indicator? XLY/XLP Ratio Analysis in Python
Does Heavy Capex Predict Future Stock Returns? Capital Expenditure Analysis in Python
How to Estimate Cost of Equity Using CAPM in Python
Is Volatility Predictable? Testing for Volatility Clustering in Python
Which Industrials Are Overleveraged? Net Debt to EBITDA Screening in Python
GM Before and After Bankruptcy: Why Entity Resolution Matters for Financial Data
What Is Adjusted Beta? Merrill Lynch Beta Shrinkage in Python
How Good Is a Stock Pick? Information Ratio and Tracking Error in Python
Do Stock Returns Follow a Normal Distribution? Testing for Fat Tails in Python
Which Large Caps Have the Highest Free Cash Flow Yield? FCF Screening in Python
Which Sectors Won Over 5 Years? Sector Rotation Analysis in Python
How to Forecast Stock Volatility with GARCH Models in Python
Are Stock Prices Mean-Reverting? Augmented Dickey-Fuller Test in Python
How to Calculate CAPM Alpha and Beta with Regression in Python
How to Compare Sector Sharpe Ratios and Sortino Ratios in Python
DELL: Why Stitching Historical Price Data Together Is Wrong
How to Analyze Drawdown and Recovery for Bank Stocks in Python
How to Screen SaaS Stocks by Revenue Growth and Cash Flow in Python
How to Screen REITs by Dividend Yield and Valuation in Python
How Correlated Are the Magnificent 7? Intra-Group Correlation in Python
AAPL vs XOM: Do Individual Stocks Have Seasonal Patterns?
How to Rank Large-Cap Stocks by Momentum in Python
How to Build a Multi-Endpoint Financial Dashboard in Python
How to Compare Volatility Across Energy Stocks in Python
How to Screen Healthcare Stocks by Valuation in Python
How to Build a Sector Correlation Matrix for Portfolio Diversification in Python
How to Find Oversold and Overbought Stocks Using Z-Scores in Python
How to Measure Earnings Quality: Cash Flow vs Net Income in Python
How to Build a Multi-Factor Stock Screen in Python (Value + Momentum + Quality)
How to Build a Simple DCF Model for Any Stock in Python
How to Screen Tech Stocks by Revenue Growth in Python
How to Screen Stocks by Balance Sheet Health in Python
Is "Sell in May" Real? SPY Monthly Seasonality Over 10 Years
How to Compare Sector Performance YTD Using Python
How to Screen Dividend Stocks by Yield and Quality in Python
How to Calculate Max Drawdown and Recovery Time for Any Stock in Python
How to Compare Profitability Across Mega-Cap Tech Stocks in Python
Why Ticker Symbols Are Unreliable: The Recycling Problem Every Quant Should Know
How to Calculate and Compare Stock Volatility in Python
How to Screen Blue-Chip Stocks by P/E Ratio in Python
How to Track Companies Through Ticker Changes, Bankruptcies, and Renames in Python
S&P 500 Turnover: How Much the Index Has Changed Since 2010
How to Calculate Stock Beta and Correlation in Python
← All articles

Can a Company's Revenue Be Forecast From Its Own History? Out-of-Sample Test in Python

What’s the question?

Every valuation model begins with a revenue line, and every revenue line begins with a forecast. Sell-side research builds those forecasts from guidance, channel checks and industry volume models, none of which appears in a company’s own accounts. The accounts set a floor: whatever a mechanical rule achieves from past revenue alone is accuracy no analyst should be credited for.

The rule to beat is the random walk, which forecasts next year’s revenue as this year’s and assumes no growth whatsoever. In many economic series it is close to unbeatable, because whatever sets the level carries forward while whatever sets the change does not.

The alternative is extrapolation: take the growth rate a company just delivered and apply it again. That sits inside most spreadsheet models, and it holds only if growth is persistent, meaning a fast grower this year is likely to grow fast again next year.

The approach

Five rules, each needing nothing but annual revenue history, are scored over ten forecast origins. A forecast made at year t sees revenue through year t and is scored against year t+1.

  1. Rebuild the S&P 500 roster at each year end from 2015 to 2024, and use it as the sample for that year’s forecast.
  2. Pull annual revenue back to 2008, carried by entity_id rather than by ticker, so a ticker change does not split a series.
  3. Anchor each statement to the year it covers using the period end, not the fiscal year label; a year end in January to May belongs to the previous year. Where two annual periods land in one year, keep the one matching the company’s usual year end.
  4. Build five forecasts at each origin: no growth; last year’s growth repeated; average growth over four years; last year’s growth shrunk halfway toward the cross-sectional median; and that median applied to every company alike.
  5. Score each forecast as absolute percentage error and read the median, since a few mergers move an average by several points on their own.

The panel holds 4,764 forecasts across 630 companies. Because origins overlap in time, each rule’s gain is tested across the ten origin-level medians.

The statements are the restated versions, so a company’s earlier revenue reflects any later reclassification of a division as discontinued. History and the forecast target move together under that convention, which flatters every rule equally and so leaves the ranking between them intact.

Code

import xfinlink as xfl
import pandas as pd
import numpy as np

xfl.set_api_key("YOUR_API_KEY")  # free at https://xfinlink.com/signup

rosters = {y: set(xfl.index("sp500", as_of=f"{y}-12-31")["entity_id"])
           for y in range(2015, 2025)}
universe = sorted(set().union(*rosters.values()))

fu = xfl.fundamentals(entity_id=universe, period_type="annual",
                      start="2008-01-01", end="2026-08-28",
                      fields=["revenue"], max_rows=50000)
fu = fu[fu["revenue"] > 0].copy()

# anchor to the year the period covers, not the fiscal year label
fu["month"] = fu["period_end"].dt.month
fu["y"] = np.where(fu["month"] <= 5, fu["period_end"].dt.year - 1,
                   fu["period_end"].dt.year)
modal = fu.groupby("entity_id")["month"].agg(lambda s: s.mode().iloc[0])
fu["off"] = (fu["month"] - fu["entity_id"].map(modal)).abs()
fu = fu.sort_values(["entity_id", "y", "off"]).drop_duplicates(["entity_id", "y"])

rev = fu.pivot_table(index="entity_id", columns="y", values="revenue")

rows = []
for t in range(2015, 2025):
    for eid in rev.index:
        if eid not in rosters[t]:
            continue
        hist = [rev.at[eid, y] if y in rev.columns else np.nan
                for y in range(t - 4, t + 2)]
        if any(pd.isna(hist)):
            continue
        r = np.asarray(hist, dtype=float)
        g = r[1:5] / r[0:4] - 1           # growth in years t-3 .. t
        rows.append(dict(origin=t, R=r[4], actual=r[5],
                         g_last=g[-1], g_avg=g.mean()))
p = pd.DataFrame(rows)

p["peer"] = p.groupby("origin")["g_last"].transform("median")
models = {"no growth (random walk)": p["R"],
          "last year's growth": p["R"] * (1 + p["g_last"]),
          "4-year average growth": p["R"] * (1 + p["g_avg"]),
          "own growth shrunk halfway": p["R"] * (1 + 0.5 * p["g_last"] + 0.5 * p["peer"]),
          "peer median growth only": p["R"] * (1 + p["peer"])}
ape = pd.DataFrame({k: (v - p["actual"]).abs() / p["actual"] * 100
                    for k, v in models.items()})
print(ape.median().round(2))

Full script with formatting and visualisation: revenue-forecast-own-history-sp500-python.py

Output

Two-panel chart: median one-year-ahead revenue forecast error for five rules on S&P 500 companies from 2016 to 2025, all between 5.98 and 7.31 percent, above a plot showing that companies grouped by this year’s revenue growth deliver far less growth the following year than the identity line implies
point-in-time universe: 680 entities
annual observations 11,017  resolved to one per company-year from 16 overlapping rows
forecasts 4,764  companies 630  origins 2015-2024

out-of-sample absolute percentage error, one year ahead
rule                          median    mean     p75     p90  beats RW
no growth (random walk)         7.31   12.36   13.56   23.71
last year's growth              6.77   19.17   16.26   34.58     50.0%
4-year average growth           6.91   19.03   14.52   30.10     52.0%
own growth shrunk halfway       5.98   14.48   13.05   26.44     56.0%
peer median growth only         6.47   12.17   13.06   24.24     60.4%

gain over the random walk, tested across the ten forecast origins
last year's growth           +0.42pp  wins 7/10  t=+0.84  p=0.421
4-year average growth        +0.47pp  wins 6/10  t=+1.00  p=0.342
own growth shrunk halfway    +1.31pp  wins 8/10  t=+3.00  p=0.015
peer median growth only      +0.81pp  wins 7/10  t=+1.99  p=0.078

next year's growth on this year's growth: slope -0.010  r2=0.000  rank correlation +0.229

growth this year vs growth next year, by decile of this year's growth
  decile  1:  -16.72%  ->   +3.00%
  decile  2:   -3.61%  ->   +2.52%
  decile  3:   -0.54%  ->   +2.90%
  decile  4:   +1.34%  ->   +3.23%
  decile  5:   +3.54%  ->   +4.21%
  decile  6:   +5.79%  ->   +5.28%
  decile  7:   +7.78%  ->   +6.48%
  decile  8:  +10.67%  ->   +6.89%
  decile  9:  +15.90%  ->  +10.12%
  decile 10:  +33.40%  ->  +13.33%

median error by sector, random walk vs the best rule
  Consumer Staples         n= 354  RW   4.49%   shrunk   3.69%
  Utilities                n= 282  RW   6.05%   shrunk   6.56%
  Communication Services   n= 177  RW   6.25%   shrunk   6.01%
  Financials               n= 710  RW   6.77%   shrunk   5.14%
  Industrials              n= 697  RW   6.97%   shrunk   5.50%
  Real Estate              n= 301  RW   7.17%   shrunk   4.48%
  Consumer Discretionary   n= 580  RW   7.28%   shrunk   5.43%
  Health Care              n= 577  RW   7.52%   shrunk   5.42%
  Materials                n= 258  RW   7.85%   shrunk   9.35%
  Information Technology   n= 574  RW   9.50%   shrunk   6.88%
  Energy                   n= 252  RW  19.88%   shrunk  20.23%

median error by revenue size decile at the forecast origin
  decile  1: median revenue $    2.0bn   RW  8.46%   shrunk  5.49%
  decile  2: median revenue $    3.5bn   RW  7.89%   shrunk  5.67%
  decile  3: median revenue $    5.0bn   RW  8.16%   shrunk  6.77%
  decile  4: median revenue $    6.5bn   RW  6.92%   shrunk  6.38%
  decile  5: median revenue $    9.0bn   RW  7.54%   shrunk  6.67%
  decile  6: median revenue $   11.9bn   RW  7.12%   shrunk  6.21%
  decile  7: median revenue $   15.8bn   RW  7.58%   shrunk  6.42%
  decile  8: median revenue $   23.0bn   RW  6.86%   shrunk  6.17%
  decile  9: median revenue $   41.0bn   RW  6.58%   shrunk  5.47%
  decile 10: median revenue $  111.1bn   RW  6.44%   shrunk  4.44%

What this tells us

Assuming no growth misses next year’s revenue by 7.31% for the median company. Every rule that tries to beat that lands between 5.98% and 6.91%, so the entire contest is decided inside 1.33 percentage points.

Extrapolating last year’s growth is the rule most models use and the one the data supports least. Its median error improves to 6.77%, while its mean rises from 12.36% to 19.17% and its 90th percentile from 23.71% to 34.58%. Across the ten origins its average gain of 0.42 percentage points carries a t-statistic of 0.84.

The second panel explains why. Regressing next year’s growth on this year’s produces a slope of −0.010 and an r-squared of 0.000. Companies in the fastest-growing decile grew 33.40% and then 13.33%; the slowest decile shrank 16.72% and then grew 3.00%. A rank correlation of +0.229 says that ordering carries a little information; the size of a growth rate carries almost none.

Shrinkage repairs most of the damage. Halving the company’s own growth rate and replacing the other half with the cross-sectional median cuts the median error to 5.98% and wins in 8 of 10 origins, at a p-value of 0.015. The last row matters most: the peer median applied to every company alike recovers 0.81 of that 1.31 point gain on its own, so three fifths of the apparent improvement is a constant every company shares rather than anything specific to the company being forecast.

Forecastability is uneven. Consumer Staples sits at 4.49% under the random walk against 19.88% for Energy, whose revenue is a volume times a commodity price the company does not set. Shrinkage helps in eight sectors and hurts in three, and the three it hurts are Energy, Materials and Utilities, all of them commodity-linked. The largest revenue decile records 6.44% against 8.46% for the smallest.

So what?

The number to carry away is 6%. A revenue forecast for a large-cap company that lands within 6% of the outcome has matched an arithmetic rule that reads two revenue figures off an income statement and blends them with a number every company in the sample shares. Judging a research process against zero error flatters it; 5.98% is the honest bar, and a machine learning model must clear the shrunk rule, not the random walk.

For forecasts built at scale, use the shrunk form and never carry a growth rate forward at full weight; the cost of full extrapolation appears in the tail, which is where a portfolio gets hurt.

Sizing the uncertainty matters as much as the point estimate. The 90th percentile error at one year is 26.44% under the best rule, so a discounted cash flow model that varies revenue by five percent either side tests a band reality escapes one year in four. Widen it, more so for Energy and Materials.

Built with xfinlink — free financial data API for Python. pip install -U xfinlink

Built with xfinlink — free financial data API for Python. pip install -U xfinlink
← All articles