BLOG

Behind the numbers.

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

Do High-Idiosyncratic-Volatility Stocks Underperform? Residual Volatility Sorts in Python
Does Foreign Revenue Make a Stock Dollar-Sensitive? Firm-Level FX Beta in Python
Does Company Size Slow Revenue Growth? Gibrat's Law Test in Python
How to Get Stock Data Into Excel With Python
Does a Large Goodwill Balance Predict a Writedown? Impairment Risk Screening in Python
Does Revenue Concentration Explain Earnings Volatility? Segment Herfindahl Analysis in Python
Is Residual Momentum Better Than Raw Momentum? Market-Adjusted Decile Sorts in Python
Financial Data API Rate Limits: How Much Do You Need?
Does Index-Fund Ownership Make a Stock Move With the Market? 13F Ownership and Beta in Python
What Is Look-Ahead Bias in Backtesting?
How Much Drawdown Does Month-End Data Hide? Sampling Frequency and Maximum Drawdown in Python
Do Companies Pay the Tax They Report? Cash vs Book Tax Rates in Python
Does a High Dividend Payout Ratio Slow Earnings Growth? S&P 500 Cross-Section in Python
Web Scraping vs a Financial Data API: What Breaks
Did Earnings or the Multiple Drive the Last Decade of Returns? Return Decomposition in Python
What Does a Trailing Stop Cost? Stop-Loss Backtest in Python
Why Do Stock Prices Differ Between Data Sources?
Does an Inventory Build Predict a Margin Squeeze? Cross-Sectional Test in Python
How Much Revenue Does a Dollar of Acquisitions Buy? Growth Decomposition in Python
Do Companies Buy Back Stock at Good Prices? Dollar-Weighted Analysis in Python
What Data You Need for Comparable Company Analysis
How Much Does a Stock Fall on Its Ex-Dividend Date? Event Study in Python
How Seasonal Is Quarterly Revenue? Fiscal Quarter Share Analysis in Python
Do Reported Financials Follow Benford's Law? First-Digit Analysis in Python
What Is Book Value? Why Price-to-Book Stopped Working
How Far Apart Do S&P 500 Stocks Move? Cross-Sectional Return Dispersion in Python
Fama-French Factor Data: Download or Build Your Own?
How Much Does the Rebalance Date Change a Backtest? 21 Rebalance Days in Python
Does Trading Volume Predict Tomorrow's Volatility? Out-of-Sample Test in Python
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

Does Company Size Slow Revenue Growth? Gibrat's Law Test in Python

What’s the question?

Equity research applies a size discount by reflex. A company selling $200 billion a year is assumed to grow more slowly than one selling $2 billion, because the base is larger and the arithmetic of large numbers has to bite somewhere. It is built into most valuation models, which taper growth toward the economy’s rate as the company scales.

Gibrat’s law says the opposite. Robert Gibrat proposed in 1931 that a firm’s growth rate is independent of its size: growth arrives as a proportional shock, and a large firm draws its percentage growth from the same distribution as a small one. Under that law the size discount is a habit rather than a finding.

Filings settle it: fix a set of companies at a past date, measure the next five years of revenue, and see whether the starting size predicted anything.

The approach

Size is measured by revenue, not market capitalisation. Gibrat’s law concerns the size of the thing that grows, and a market capitalisation embeds the market’s own growth forecast, which would fold the answer into the question.

  1. Take the S&P 500 roster as it stood on 31 December 2014 and again on 31 December 2019, keyed on entity identifiers rather than symbols, so a company that later changed ticker stays one company.
  2. Pull annual and quarterly revenue for every member. The base year is the fiscal year ending in the roster year, the end year five calendar years later.
  3. Drop Financials, since a bank’s or an insurer’s revenue is assembled from interest and premium lines rather than sales.
  4. Require each anchor year’s annual revenue to agree with that year’s four quarterly filings within a factor of roughly 1.5. A year that fails describes a different business, usually after a divestiture restatement.
  5. Annualise growth over the exact days between period ends, then regress the five-year compound growth rate on the base-10 logarithm of base revenue, alone and with sector fixed effects.

A company acquired or taken private mid-window carries no filing at the far end and no growth rate; 346 companies from the 2014 roster and 387 from the 2019 roster complete a pair. Two windows guard against reading one macro episode as a law.

Code

import numpy as np
import pandas as pd
import statsmodels.api as sm
import xfinlink as xfl
from scipy.stats import spearmanr

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

WINDOWS = [("2014-12-31", 2014, 2019), ("2019-12-31", 2019, 2024)]


def panel(as_of, y0, y1):
    roster = xfl.index("sp500", as_of=as_of).drop_duplicates("entity_id")
    ids = sorted(int(e) for e in roster["entity_id"].dropna())
    df = pd.concat(
        [xfl.fundamentals(entity_id=ids[i:i + 40], period_type="all",
                          start=f"{y0 - 1}-06-01", end=f"{y1 + 1}-06-30",
                          fields=["revenue"])
         for i in range(0, len(ids), 40)], ignore_index=True)

    ann = df[df["period_type"] == "annual"].copy()
    ann = ann.sort_values(["entity_id", "fiscal_year", "period_end"])
    ann = ann.drop_duplicates(["entity_id", "fiscal_year"], keep="last")
    ann["year"] = ann["period_end"].dt.year
    ann = ann.drop_duplicates(["entity_id", "year"], keep="last")
    ann = ann[ann["revenue"] > 0]

    qtr = df[(df["period_type"] == "quarterly") & df["revenue"].notna()]
    qsum = qtr.groupby(["entity_id", "fiscal_year"])["revenue"].agg(["sum", "size"])
    qsum = qsum[qsum["size"] == 4]["sum"].rename("qsum")
    ann = ann.merge(qsum, left_on=["entity_id", "fiscal_year"], right_index=True, how="left")
    ann = ann[ann["qsum"].isna()
              | ann["qsum"].between(0.67 * ann["revenue"], 1.5 * ann["revenue"])]

    m = (ann[ann["year"] == y0].set_index("entity_id")
         .join(ann[ann["year"] == y1].set_index("entity_id"),
               lsuffix="_b", rsuffix="_f", how="inner"))
    m = m[m["gics_sector_b"] != "Financials"]
    m["years"] = (m["period_end_f"] - m["period_end_b"]).dt.days / 365.25
    m = m[m["years"].between(4.0, 6.0)]
    m["cagr"] = (m["revenue_f"] / m["revenue_b"]) ** (1 / m["years"]) - 1
    m["log_size"] = np.log10(m["revenue_b"] * 1e6)
    m["quintile"] = pd.qcut(m["log_size"], 5, labels=[1, 2, 3, 4, 5])
    return len(ids), m


for as_of, y0, y1 in WINDOWS:
    n_roster, m = panel(as_of, y0, y1)
    plain = sm.OLS(m["cagr"], sm.add_constant(m[["log_size"]])).fit()
    dummies = pd.get_dummies(m["gics_sector_b"], drop_first=True, dtype=float)
    sector = sm.OLS(m["cagr"],
                    sm.add_constant(pd.concat([m[["log_size"]], dummies], axis=1))).fit()

    print(f"{y0}-{y1}: roster {n_roster}, in sample {len(m)}, "
          f"median revenue ${m['revenue_b'].median() / 1000:.1f}bn, "
          f"median CAGR {m['cagr'].median() * 100:.1f}%")
    for label, r in (("size only", plain), ("+ sector", sector)):
        print(f"  {label:<10} slope {r.params['log_size'] * 100:+.2f}pp per 10x  "
              f"t {r.tvalues['log_size']:.2f}  p {r.pvalues['log_size']:.4f}  "
              f"R2 {r.rsquared:.3f}")
    rho, p = spearmanr(m["log_size"], m["cagr"])
    within = m.groupby("gics_sector_b", observed=True).apply(
        lambda g: spearmanr(g["log_size"], g["cagr"])[0] if len(g) > 9 else np.nan,
        include_groups=False)
    print(f"  spearman {rho:+.3f} (p={p:.4f})   "
          f"median within sector {within.median():+.3f}")
    print(m.groupby("quintile", observed=True).agg(
        n=("cagr", "size"), median_revenue=("revenue_b", "median"),
        mean_cagr=("cagr", "mean"), sd_cagr=("cagr", "std")).round(4))

Full script with formatting and visualisation: does-company-size-slow-revenue-growth-python.py

Output

Five-year forward revenue growth against starting revenue for 387 S&P 500 companies, and mean growth by size quintile in two windows
==========================================================================
DOES COMPANY SIZE SLOW REVENUE GROWTH?
Point-in-time S&P 500 rosters ex Financials, five-year forward revenue CAGR
==========================================================================
window            roster   in sample   median revenue   median CAGR
2014 to 2019         500         346           $9.3bn          2.5%
2019 to 2024         501         387          $10.3bn          5.1%

REVENUE CAGR REGRESSED ON log10(BASE REVENUE)
window          model                   slope per 10x       t        p      R2
2014 to 2019    size only                     -2.66pp   -2.73   0.0068   0.021
2014 to 2019    + sector fixed effects        -2.98pp   -3.14   0.0018   0.215
2019 to 2024    size only                     -1.36pp   -2.12   0.0344   0.012
2019 to 2024    + sector fixed effects        -1.22pp   -1.75   0.0814   0.070

RANK CORRELATION BETWEEN SIZE AND FORWARD GROWTH (Spearman)
2014 to 2019    all companies rho -0.195 (p=0.0003)   median within sector rho -0.141
2019 to 2024    all companies rho -0.117 (p=0.0213)   median within sector rho -0.163

MEAN FORWARD REVENUE CAGR BY SIZE QUINTILE (Q1 smallest)
window                 Q1       Q2       Q3       Q4       Q5   Q1 - Q5
2014 to 2019         4.3%     4.8%     3.1%    -0.4%     2.4%      2.0pp
2019 to 2024         8.3%     5.4%     5.4%     4.2%     5.3%      3.1pp

MEDIAN BASE REVENUE BY SIZE QUINTILE, $bn
window                 Q1       Q2       Q3       Q4       Q5
2014 to 2019          2.6      5.1      9.3     17.7     64.3
2019 to 2024          2.8      5.8     10.3     19.2     66.0

SPREAD OF FIVE-YEAR CAGR WITHIN EACH SIZE QUINTILE (standard deviation, pp)
window                 Q1       Q2       Q3       Q4       Q5
2014 to 2019         10.5     11.1      9.1      7.1      8.2
2019 to 2024          7.3      6.4      7.3      5.4      5.8

What this tells us

The size drag exists, and it is small. A tenfold increase in revenue costs 2.66 percentage points of annual growth in the 2014 window and 1.36 points in the 2019 window, both clearing the 5% threshold, with rank correlations of -0.195 and -0.117. R-squared is 0.021 and 0.012, so roughly 98% of the variation sits somewhere other than size, and growth within one quintile has a standard deviation of 5.4 to 11.1 points against gaps of 2.0 and 3.1 points between the smallest and largest fifths.

Sector is the bigger effect by an order of magnitude, lifting R-squared from 0.021 to 0.215 in the 2014 window. The size slope survives that control there, at -2.98 points with a t-statistic of -3.14, but in the 2019 window it weakens to -1.22 points and a p-value of 0.0814, short of conventional significance. Within-sector rank correlations of -0.141 and -0.163 run the same direction in both windows, so the drag is not merely small companies sitting in fast-growing industries; it is too weak for one window to confirm.

The quintile means break the folk version of the claim outright. In both windows the fourth quintile grew more slowly than the fifth: -0.4% against 2.4% in 2014-2019, and 4.2% against 5.3% in 2019-2024. Companies with a median of $64 billion in revenue outgrew companies with a median of $18 billion. The pattern is a fast-growing smallest fifth, 8.3% a year in the recent window, with the other four quintiles bunched between 4.2% and 5.4%: a step at the bottom of the size range, not a slope running its length.

So what?

Discounting a large company’s growth forecast on size alone takes a 1 to 3 point effect and ignores the 5 to 11 point dispersion around it. The penalty these regressions support is one to three points of growth per order of magnitude of revenue, and no more. Anything steeper is an assumption rather than an inference from the cross-section.

For growth screening the order is sector first, company second, size a distant third. A size filter drops most of the universe to buy a shift in expected growth smaller than the spread inside any bucket it leaves behind. Size earns attention at the bottom edge of the large-cap range, where the smallest fifth compounded 3.2 points a year faster than the quintiles above it in the recent window and 1.9 points faster in the earlier one.

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