Sub topic 12
Attribution: allocation, selection and interaction
Earlier chapters showed how to compute active return, the portfolio return minus the benchmark return. Active return says how far ahead or behind you were. It doesn't say why. This chapter splits one period's active return into three parts, using the Brinson-Fachler method.
This chapter assumes you can compute period returns and weighted averages. It also assumes you know what sectors and benchmark weights are. The code needs only plain Python.
What attribution answers
A portfolio manager makes two kinds of decisions relative to a benchmark:
- Allocation: how much to hold in each segment (a sector, country or asset class) compared with the benchmark weight.
- Selection: which securities to hold inside each segment, compared with the benchmark's holdings in that segment.
Attribution assigns the active return to those decisions. A third term, interaction, captures the combined effect of both decisions in the same segment.
| Effect | Question it answers | Driven by |
|---|---|---|
| Allocation | Did you overweight segments that beat the benchmark as a whole, and underweight those that lagged it? | Weight difference and segment return versus the total benchmark return |
| Selection | Within each segment, did your holdings beat the benchmark's holdings? | Benchmark weight and segment return difference |
| Interaction | Did you overweight segments where your picks also did better? | Weight difference and segment return difference together |
Notation
For each segment s in one period:
wp[s]andwb[s]are the portfolio and benchmark weights at the start of the period. Each set sums to 1.rp[s]andrb[s]are the portfolio and benchmark returns of that segment.Rpis the sum ofwp[s] * rp[s], andRbis the sum ofwb[s] * rb[s].
The formulas for each segment are:
- Allocation =
(wp - wb) * (rb[s] - Rb) - Selection =
wb * (rp[s] - rb[s]) - Interaction =
(wp - wb) * (rp[s] - rb[s])
Summing all three over all segments gives exactly Rp - Rb.
Why allocation subtracts the total benchmark return
Look at the allocation term (wp - wb) * (rb[s] - Rb). It compares the segment's benchmark return with the whole benchmark's return, not with zero. This is the Brinson-Fachler form. The reason is that overweighting a segment only helps if that segment did better than the benchmark overall.
Suppose the benchmark returned 4.5%. Overweighting a sector that returned 3% still hurts, because the money could have gone to the rest of the benchmark at a higher average return. The older Brinson-Hood-Beebower form uses (wp - wb) * rb[s] with no subtraction. It gives different allocation figures per segment, but it has the same total across segments. It can also reward an overweight in a segment that lagged the benchmark just because the segment's return was positive.
Subtracting Rb doesn't change the total. The weight differences sum to zero (both weight sets sum to 1), so the subtracted amount Rb * sum(wp - wb) is zero.
Worked example
A two-sector portfolio is compared with a 50/50 benchmark over one period.
| Sector | Portfolio weight | Benchmark weight | Portfolio return | Benchmark return |
|---|---|---|---|---|
| Tech | 60% | 50% | 8% | 6% |
| Energy | 40% | 50% | 2% | 3% |
The benchmark return is 0.5*6% + 0.5*3% = 4.5%. The portfolio return is 0.6*8% + 0.4*2% = 5.6%. Active return is 1.1 percentage points.
wp = {"tech": 0.6, "energy": 0.4} # portfolio weights
wb = {"tech": 0.5, "energy": 0.5} # benchmark weights
rp = {"tech": 0.08, "energy": 0.02} # portfolio sector returns
rb = {"tech": 0.06, "energy": 0.03} # benchmark sector returns
rb_total = sum(wb[s] * rb[s] for s in wb)
rp_total = sum(wp[s] * rp[s] for s in wp)
allocation = {s: (wp[s] - wb[s]) * (rb[s] - rb_total) for s in wp}
selection = {s: wb[s] * (rp[s] - rb[s]) for s in wp}
interaction = {s: (wp[s] - wb[s]) * (rp[s] - rb[s]) for s in wp}
explained = sum(allocation.values()) + sum(selection.values()) + sum(interaction.values())
print(round(explained, 6), round(rp_total - rb_total, 6)) # both values matchBoth printed values are 0.011. By sector, the effects are:
| Sector | Allocation | Selection | Interaction | Total |
|---|---|---|---|---|
| Tech | +0.15% | +1.00% | +0.20% | +1.35% |
| Energy | +0.15% | -0.50% | +0.10% | -0.25% |
| Total | +0.30% | +0.50% | +0.30% | +1.10% |
Read it like this:
- Allocation (+0.30%). Tech beat the whole benchmark (6% against 4.5%), and the portfolio overweighted it. Energy lagged (3% against 4.5%), and the portfolio underweighted it. Both decisions helped.
- Selection (+0.50%). Tech holdings beat the benchmark's tech holdings by 2 points. Energy holdings lagged by 1 point. The tech gain is larger, and the benchmark weights are equal, so selection is positive overall.
- Interaction (+0.30%). The portfolio held more tech, where its picks did better, and less energy, where its picks did worse. Both moves added a little.
Reading the interaction term
Interaction is often the least intuitive part. It is the product of two differences: how much you over- or underweighted, and how much your picks beat or lagged the benchmark in that segment. It is large only when both differences are large.
There are two common ways to handle it:
- Report it separately. This is the most transparent. A large interaction signals that selection and allocation decisions are linked, so crediting them separately would be misleading.
- Fold it into selection. Some providers define selection as
wp * (rp[s] - rb[s]). This is selection plus interaction. It gives two effects instead of three. The totals are the same, so check which convention a report uses before comparing two reports.
Choices that change the answer
Attribution results depend on choices made before any formula runs:
- Segmentation. The effects change with the sector scheme. If the benchmark uses one classification and your reporting uses another, selection and allocation get mixed together. Use the benchmark's own classification.
- Segment benchmark returns. Each
rb[s]must come from the benchmark's holdings in that segment, on the same total-return basis as the portfolio. - Start-of-period weights. The formulas assume weights held constant through the period. If weights drift or trades occur inside the period, the residual grows. Short periods (daily or monthly) reduce this.
- Cash. Treat cash as its own segment with its own benchmark weight, which may be zero. An unallocated cash balance shows up as a negative allocation effect when stocks rise.
- Currency. In international portfolios, currency return is often separated from local-market return. Otherwise a currency move lands in selection by accident.
Checking your numbers
Always include a reconciliation check, as the code above does. Four things commonly break it:
- Weights that don't sum to 1, often because cash or a segment is missing.
- A segment missing from the benchmark (or the portfolio) dictionary.
- Mixed return bases, such as price return in one place and total return in another.
- Returns for one segment that use different date ranges from the others.
If the total of the three effects differs from Rp - Rb, find the data problem before interpreting anything. A small difference that remains after weights drift is a residual, and you should report it as one.
Using attribution in a review
Present attribution in terms a client can act on:
- Give the total active return, then the three effect totals, in percentage points.
- Name the two or three sectors that contributed most. Large effects in one sector tell a clearer story than small effects spread across many.
- State the method (Brinson-Fachler), whether interaction is separate, and the segmentation scheme.
- Track the same effects across periods. A manager who gains from allocation in every period and loses in selection has a pattern worth discussing.
Exercise
A portfolio holds 70% in Sector A and 30% in Sector B. The benchmark holds 50% in each. Sector returns in the portfolio are A = 10% and B = 4%. Benchmark sector returns are A = 8% and B = 2%. Compute the total allocation, selection and interaction effects, and check they sum to the active return.
Show answer
Benchmark return Rb = 0.58% + 0.52% = 5%. Portfolio return Rp = 0.710% + 0.34% = 8.2%. Active return = 3.2%. Allocation: A = (0.2)(8% - 5%) = 0.6%; B = (-0.2)(2% - 5%) = 0.6%; total 1.2%. Selection: A = 0.5(10% - 8%) = 1.0%; B = 0.5(4% - 2%) = 1.0%; total 2.0%. Interaction: A = 0.22% = 0.4%; B = (-0.2)2% = -0.4%; total 0.0%. Sum = 1.2% + 2.0% + 0.0% = 3.2%, which matches the active return.
Exercise
A report shows twelve monthly allocation effects that add to 2.1%, while the portfolio beat the benchmark by 2.6% over the year. Does this mean the attribution is wrong?
Show answer
Not necessarily. Single-period effects don't compound, so adding monthly effects will not match the annual active return. The gap comes from compounding and from the missing selection and interaction effects. Use a linking method, such as Carino smoothing, to scale the monthly effects so that they sum to the annual active return. Check also that each month reconciles on its own.