BLOG

Behind the numbers.

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

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 Track S&P 500 Additions and Removals Over Time in 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 the Nasdaq 100 Have Better Growth Quality Than the Dow? Index Constituent Analysis in Python

What's the question?

The Nasdaq 100 is usually described as a growth index, while the Dow Jones Industrial Average is often treated as a blue-chip index. Those labels are useful, but they are imprecise. Growth can be low quality if it consumes cash. Blue-chip stability can still include weak cash conversion.

The question is whether current Nasdaq 100 constituents actually have stronger growth quality than current Dow constituents. Growth quality means revenue growth combined with high gross margin, positive free-cash-flow margin, and reasonable valuation context.

The approach

The test compares current Nasdaq 100 and Dow constituents. Built from SEC EDGAR public filings and market data, it combines index membership with latest trailing-twelve-month fundamentals and valuation metrics.

  1. Pull current Nasdaq 100 and Dow constituents
  2. Label each company as Nasdaq 100 only, Dow only, or both indexes
  3. Pull latest revenue growth, gross margin, free-cash-flow margin, P/E ratio, and market capitalization
  4. Apply sanity filters for complete and plausible observations
  5. Compare cohort medians and list the fastest revenue growers

Medians are used because index constituents can include extreme individual companies. A median describes the typical constituent more reliably than an average.

Code

import xfinlink as xfl
import pandas as pd

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

ndx = xfl.index("ndx100", limit=150)
dow = xfl.index("djia", limit=50)
ndx_ids = set(ndx[ndx["removed_date"].isna()]["entity_id"])
dow_ids = set(dow[dow["removed_date"].isna()]["entity_id"])
tickers = sorted(set(ndx["ticker"].dropna()) | set(dow["ticker"].dropna()))

fields = ["market_cap", "revenue_growth", "gross_margin", "fcf_margin", "pe_ratio"]
metrics = xfl.metrics(tickers, period_type="ttm", fields=fields)
latest = metrics.sort_values("period_end").groupby("entity_id").tail(1).dropna()

def cohort(entity_id):
    if entity_id in ndx_ids and entity_id in dow_ids:
        return "Both indexes"
    if entity_id in ndx_ids:
        return "Nasdaq 100 only"
    return "Dow only"

latest["cohort"] = latest["entity_id"].map(cohort)
summary = latest.groupby("cohort")[["revenue_growth", "gross_margin", "fcf_margin", "pe_ratio"]].median()
print(summary)

Full script with formatting and visualisation: nasdaq100-dow-growth-quality-python.py

Output

Nasdaq 100 versus Dow revenue growth and free-cash-flow margin scatter plot
=== Nasdaq 100 vs Dow Growth Quality ===
Current Nasdaq 100 constituents after cleaning: 99
Current Dow constituents after cleaning: 28
Combined complete-data universe: 82 companies
Metric period range: 2026-02-26 to 2026-05-10

Cohort medians:
Both indexes     n=  7  rev_growth=   9.2%  gross_margin=  50.6%  FCF_margin=  19.4%  positive_FCF=  85.7%  PE= 34.3
Dow only         n= 14  rev_growth=   6.5%  gross_margin=  54.3%  FCF_margin=  11.0%  positive_FCF=  85.7%  PE= 28.8
Nasdaq 100 only  n= 61  rev_growth=  13.4%  gross_margin=  58.4%  FCF_margin=  21.9%  positive_FCF=  95.1%  PE= 33.7

Fastest revenue growers in the combined index set:
MU    Nasdaq 100 only  rev_growth=  85.5%  FCF_margin=  17.7%  PE= 46.4
SNDK  Nasdaq 100 only  rev_growth=  82.8%  FCF_margin=  33.8%  PE= 68.8
ALNY  Nasdaq 100 only  rev_growth=  82.6%  FCF_margin=  15.0%  PE= 66.1
NVDA  Nasdaq 100 only  rev_growth=  70.7%  FCF_margin=  47.0%  PE= 31.4
PLTR  Nasdaq 100 only  rev_growth=  67.7%  FCF_margin=  51.5%  PE=143.8
MELI  Nasdaq 100 only  rev_growth=  36.8%  FCF_margin=  53.2%  PE= 42.0
AMD   Nasdaq 100 only  rev_growth=  35.0%  FCF_margin=  22.9%  PE=167.7
AXON  Nasdaq 100 only  rev_growth=  34.0%  FCF_margin=   0.7%  PE=178.1
BA    Dow only         rev_growth=  32.7%  FCF_margin=  -1.1%  PE= 86.6
WDC   Nasdaq 100 only  rev_growth=  32.0%  FCF_margin=  24.7%  PE= 33.7

What this tells us

The Nasdaq 100-only cohort has stronger growth quality by the median measures. Its median revenue growth is 13.4%, compared with 6.5% for Dow-only companies. Its median free-cash-flow margin is also higher at 21.9% versus 11.0%. Positive free-cash-flow margin is more common in the Nasdaq 100-only group, at 95.1% versus 85.7% for Dow-only names.

The valuation difference is smaller than the growth difference. The Nasdaq 100-only median P/E ratio is 33.7, compared with 28.8 for Dow-only companies. That premium exists, but it is not extreme relative to the gap in revenue growth and free-cash-flow margin.

The fastest growers are mostly Nasdaq 100-only constituents. BA is the lone Dow-only company in the top 10, and it has a negative free-cash-flow margin in the latest trailing-twelve-month period.

So what?

The Nasdaq 100 label is not just shorthand for higher expected growth. In this sample, it also corresponds to stronger cash-flow quality. That matters because growth with positive free cash flow is less dependent on external financing and less vulnerable to capital-market tightening.

For allocation work, the practical conclusion is to separate index labels from index contents. The Nasdaq 100 is more expensive than the Dow on median P/E, but it also has meaningfully better growth and cash conversion. A rotation decision should weigh both sides of that tradeoff rather than treating one index as simply aggressive and the other as simply defensive.

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

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