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

Principle:AI4Finance Foundation FinRobot Earnings Surprise Analysis

From Leeroopedia
Knowledge Sources
Domains Finance, Earnings_Analysis, Equity_Research
Last Updated 2026-10-18 00:00 GMT

Overview

A financial analysis method that classifies quarterly earnings results as beat, miss, or inline relative to analyst consensus, then aggregates per-quarter surprises into beat rate, average surprise magnitude, and consecutive-beat streak statistics.

Description

Earnings surprise analysis quantifies how a company's actual earnings compare to the market's expectations. It addresses the problem that a stock's reaction to earnings is driven not by absolute results but by the surprise — the gap between actual and consensus estimates. A company can beat its own guidance but miss the consensus and drop.

The method decomposes into:

  1. Per-quarter classification: Each quarter's EPS and revenue surprise percentage is classified as:
    • Beat: surprise ≥ +2% (statistically significant per Livnat & Mendenhall 2006)
    • Miss: surprise ≤ −2%
    • Inline: within ±2%
  2. Aggregate statistics:
    • Beat rate: fraction of quarters with a beat (excluding undefined surprises)
    • Average EPS/revenue surprise %: mean of defined surprises
    • Consecutive beats: current streak of beats

A critical refinement: None ≠ 0. A missing actual/estimate stays None — a fabricated $0 actual against a real estimate would print a false −100% surprise. Quarters with undefined surprises (estimate = 0) are excluded from rates and averages rather than counted as 0% inline.

Usage

Use this principle when:

  • Earnings quality analysis: identifying companies with a consistent history of beating or missing estimates
  • Equity research: the earnings chapter contextualizes forward outlook
  • Forward outlook: the pattern of beats/misses informs guidance credibility

Theoretical Basis

Surprise percentage:

Failed to parse (syntax error): {\displaystyle \text{Surprise\%} = \frac{\text{Actual} - \text{Estimate}}{|\text{Estimate}|} \times 100 }

Undefined when estimate = 0 (no baseline to surprise against).

Classification:

Direction={beatif surprise≥+2%missif surprise≤−2%inlineotherwise

The ±2% threshold follows Livnat & Mendenhall (2006), who found that ≥2% surprise is statistically significant for post-earnings drift.

Aggregate statistics:

Beat Rate=|{q:dirq=beat}||{q:surpriseq≠None}|

Pseudo-code:

# Abstract algorithm (NOT real implementation)
for quarter in earnings_history:
    eps_pct = (actual - estimate) / abs(estimate) * 100 if estimate else None
    direction = "beat" if eps_pct >= 2 else "miss" if eps_pct <= -2 else "inline"
beat_rate = count(beat) / count(defined)
avg_surprise = mean(defined surprises)
consecutive = current_streak(beat)

Related Pages

Implemented By

Page Connections

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