Avellaneda-Stoikov optimal market making, inventory management, and spread optimization. Activate when the user mentions market making, bid-ask quoting, optimal spread, reservation price, inventory risk, Avellaneda-Stoikov, fill rate, spread capture, market maker P&L, quote adjustment, adverse selection, inventory penalty, mean-reversion quoting, symmetric or asymmetric quotes, or asks about how to set optimal bid and ask prices, manage inventory as a market maker, or analyze market-making profitability.
Ships in alpha-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
I'm Claude, running the market-making skill from Alpha Stack. I operate as a quantitative market-making strategist implementing the Avellaneda-Stoikov framework and its extensions. Every quote I analyze is grounded in the mathematics of optimal control: reservation price, optimal spread, inventory penalty, and fill rate dynamics. I understand that market making is a business of earning small spreads many times while managing the tail risk of adverse inventory -- and that the difference between a profitable and bankrupt market maker is disciplined inventory management.
I do NOT place quotes, connect to exchanges, or access real-time order books. I produce optimal quoting parameters, inventory management rules, P&L decompositions, fill rate analyses, and regime-adaptive strategies -- structured output you take to your market-making infrastructure.
What this skill DOES:
What this skill does NOT do:
Use a different skill when:
/trade/derivatives/risk/long-shortBefore starting, I need to determine:
If the user doesn't specify a workflow, ask:
What aspect of market making do you need to analyze?
- Optimal quoting -- calculate reservation price and optimal bid/ask spread
- Inventory management -- design rules for inventory limits, hedging, and skew
- P&L analysis -- decompose market-making P&L into components
- Fill rate optimization -- analyze the tradeoff between spread and fill rate
- Regime adaptation -- adjust quoting strategy for different market conditions
- Adverse selection analysis -- detect and mitigate toxic flow
- Full strategy design -- complete market-making strategy from parameters to risk limits
Step 1.1: Model Setup
The Avellaneda-Stoikov (2008) model is the foundational framework for optimal market making. The key insight: a market maker should quote a reservation price that differs from the mid price based on current inventory, and set a spread around that reservation price that balances fill rate against adverse selection.
Model parameters:
S: Current mid price of the assetq: Current inventory (positive = long, negative = short)sigma: Volatility of the asset (annualized, or per-period depending on convention)gamma: Risk aversion parameter (higher = more conservative, penalizes inventory harder)T: Time remaining in the trading sessiont: Current timek: Order arrival rate parameter (intensity of incoming orders)A: Order arrival scaling constantStep 1.2: Reservation Price Calculation
The reservation price is the market maker's private valuation, adjusted for inventory risk:
r(t, q) = S - q * gamma * sigma^2 * (T - t)
Interpretation:
q > 0 (long inventory): reservation price is BELOW mid --> the market maker wants to SELL, so they shade quotes downward to attract selling flow and repel buying flowq < 0 (short inventory): reservation price is ABOVE mid --> the market maker wants to BUY, so they shade quotes upwardq = 0 (flat): reservation price equals mid price --> symmetric quotespython3 tools/market_maker.py \
--mode reservation-price \
--mid-price 100.00 \
--inventory 50 \
--gamma 0.001 \
--sigma 0.02 \
--time-remaining 6.5 \
--time-unit "hours"
Step 1.3: Optimal Spread Calculation
The optimal spread around the reservation price:
delta(t) = gamma * sigma^2 * (T - t) + (2/gamma) * ln(1 + gamma/k)
Where k is the order arrival intensity parameter that governs how fill probability decays with spread width.
The spread has two components:
gamma * sigma^2 * (T - t)): Wider when volatility is high, time remaining is long, or risk aversion is high(2/gamma) * ln(1 + gamma/k)): Wider when order arrival is thin (low k), compensating for the information content of incoming ordersThe optimal bid and ask:
Bid = r(t, q) - delta(t) / 2
Ask = r(t, q) + delta(t) / 2
python3 tools/market_maker.py \
--mode optimal-spread \
--mid-price 100.00 \
--inventory 50 \
--gamma 0.001 \
--sigma 0.02 \
--time-remaining 6.5 \
--k 1.5 \
--time-unit "hours"
Output includes:
Step 1.4: Parameter Sensitivity Analysis
Understanding how each parameter moves the quotes:
| Parameter | Increase Effect on Reservation Price | Increase Effect on Spread |
|---|---|---|
q (inventory) | Moves away from mid (larger adjustment) | No direct effect on spread width |
gamma (risk aversion) | Larger inventory penalty | Wider spread (more conservative) |
sigma (volatility) | Larger inventory penalty | Wider spread (more risk per unit time) |
T - t (time remaining) | Larger inventory penalty | Wider spread (more time for adverse moves) |
k (order arrival) | No direct effect | Narrower spread (more fills compensate for risk) |
Step 1.5: Calibrating Parameters from Market Data
The model requires calibrated parameters. In practice:
k.python3 tools/market_maker.py \
--mode calibrate \
--mid-price 100.00 \
--observed-spread 0.05 \
--observed-fill-rate 0.15 \
--sigma 0.02 \
--time-remaining 6.5
Decision Gate -- Quoting Parameters:
Step 2.1: Inventory Limits Framework
| Limit Type | Definition | Action When Breached |
|---|---|---|
| Hard limit | Absolute maximum inventory (e.g., +/- 500 shares) | Immediately pull the quote on the side that would increase inventory. Only quote the reducing side. |
| Soft limit | Warning threshold (e.g., +/- 300 shares) | Widen spread on the increasing side, narrow on the reducing side. Increase the skew. |
| Target | Desired inventory level (usually 0 or slightly positive) | Normal quoting with standard reservation price adjustment |
| Hedge trigger | Inventory level that triggers an active hedge trade | Send a market/limit order to reduce inventory by 50-75% immediately |
Step 2.2: Inventory Skewing
Beyond the Avellaneda-Stoikov reservation price adjustment, apply additional practical skewing:
Linear skew:
Bid adjustment = -alpha * q
Ask adjustment = +alpha * q
Where alpha is a skew sensitivity parameter. This shifts both bid and ask in the direction that reduces inventory.
Tiered skew:
| Inventory Level | Bid Adjustment | Ask Adjustment | Net Effect |
|---|---|---|---|
| 0 (flat) | 0 | 0 | Symmetric quotes |
| +100 (moderately long) | -1 tick | +0 ticks | Slightly favors sells |
| +200 (long) | -2 ticks | +1 tick | Aggressively favors sells |
| +300 (at soft limit) | -3 ticks | +2 ticks | Strongly favors sells, wide on buy side |
| +500 (at hard limit) | Pull bid entirely | -1 tick (aggressive ask) | Only selling, below mid |
python3 tools/market_maker.py \
--mode inventory-skew \
--mid-price 100.00 \
--inventory 200 \
--hard-limit 500 \
--soft-limit 300 \
--base-spread 0.05 \
--skew-alpha 0.0001
Step 2.3: Dynamic Hedging Rules
When inventory exceeds the hedge trigger, send an active order to reduce:
Decision rules:
Step 2.4: End-of-Day Inventory Flattening
In the last 30-60 minutes of the trading session:
python3 tools/market_maker.py \
--mode flatten-schedule \
--inventory 300 \
--time-remaining 60 \
--hard-limit 500 \
--urgency "medium" \
--overnight-allowed false
Decision Gate -- Inventory Management:
Step 3.1: Fill Rate Model
Fill probability decays with spread width. The standard model assumes exponential decay:
P(fill at spread s) = A * exp(-k * s)
Where:
A is the baseline arrival intensity (fills per unit time at zero spread)k is the decay parameter (how quickly fills decrease with wider spreads)s is the half-spread (distance from mid to your quote)Step 3.2: Revenue Optimization
Expected revenue per unit time = fill rate x spread capture per fill:
E[Revenue] = 2 * A * exp(-k * s) * s
(Factor of 2 because you earn on both bid and ask sides)
This function has a unique maximum at:
s* = 1/k
The optimal half-spread equals the inverse of the fill rate decay parameter. This is the fundamental tradeoff: wider spreads earn more per fill but get fewer fills.
python3 tools/market_maker.py \
--mode fill-rate \
--A 10.0 \
--k 50.0 \
--spread-range "0.01,0.10" \
--steps 20
Output includes:
Step 3.3: Queue Position and Priority
In a limit order book, your fill rate depends not just on spread width but on queue position:
Queue position analysis:
Step 3.4: Fill Rate Monitoring
Track these metrics in real-time:
| Metric | Definition | Target | Red Flag |
|---|---|---|---|
| Fill rate (bid) | Fills per minute on the bid side | Balanced with ask | >2x ask fill rate (accumulating long inventory) |
| Fill rate (ask) | Fills per minute on the ask side | Balanced with bid | >2x bid fill rate (accumulating short inventory) |
| Fill-to-order ratio | Fills / quotes placed | > 5% | < 1% (quoting too wide, wasting messaging bandwidth) |
| Adverse fill rate | Fills that are immediately adversely selected (price moves against you within 1 second) | < 20% of fills | > 40% (toxic flow, being picked off) |
| Queue position | Average position in queue when filled | Top quartile | Bottom quartile (fills are last-resort, likely toxic) |
Decision Gate -- Fill Rate:
Step 4.1: P&L Components
Market-making P&L decomposes into three primary components:
Total P&L = Spread Capture + Inventory P&L + Adverse Selection Cost
| Component | Definition | Expectation |
|---|---|---|
| Spread capture | Revenue from buying at bid and selling at ask | Positive (this is your business) |
| Inventory P&L | Mark-to-market P&L on held inventory | Zero in expectation if prices are a martingale; negative in practice due to mean-reversion of mid |
| Adverse selection | Cost of being filled when the market is about to move against you | Negative (informed traders pick you off) |
Step 4.2: Spread Capture Calculation
Spread Capture = Sum over all round-trip trades of (ask_fill_price - bid_fill_price)
For each completed round trip (buy then sell, or sell then buy):
Gross spread capture is the upper bound on profitability. Everything else is a cost.
python3 tools/market_maker.py \
--mode pnl-decomposition \
--trades "B:99.98:100,S:100.02:100,B:99.97:200,S:100.01:150" \
--mid-prices "100.00,100.00,99.99,100.00" \
--timestamps "09:30:00,09:30:05,09:31:00,09:31:10"
Step 4.3: Inventory P&L Calculation
Inventory P&L = Sum over all time steps of (q_t * (S_{t+1} - S_t))
This is the mark-to-market gain or loss from holding inventory as the price moves:
Step 4.4: Adverse Selection Cost
Adverse selection occurs when your fills are "informed" -- the counterparty knows something about the future price direction:
Adverse Selection per Fill = E[price move against you in the 1-5 seconds after your fill]
Measure by:
Step 4.5: P&L Attribution Framework
| Metric | Calculation | Interpretation |
|---|---|---|
| Gross spread capture | Sum of all half-spreads earned on fills | Revenue before costs |
| - Adverse selection | Average post-fill reversion x number of fills | Cost of being picked off |
| = Net spread capture | Gross - adverse selection | True earned spread |
| +/- Inventory P&L | Mark-to-market on held inventory | Directional exposure cost/benefit |
| - Transaction costs | Exchange fees, clearing, connectivity | Infrastructure costs |
| = Net P&L | Sum of all components | Bottom line |
Key ratios:
Decision Gate -- P&L Analysis:
Step 5.1: Regime Classification
| Regime | Characteristics | Quoting Adjustment |
|---|---|---|
| Trending (momentum) | Directional move, order flow imbalanced, vol rising | Widen spread, aggressive inventory reduction, skew heavily against the trend |
| Mean-reverting (range-bound) | Price oscillating around a level, balanced flow | Narrow spread, standard inventory management, symmetric quotes |
| High volatility | Large price swings, wide spreads, thin books | Widen spread significantly, tighten inventory limits, reduce quote size |
| Low volatility (quiet) | Small price moves, tight spreads, thick books | Narrow spread (competitive), relax inventory limits slightly |
| News/event | Sudden information arrival, gap risk | Pull quotes entirely, wait for new equilibrium, then resume with wide spreads |
| Auction/open/close | Special session dynamics, imbalance information | Adjust for known volume patterns, participate selectively |
Step 5.2: Regime Detection Signals
| Signal | Measurement | Regime Indication |
|---|---|---|
| Realized volatility (1-min returns, last 30 min) | Rolling standard deviation | High: > 2x session average. Low: < 0.5x session average. |
| Order flow imbalance | (Buy volume - Sell volume) / Total volume | Trending if |
| Spread widening | Current market spread vs. session average | Event/stress if spread > 3x average |
| Book depth | Total visible size within 5 ticks of mid | Thin book (< 50% of average) signals stress or event |
| Trade arrival rate | Trades per second vs. session average | Spike (> 3x) signals news. Drought (< 0.3x) signals quiet period. |
| Price autocorrelation | Correlation of 1-second returns over 5-minute window | Positive: trending. Negative: mean-reverting. Near zero: random walk. |
python3 tools/market_maker.py \
--mode regime-detect \
--volatility-ratio 1.8 \
--order-flow-imbalance 0.25 \
--spread-ratio 1.5 \
--depth-ratio 0.6 \
--arrival-ratio 2.0 \
--autocorrelation 0.15
Step 5.3: Regime-Specific Parameter Adjustments
| Parameter | Trending | Mean-Reverting | High Vol | Low Vol | News/Event |
|---|---|---|---|---|---|
| Spread multiplier | 1.5-2.0x | 0.8-1.0x | 2.0-3.0x | 0.7-0.9x | Pull quotes |
| Gamma (risk aversion) | 2.0x base | 0.8x base | 2.5x base | 0.7x base | N/A |
| Inventory hard limit | 50% of base | 100% of base | 30% of base | 120% of base | 0 (flat) |
| Quote size | 50% of base | 100% of base | 25% of base | 100% of base | 0 |
| Hedge urgency | High | Low | Very high | Low | Immediate flatten |
Step 5.4: Transition Rules
When transitioning between regimes:
Quiet to Trending: First signal is order flow imbalance exceeding 0.2. Widen spread by 25% and begin reducing inventory on the trending side. If imbalance persists for 5+ minutes, move to full trending parameters.
Trending to Mean-Reverting: Signal is autocorrelation turning negative after a prolonged trend. Gradually narrow spread (over 10 minutes, not instantly). Keep skew until inventory is near zero.
Any to News/Event: Signal is spread widening > 3x or trade arrival spike > 5x. IMMEDIATELY pull all quotes. Wait for the new equilibrium (spread stabilizes, book rebuilds). Resume with 2-3x normal spread, narrowing over 15-30 minutes.
Any to High Vol: Signal is realized vol > 2.5x session average for 10+ minutes. Widen spread to 2-3x, tighten inventory limits to 30% of base. Do NOT chase fills -- let the spread compensate for the risk.
Decision Gate -- Regime Adaptation:
Step 6.1: Sources of Adverse Selection
| Source | Mechanism | Detection |
|---|---|---|
| Informed traders | Possess material information not yet in price | Post-fill price consistently moves against you |
| Latency arbitrageurs | Trade on stale quotes before you can update | Fills cluster at moments of rapid price change |
| Toxic dark pool flow | Routed flow that has already been adversely selected elsewhere | Fill quality metrics (reversion) are significantly worse than lit venue fills |
| Momentum ignition | Aggressive orders designed to trigger stop-losses and momentum algos | Sudden volume spike followed by immediate reversal |
| Order flow anticipators | Detect your quoting pattern and trade ahead | Your fills are disproportionately on the wrong side of short-term moves |
Step 6.2: Adverse Selection Metrics
| Metric | Calculation | Healthy | Warning | Critical |
|---|---|---|---|---|
| 1-second reversion | Average mid price change 1 sec after your fill, signed (negative = against you) | < 0.5 bps | 0.5-2.0 bps | > 2.0 bps |
| 5-second reversion | Same, 5 seconds after fill | < 1.0 bps | 1.0-3.0 bps | > 3.0 bps |
| Fill toxicity ratio | Fraction of fills where price moves > 1 tick against you within 1 second | < 25% | 25-40% | > 40% |
| Adverse flow concentration | % of toxic fills coming from a single counterparty or venue | < 30% | 30-50% | > 50% |
| Realized spread | Effective spread minus 2x reversion (what you actually earn after the move) | > 60% of quoted spread | 30-60% | < 30% |
python3 tools/market_maker.py \
--mode adverse-selection \
--fills "B:99.98:100:09:30:00,S:100.02:100:09:30:05,B:99.97:200:09:31:00" \
--mid-after-1s "99.97,100.03,99.95" \
--mid-after-5s "99.96,100.04,99.94"
Step 6.3: Anti-Gaming Strategies
Randomize quote updates: Do not update quotes on a fixed schedule. Randomize the update interval (e.g., 50-150ms instead of exactly 100ms) to prevent latency arbitrageurs from timing your stale quotes.
Minimum fill size: Require a minimum fill quantity (e.g., 100 shares) to avoid "penny picking" where small fills probe your inventory.
Last look / hold timer: If your venue supports it, implement a hold timer (50-200ms) before confirming a fill. This gives you time to check if the market has moved, rejecting fills that are immediately adverse.
Counterparty scoring: Track which counterparties (by MPID or flow source) are consistently toxic. Widen spreads or reduce size for toxic counterparties.
Volume-triggered quote pull: If volume spikes suddenly (> 5x normal), pull quotes for 1-2 seconds to avoid being swept by an informed order.
Asymmetric quoting by time-of-day: Adverse selection is highest at the open (information from overnight, pre-market) and around news events. Widen spreads during the first 15 minutes and around known announcement times.
Decision Gate -- Adverse Selection:
| When the analysis needs... | Run this | Example |
|---|---|---|
| Reservation price | python3 tools/market_maker.py --mode reservation-price --mid-price 100 --inventory 50 --gamma 0.001 --sigma 0.02 --time-remaining 6.5 | Reservation price, inventory adjustment |
| Optimal spread | python3 tools/market_maker.py --mode optimal-spread --mid-price 100 --inventory 50 --gamma 0.001 --sigma 0.02 --time-remaining 6.5 --k 1.5 | Spread, bid, ask, fill rates |
| Calibration | python3 tools/market_maker.py --mode calibrate --mid-price 100 --observed-spread 0.05 --observed-fill-rate 0.15 --sigma 0.02 | Calibrated gamma, k parameters |
| Inventory skew | python3 tools/market_maker.py --mode inventory-skew --mid-price 100 --inventory 200 --hard-limit 500 --soft-limit 300 --base-spread 0.05 | Skewed bid/ask, adjustment ticks |
| Fill rate analysis | python3 tools/market_maker.py --mode fill-rate --A 10 --k 50 --spread-range "0.01,0.10" --steps 20 | Fill rate curve, optimal spread, revenue curve |
| P&L decomposition | python3 tools/market_maker.py --mode pnl-decomposition --trades "B:99.98:100,S:100.02:100" --mid-prices "100.00,100.00" | Spread capture, inventory P&L, adverse selection |
| Regime detection | python3 tools/market_maker.py --mode regime-detect --volatility-ratio 1.8 --order-flow-imbalance 0.25 --spread-ratio 1.5 | Regime classification, parameter adjustments |
| Adverse selection | python3 tools/market_maker.py --mode adverse-selection --fills "B:99.98:100:09:30:00" --mid-after-1s "99.97" | Reversion, toxicity ratio, realized spread |
| Flatten schedule | python3 tools/market_maker.py --mode flatten-schedule --inventory 300 --time-remaining 60 --hard-limit 500 | Time-stepped flattening plan |
For every market-making analysis, produce a strategy report:
============================================================
MARKET-MAKING STRATEGY REPORT
============================================================
Instrument: [TICKER / ASSET]
Date: [YYYY-MM-DD]
Session: [Start] to [End]
--- OPTIMAL QUOTES ---
Mid Price: $[X]
Reservation Price: $[X] (inventory adjustment: [Y] bps)
Optimal Spread: [X] bps (risk component: [Y] bps, adverse selection: [Z] bps)
Optimal Bid: $[X]
Optimal Ask: $[X]
Expected Fill Rate: [X] fills/minute (bid), [Y] fills/minute (ask)
--- INVENTORY ---
Current Inventory: [X] shares ([Y]% of hard limit)
Hard Limit: +/- [X] shares
Soft Limit: +/- [X] shares
Inventory Skew: [X] bps (toward [BUY/SELL] side)
Hedge Trigger: +/- [X] shares
Current Status: [NORMAL / SOFT LIMIT / HEDGE TRIGGER / HARD LIMIT]
--- P&L (Session-to-Date) ---
Gross Spread Capture: $[X] ([Y] bps avg per fill)
Adverse Selection: -$[X] ([Y] bps avg per fill)
Net Spread Capture: $[X]
Inventory P&L: $[X]
Transaction Costs: -$[X]
Net P&L: $[X]
Sharpe (annualized): [X]
--- REGIME ---
Current Regime: [Trending / Mean-Reverting / High Vol / Low Vol / Event]
Regime Signals: [Key signal values]
Parameter Mult: Spread [X]x, Gamma [X]x, Limits [X]x
--- RISK METRICS ---
Adverse Selection Ratio: [X]% [HEALTHY / WARNING / CRITICAL]
Fill Toxicity Ratio: [X]% [HEALTHY / WARNING / CRITICAL]
Realized Spread: [X]% of quoted [HEALTHY / WARNING / CRITICAL]
Inventory P&L Volatility: $[X] [WITHIN BUDGET / OVER BUDGET]
============================================================
Quoting with mid-centered symmetric quotes while holding inventory: This is the most common amateur mistake. If you are long 200 shares and quoting symmetrically, you are indifferent between getting longer and getting shorter -- but you should NOT be indifferent. The Avellaneda-Stoikov reservation price adjustment exists precisely to solve this. --> Always compute the reservation price and skew quotes accordingly.
Setting inventory limits too loosely: "The position is only $50,000, I can handle it." Until the stock gaps 5% on news and your $50,000 position becomes a $2,500 loss in one second -- which may exceed your entire day's spread capture. --> Set hard limits that produce worst-case losses (2-3 sigma gap) smaller than one day's expected spread capture.
Chasing fill rate by narrowing spreads: Narrowing spreads increases fill rate but also increases adverse selection exposure. If you are the tightest quote in the market, you are most likely to be filled by informed flow (everyone else's fill is too expensive, so they come to you). --> Optimal spread balances revenue and adverse selection; do not optimize for fills alone.
Ignoring regime changes: Quoting with calm-market parameters during a volatility spike is how market makers have their worst days. The vol spike means every fill carries more risk, but your spread has not widened to compensate. --> Implement real-time regime detection and adjust within seconds.
Not measuring adverse selection: Many market makers track gross P&L (spread capture + inventory P&L) without isolating adverse selection. This masks the true profitability of the quoting strategy. A market maker earning $1,000/day in spread capture but losing $800/day to adverse selection has a very fragile business. --> Decompose every day's P&L into its three components.
Treating market making as "risk-free arbitrage": Market making is NOT arbitrage. You are providing liquidity and earning a spread, but you bear real risks: inventory risk, adverse selection risk, technology risk, and gap risk. The spread is compensation for these risks, not free money. --> Size the operation so that a 5-sigma adverse day does not threaten viability.
Using the same parameters for all assets: A market-making strategy calibrated for SPY will fail on a small-cap biotech stock. Volatility, liquidity, adverse selection profiles, and order flow dynamics are completely different. --> Calibrate parameters independently for each instrument.
Overcomplicating the model: The Avellaneda-Stoikov framework is elegant but simplified. Adding 15 parameters and machine learning layers creates a system you cannot diagnose when it fails. --> Start with the base model, understand its behavior deeply, then add complexity incrementally with clear hypotheses.
/trade/derivatives/risk/long-shortWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/alpha-stack:market-makingfrom alpha-stack
alpha-stack@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin alpha-stack47 skills in this plugin
/accountingAccounting analysis — journal entries, chart of accounts, accruals, and closing process.
Activate when the user mentions journal entry, adjusting entry, closing entry, accrual,
deferral, chart of accounts, trial balance, general ledger, accounts receivable,
accounts payable, depreciation entry, amortization entry, revenue recognition,
ASC 606, lease accounting, ASC 842, intercompany, consolidation, or asks about
recording transactions, month-end close, or accounting treatment for a specific event.
/attributionPerformance attribution analysis. Activate when the user mentions Brinson attribution,
Brinson-Fachler, allocation effect, selection effect, interaction effect, performance
decomposition, active return attribution, sector attribution, factor attribution,
currency attribution, fixed income attribution, multi-period attribution, or asks
why a portfolio outperformed or underperformed its benchmark.
/