Skip to content
joellewis avatar

Performance Attribution

Decomposes portfolio returns into allocation, selection, interaction, factor, and fixed-income effects to explain outperformance.

CCM score
58 of 100
skills.sh installs
748
GitHub stars
270
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Brinson-Fachler single-period attribution plus multi-period linking with Carino, Menchero, and GRAP methods
  • Includes factor-based attribution using Fama-French, Carhart, Barra, and Axioma models with market, size, value, and momentum loadings
  • Provides fixed-income breakdown into yield, roll-down, curve, spread, and default returns, plus currency return decomposition for international holdings
  • Designed for analysts asking what drove returns relative to a benchmark, such as sector bets versus stock picking

Install

$ npx -y skills add joellewis/finance_skills --skill performance-attribution -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Performance Attribution

Core Concepts

Brinson-Fachler Attribution (Single Period)

The classic equity attribution model decomposes active return (portfolio return minus benchmark return) into three effects:

  • Allocation effect: Value added by over/underweighting sectors relative to the benchmark
    • A_i = (w_p,i - w_b,i) × (R_b,i - R_b)
    • Rewards overweighting sectors that outperform the total benchmark
  • Selection effect: Value added by picking better securities within each sector
    • S_i = w_b,i × (R_p,i - R_b,i)
    • Rewards outperforming the sector benchmark regardless of weight
  • Interaction effect: Combined effect of both overweighting and outperforming (or vice versa)
    • I_i = (w_p,i - w_b,i) × (R_p,i - R_b,i)
    • Captures the joint benefit of overweighting a sector AND selecting better securities in it
  • Total active return: R_p - R_b = Σ A_i + Σ S_i + Σ I_i

Where: w_p,i = portfolio weight in sector i, w_b,i = benchmark weight in sector i, R_p,i = portfolio return in sector i, R_b,i = benchmark return in sector i, R_b = total benchmark return.

Details

Repository
github.com/joellewis/finance_skills
Categories
Finance & Trading, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the performance-attribution skill do?

The performance-attribution skill decomposes portfolio returns into explainable components to show where value was added or lost. It covers Brinson-Fachler attribution, allocation versus selection effects, factor-based attribution, fixed-income attribution and currency attribution. It also handles multi-period linking so effects sum to the full-period active return.

Is performance-attribution a good skill for explaining why a portfolio beat or lagged its benchmark?

Yes, it is built for that question, including prompts like was it stock picking or sector bets. It splits active return into allocation, selection and interaction effects for each sector. It also covers alpha decomposition and the active return breakdown.

How do I install the performance-attribution skill?

Run npx -y skills add joellewis/finance_skills --skill performance-attribution -y in a project. Once installed, the agent can compute attribution effects from your holdings and returns. The skill is part of the Finance & Trading category on Claude Marketplaces.

Which other skills sit alongside performance-attribution in the Finance & Trading category?

Other top skills in the Finance & Trading category include wind-mcp-skill, stripe-best-practices, wind-find-finance-skill, convex-billing and create-payment-credential. Performance-attribution focuses on return decomposition rather than payments or market data. It sits in the same category as these skills.

More from joellewis/finance_skills

All 84

Similar to Performance Attribution

More Finance & Trading