Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Heuristic:AI4Finance Foundation FinRobot NM Cap Peer Exclusion

From Leeroopedia
Knowledge Sources
Domains Valuation, Comparable_Company_Analysis, Decision_Making
Last Updated 2026-10-19 00:00 GMT

Overview

Exclude hyper-growth / sliver-EBITDA peers from the peer-set median (NM caps: P/E 75×, EV/EBITDA 50×) WITHOUT dropping them from the display set, so a not-meaningful multiple never skews the median that feeds the comp display and the thesis prompt.

Description

A real, computable multiple above an NM (not-meaningful) cap carries no information about a mature target's fair value — it is a hyper-growth name (PLTR, PANW) or a sliver-EBITDA / turnaround story (INMD, ARM). If it stays in the median, one corrupt peer poisons the whole peer statistic. But dropping the peer from the set entirely hides it from the competitive landscape, which is also wrong — the peer is a real competitor; only its multiple is uninformative.

The solution is a two-tier gate: the peer stays in the set' for display and the competitive landscape, but its multiple is excluded from the median/mean`. A sample-size warning is appended so operators see the effective N rather than assuming all peers contributed. Finiteness is re-checked here (the upstream `calculate_multiples` sanity gate handles negative/zero, but `is not None` alone admits a NaN multiple that would poison the median).

NM caps (from `multiples.py`):

  • `PEER_PE_NM_CAP = 75.0` — trailing and forward P/E
  • `PEER_EV_EBITDA_NM_CAP = 50.0` — trailing EV/EBITDA
  • `PEER_PE_SANITY_MIN = 1.0` — negative/loss-making P/E excluded

Usage

Use this heuristic whenever you aggregate peer multiples into a median/mean for a comps analysis. Apply it when:

  • A peer set contains a mix of mature and hyper-growth names.
  • One or more peers have extreme multiples (P/E > 75×, EV/EBITDA > 50×).
  • You need the median to reflect the mature-target fair value while still showing the hyper-growth peer in the landscape.

The Insight (Rule of Thumb)

  • Action: In `calculate_peer_statistics`, filter each multiple list with an NM cap BEFORE computing the median/mean:
    • P/E (trailing + forward): keep only values in `[PEER_PE_SANITY_MIN, PEER_PE_NM_CAP]` = `[1.0, 75.0]`
    • EV/EBITDA: keep only finite values `<= PEER_EV_EBITDA_NM_CAP` = `50.0`
    • EV/Revenue, P/B: finiteness-only (no NM cap — these ratios are less prone to blowup)
  • Value: NM caps P/E=75×, EV/EBITDA=50×. Sanity floor P/E=1.0.
  • Trade-off: A hyper-growth peer's multiple is excluded from the median even when it is a genuine data point. This is accepted because a 157× forward P/E (ARM) says nothing about a mature target's worth.
  • Display vs median: The peer keeps its raw multiple for the peer row display; only the median contribution is dropped. Append a sample-size warning (`"P/E based on N of M peers — ... kept in the set, out of the median"`).

Reasoning

The median is the robust central tendency a comps analysis hinges on, but it is only robust if the input set is representative. A single 156× trailing P/E (AMD) or 157× forward P/E (ARM) drags the median far above any level relevant to a mature target. Excluding the peer entirely would hide a real competitor from the landscape. The two-tier gate — keep for display, exclude from median — preserves both the landscape and the median's relevance. The NM cap is calibrated above the normal growth-premium range (genuine 2–3× growth names stay in) and below the hyper-growth/turnaround zone where the multiple loses meaning.

Code Evidence

NM cap constants from `multiples.py:44,77,91`:

PEER_PE_SANITY_MIN: float = 1.0
...
PEER_PE_NM_CAP: float = 75.0
...
PEER_EV_EBITDA_NM_CAP: float = 50.0

Two-tier filter (exclude from median, keep in set) from `multiples.py:443-449`:

# Trailing EV/EBITDA median applies the NM cap ... a real, computable multiple
# above PEER_EV_EBITDA_NM_CAP is a hyper-growth / sliver-EBITDA peer (PLTR, PANW)
# that says nothing about a mature target's worth, so it must not skew the median
# that feeds the comp display and the thesis prompt. The peer stays IN the set for
# the competitive landscape; only its median contribution is NM.
ev_ebitda_vals = [
    p.ev_ebitda
    for p in result.peers
    if p.ev_ebitda is not None
    and math.isfinite(p.ev_ebitda)
    and p.ev_ebitda <= PEER_EV_EBITDA_NM_CAP
]

Sample-size warning surfacing the effective N from `multiples.py:496-501`:

if ev_ebitda_n < total:
    result.warnings.append(
        f"EV/EBITDA based on {ev_ebitda_n} of {total} peers"
        f" — {total - ev_ebitda_n} excluded (data quality, or an NM EV/EBITDA above"
        f" {PEER_EV_EBITDA_NM_CAP:.0f}x — kept in the set, out of the median)"
    )

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment