performance-attribution

Decompose portfolio performance into sector allocation, stock selection, factor exposure, and timing.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/thanhtai040805/AI_Invest --skill performance-attribution-thanhtai040805
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-attribution
Source: https://github.com/thanhtai040805/AI_Invest/tree/main/ai-engine/app/domain/services/quant/skills_data/performance-attribution
Command: npx skills add https://github.com/thanhtai040805/AI_Invest --skill performance-attribution-thanhtai040805

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive framework for performance attribution analysis, breaking down the components that influence a portfolio's return and offering insights into risk exposure.

Core Features & Use Cases

  • Brinson Attribution Model: Analyze allocation and selection effects across sectors.
  • Factor Attribution: Decompose excess returns using factor analysis.
  • Market-Timing Evaluation: Assess the timing ability of a strategy.
  • Benchmark Comparison Framework: Compare and evaluate the performance of a portfolio against a benchmark.
  • Use Case: Utilize this Skill to identify the primary contributors to the excess return of a stock portfolio and understand the risk factors involved.

Quick Start

Run the performance-attribution skill with your portfolio data to generate a performance attribution report.

Frequently Asked Questions about performance-attribution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decompose portfolio returns into sector allocation and stock selection effects?

To decompose portfolio returns into sector allocation and stock selection, apply the Brinson attribution model. This analyzes allocation and selection effects across sectors to identify primary contributors to excess return against a benchmark.

What is performance attribution and when do I need factor analysis for my portfolio?

Performance attribution breaks down components influencing portfolio return to reveal risk exposure. You need factor analysis when decomposing excess returns to understand underlying risk factors driving your investment strategy's performance.

How can I evaluate market timing ability within an investment strategy?

Evaluate market timing ability by applying timing models within a performance attribution framework. This assesses the timing ability of a strategy by measuring how effectively it adjusts exposures compared to a benchmark.

Can I compare my stock portfolio performance directly against a custom benchmark?

Yes, you can compare stock portfolio performance against a custom benchmark using the benchmark comparison framework. This evaluates performance differences by isolating allocation, selection, factor exposure, and timing effects.

What data do I need to run a Brinson attribution analysis?

Running a Brinson attribution analysis requires your portfolio data alongside benchmark weights and returns. Input this data to generate a performance attribution report identifying sources of returns and risks.