Leversens
← Back to algorithm

Quality score

A single composite z-score capturing three orthogonal dimensions of corporate quality, built from 13 fundamental ratios.

The formula
Q = z( Profitability + Growth + Safety )

Each pillar is itself a z-score of cross-sectional rank averages. See the stock screener on /live to explore any US ticker's pillar breakdown.

Profitability

6 ratios · 1/3 of composite weight

Six ratios capturing how efficiently a firm generates profits relative to its asset base, equity, and revenue. The QMJ paper finds the Profitability pillar carries the bulk of the long-run quality premium.

Ratio Formula
GPOA Gross Profit / Total Assets
ROE Net Income / Shareholders' Equity
ROA Net Income / Total Assets
CFOA Operating Cash Flow / Assets
GMAR Gross Profit / Revenue
ACC (inverted) − (Net Income − Operating Cash Flow) / Assets

Why each ratio matters

GPOA Novy-Marx (2013)

The 'champion' profitability metric identified by Novy-Marx. Gross profit is the cleanest line in the income statement — it sits closest to operations and is the least manipulable through accounting choices (no D&A, no SG&A capitalization tricks). Dividing by assets normalizes for firm size. High-GPOA firms have historically outperformed by 3-4% per year on average.

ROE DuPont decomposition

The classic measure of how much profit a firm generates per dollar of equity. High ROE = the firm rewards its shareholders. Caveat: ROE can be artificially inflated by leverage (debt → smaller equity base → larger ratio), which is why we also use ROA and combine multiple ratios.

ROA DuPont decomposition

Like ROE but measured against the full asset base — so leverage doesn't game it. Captures pure operational efficiency. A high ROA means the firm extracts profit efficiently from every dollar of assets, regardless of how those assets were financed.

CFOA QMJ paper

ROA's cash-based twin. Replaces Net Income with Operating Cash Flow, eliminating non-cash distortions like depreciation amortization schedules and accrual smoothing. The QMJ paper considers CFOA more honest than ROA because cash doesn't lie — you either generated it or you didn't.

GMAR Margin quality (QMJ)

Measures pricing power. A high gross margin signals a competitive moat: the firm can charge meaningfully more than its inputs cost. Think Apple (margin ~45%) vs a generic electronics maker (margin ~15%). Margin is sticky — it reveals durable competitive advantage rather than ephemeral demand.

ACC (inverted) Sloan (1996)

Accruals = the gap between reported earnings and actual cash. Sloan's seminal finding: firms with high accruals (NI ≫ OCF) systematically underperform — those 'paper profits' often unwind in subsequent quarters when the accruals normalize. We invert the sign so that fewer accruals = higher score.

Growth

5 ratios · 1/3 of composite weight

Five-year changes in the profitability ratios above. Captures dynamic quality — firms whose returns are improving over time, not just firms that are already profitable. Static profitability tells you who is good now; growth tells you who is getting better.

Ratio Formula
Δ GPOA GPOA(today) − GPOA(5 years ago)
Δ ROE ROE(today) − ROE(5 years ago)
Δ ROA ROA(today) − ROA(5 years ago)
Δ CFOA CFOA(today) − CFOA(5 years ago)
Δ GMAR GMAR(today) − GMAR(5 years ago)

Why each ratio matters

Δ GPOA QMJ paper

Is the firm's gross-profit yield expanding or shrinking? An improving GPOA can come from operational leverage (revenue growing faster than assets) or margin expansion — both signs of widening competitive advantage.

Δ ROE QMJ paper

Is the firm becoming more (or less) profitable per dollar of equity? Tracking ROE through cycles separates structurally improving businesses from temporary boom-bust patterns.

Δ ROA QMJ paper

Improving asset productivity. ROA expansion is harder to game than ROE expansion (no leverage trick), so it tends to be the most reliable growth signal of the three.

Δ CFOA QMJ paper

Growing cash flow yield on assets. Even more honest than ROA growth because cash flow can't be massaged by accounting choices. If both ROA and CFOA grow together, the improvement is real.

Δ GMAR QMJ paper

Margin expansion. The single most powerful growth signal: a firm that can lift its gross margin over 5 years is almost always strengthening its competitive position (more pricing power, scale economies, or product mix shift toward higher-value offerings).

Safety

8 ratios · 1/3 of composite weight

Balance-sheet strength: how robust is the firm to a recession, a credit crunch, or an unexpected operating shock? We combine three sub-pillars — Altman Z-score components, Piotroski liquidity ratios, and leverage.

Ratio Formula
Working Capital / TA (Current Assets − Current Liabilities) / Total Assets
Retained Earnings / TA Retained Earnings / Total Assets
EBIT / TA Earnings Before Interest & Tax / Total Assets
Equity / Liabilities Total Equity (book or market) / Total Liabilities
Revenue / TA Revenue / Total Assets
Current Ratio (inverted use) Current Liabilities / Current Assets
OCF / Liabilities Operating Cash Flow / Total Liabilities
Leverage (inverted) (Short-term + Long-term Debt) / Total Assets

Why each ratio matters

Working Capital / TA Altman Z-score (1968)

Liquidity cushion relative to firm size. High working capital → the firm can pay its short-term bills without selling long-term assets or borrowing. Low working capital is a leading indicator of cash-flow stress.

Retained Earnings / TA Altman Z-score (1968)

How much profit the firm has accumulated and retained over its lifetime, normalized by size. High retained earnings = the firm has historically been profitable and has built a buffer. New or unprofitable firms score low here, which is exactly what Altman wanted to flag.

EBIT / TA Altman Z-score (1968)

Operating profitability before financial structure effects. Critical for assessing whether the firm's core business is healthy enough to service its debt — independent of how the financing is arranged.

Equity / Liabilities Altman Z-score (1968)

How much skin in the game the shareholders have versus creditors. A ratio above 1 means equity exceeds debt; below 0.5 means the firm is highly levered. Both Altman and Piotroski use this as a primary solvency indicator.

Revenue / TA Altman Z-score (1968)

Asset turnover — how much revenue the firm generates per dollar of assets. High turnover = capital-light, efficient operations. Low turnover with high leverage = warning sign for distress.

Current Ratio (inverted use) Piotroski F-Score (2000)

Short-term solvency. We use it inverted (1 / current ratio) so that more liquidity scores higher. A firm with current ratio above 1.5 can typically weather a working-capital shock without external financing.

OCF / Liabilities Piotroski F-Score (2000)

Can the firm pay back ALL its debts from its cash flow? This is Piotroski's most stringent solvency test. A ratio of 0.2 means the firm could theoretically retire its entire debt stack in 5 years using just operating cash flow — a strong signal of financial robustness.

Leverage (inverted) Inverted: lower is safer

Absolute leverage. Heavily indebted firms are fragile to interest-rate shocks, credit cycles, and revenue downturns (fixed cost of debt service vs variable revenue). We invert so that less leverage = higher score.

From ratios to a single number

  1. For each ratio, compute the cross-sectional rank z-score across the universe (robust to outliers and units).
  2. For each pillar, average those z-scores, then z-score again. Missing ratios within a pillar are tolerated (e.g. financials have no Gross Profit) — the pillar uses the ratios available.
  3. Strict portfolio eligibility: a firm must have all three pillars (Profitability, Growth, Safety) computable to enter the live portfolio. The most common exclusion is Growth for firms with less than 5 years of fundamentals (recent IPOs). These names still appear in the screener with a warning ⚠ but cannot be selected.
  4. Drop firms flagged insolvent by the Altman Z-score (Z < 1.81).
  5. Take the top decile, capped at 40 positions. Weights proportional to quality.

Asness, Frazzini, & Pedersen (2019), "Quality minus Junk", Review of Accounting Studies. Novy-Marx (2013), Sloan (1996), Piotroski (2000), Altman (1968).