Skip to content

Performance

Brinson attribution

Brinson-Hood-Beebower and Brinson-Fachler allocation, selection and interaction effects, single-period and linked over periods with Carino's method.

Model id
performance.brinson_attribution, version 1
Domain
Performance
Evidence
standard
Cost class
instant: A closed-form calculation; a hosted run may take up to 2 seconds.

Formula

AiBHB=(wip−wib)ribA^{\mathrm{BHB}}_i = (w^p_i - w^b_i) r^b_iAiBF=(wip−wib)(rib−B)A^{\mathrm{BF}}_i = (w^p_i - w^b_i)(r^b_i - B)Si=wib(rip−rib),Ii=(wip−wib)(rip−rib)S_i = w^b_i (r^p_i - r^b_i), \quad I_i = (w^p_i - w^b_i)(r^p_i - r^b_i)kt=ln⁡(1+Rt)−ln⁡(1+Bt)Rt−Btk_t = \frac{\ln(1 + R_t) - \ln(1 + B_t)}{R_t - B_t}Elinked=∑tktkEtE^{\mathrm{linked}} = \sum_t \frac{k_t}{k} E_t

Where

AiBHBA^{\mathrm{BHB}}_i
Allocation effect of sector i, by Brinson, Hood and Beebower
AiBFA^{\mathrm{BF}}_i
Allocation effect of sector i, by Brinson and Fachler sector_allocation
wipw^p_i
The portfolio's weight in sector i portfolio_weights
wibw^b_i
The benchmark's weight in sector i benchmark_weights
ripr^p_i
The portfolio's return in sector i portfolio_returns
ribr^b_i
The benchmark's return in sector i benchmark_returns
BB
The benchmark's total return benchmark_return
SiS_i
Selection effect of sector i sector_selection
IiI_i
Interaction effect of sector i sector_interaction
ktk_t
The factor that links period t's effects, so they add up over the periods
RtR_t
The portfolio's return in period t period_portfolio_returns
BtB_t
The benchmark's return in period t period_benchmark_returns
ElinkedE^{\mathrm{linked}}
An effect linked over the periods
EtE_t
The effect in period t

Each symbol's field is named beside it; the inputs and outputs, with their units and bounds, are under Variables, and the citations give each formula's source.

Variables

Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.

Inputs

Brinson-Hood-Beebower: allocation against zero (bhb): 5 inputs
Inputs of the calculation bhb
NameDescription
Portfolio weightsportfolio_weightsratio (array) (array) · length min 1, max 600; each length min 1, max 100; each [0, 1]Portfolio weight of each sector, one row per period; each row sums to one
Benchmark weightsbenchmark_weightsratio (array) (array) · length min 1, max 600; each length min 1, max 100; each [0, 1]Benchmark weight of each sector, one row per period; each row sums to one
Portfolio returnsportfolio_returnsreturn (array) (array) · length min 1, max 600; each length min 1, max 100; each [-1, 100]Portfolio return in each sector, one row per period
Benchmark returnsbenchmark_returnsreturn (array) (array) · length min 1, max 600; each length min 1, max 100; each [-1, 100]Benchmark return in each sector, one row per period
CalculationcalculationtextBrinson-Hood-Beebower: allocation against zero
Brinson-Fachler: allocation against the total benchmark return (brinson_fachler): 5 inputs
Inputs of the calculation brinson_fachler
NameDescription
Portfolio weightsportfolio_weightsratio (array) (array) · length min 1, max 600; each length min 1, max 100; each [0, 1]Portfolio weight of each sector, one row per period; each row sums to one
Benchmark weightsbenchmark_weightsratio (array) (array) · length min 1, max 600; each length min 1, max 100; each [0, 1]Benchmark weight of each sector, one row per period; each row sums to one
Portfolio returnsportfolio_returnsreturn (array) (array) · length min 1, max 600; each length min 1, max 100; each [-1, 100]Portfolio return in each sector, one row per period
Benchmark returnsbenchmark_returnsreturn (array) (array) · length min 1, max 600; each length min 1, max 100; each [-1, 100]Benchmark return in each sector, one row per period
CalculationcalculationtextBrinson-Fachler: allocation against the total benchmark return

Outputs

Brinson-Hood-Beebower: allocation against zero (bhb): 17 outputs
Outputs of the calculation bhb
NameDescription
Periodsperiodscount · [1, 600]Number of periods
Sectorssectorscount · [1, 100]Number of sectors
Period portfolio returnsperiod_portfolio_returnsreturn (array) · length max 600; each [-1, 100]Portfolio return R_t of each period
Period benchmark returnsperiod_benchmark_returnsreturn (array) · length max 600; each [-1, 100]Benchmark return B_t of each period
Period allocationperiod_allocationreturn (array) · length max 600; each [-1000, 1000]Allocation effect of each period
Period selectionperiod_selectionreturn (array) · length max 600; each [-1000, 1000]Selection effect of each period
Period interactionperiod_interactionreturn (array) · length max 600; each [-1000, 1000]Interaction effect of each period
Sector allocationsector_allocationreturn (array) · length max 100; each [-1e+07, 1e+07]Linked allocation effect of each sector
Sector selectionsector_selectionreturn (array) · length max 100; each [-1e+07, 1e+07]Linked selection effect of each sector
Sector interactionsector_interactionreturn (array) · length max 100; each [-1e+07, 1e+07]Linked interaction effect of each sector
Allocationallocationreturn · [-1e+07, 1e+07]Total linked allocation effect
Selectionselectionreturn · [-1e+07, 1e+07]Total linked selection effect
Interactioninteractionreturn · [-1e+07, 1e+07]Total linked interaction effect
Portfolio returnportfolio_returnreturn · [-1, 1e+07]Compound portfolio return
Benchmark returnbenchmark_returnreturn · [-1, 1e+07]Compound benchmark return
Active returnactive_returnreturn · [-1e+07, 1e+07]Compound portfolio return less the compound benchmark return
CalculationcalculationtextBrinson-Hood-Beebower: allocation against zero
Brinson-Fachler: allocation against the total benchmark return (brinson_fachler): 17 outputs
Outputs of the calculation brinson_fachler
NameDescription
Periodsperiodscount · [1, 600]Number of periods
Sectorssectorscount · [1, 100]Number of sectors
Period portfolio returnsperiod_portfolio_returnsreturn (array) · length max 600; each [-1, 100]Portfolio return R_t of each period
Period benchmark returnsperiod_benchmark_returnsreturn (array) · length max 600; each [-1, 100]Benchmark return B_t of each period
Period allocationperiod_allocationreturn (array) · length max 600; each [-1000, 1000]Allocation effect of each period
Period selectionperiod_selectionreturn (array) · length max 600; each [-1000, 1000]Selection effect of each period
Period interactionperiod_interactionreturn (array) · length max 600; each [-1000, 1000]Interaction effect of each period
Sector allocationsector_allocationreturn (array) · length max 100; each [-1e+07, 1e+07]Linked allocation effect of each sector
Sector selectionsector_selectionreturn (array) · length max 100; each [-1e+07, 1e+07]Linked selection effect of each sector
Sector interactionsector_interactionreturn (array) · length max 100; each [-1e+07, 1e+07]Linked interaction effect of each sector
Allocationallocationreturn · [-1e+07, 1e+07]Total linked allocation effect
Selectionselectionreturn · [-1e+07, 1e+07]Total linked selection effect
Interactioninteractionreturn · [-1e+07, 1e+07]Total linked interaction effect
Portfolio returnportfolio_returnreturn · [-1, 1e+07]Compound portfolio return
Benchmark returnbenchmark_returnreturn · [-1, 1e+07]Compound benchmark return
Active returnactive_returnreturn · [-1e+07, 1e+07]Compound portfolio return less the compound benchmark return
CalculationcalculationtextBrinson-Fachler: allocation against the total benchmark return

Calculator

Run the model on your own inputs, starting from its example. Rates are decimals: 0.05 is five percent. The run goes to the pyeconomics API on this site: your values travel only in the request, and nothing is stored.

Loading the calculator…

Worked example

Example two_sectors_two_periods_bhb. Inputs:

{
  "benchmark_returns": [
    [0.04, 0.025],
    [-0.02, 0.02]
  ],
  "benchmark_weights": [
    [0.6, 0.4],
    [0.6, 0.4]
  ],
  "calculation": "bhb",
  "portfolio_returns": [
    [0.05, 0.02],
    [-0.01, 0.03]
  ],
  "portfolio_weights": [
    [0.7, 0.3],
    [0.6, 0.4]
  ]
}

Outputs:

{
  "active_return": 0.01738199999999999,
  "allocation": 0.001501495946160406,
  "benchmark_return": 0.029864000000000005,
  "calculation": "bhb",
  "interaction": 0.001501495946160408,
  "period_allocation": [0.0014999999999999983, 0],
  "period_benchmark_returns": [0.034, -0.004],
  "period_interaction": [0.0015000000000000002, 0],
  "period_portfolio_returns": [0.040999999999999995, 0.006],
  "period_selection": [0.004, 0.009999999999999998],
  "periods": 2,
  "portfolio_return": 0.04724599999999999,
  "sector_allocation": [0.0040039891897610865, -0.0025024932436006806],
  "sector_interaction": [0.0010009972974402718, 0.0005004986487201361],
  "sector_selection": [0.01223099513539249, 0.0021480129722866934],
  "sectors": 2,
  "selection": 0.014379008107679184
}

Assumptions

  • Each period's sector weights are long only, in [0, 1], and sum to one within 1e-6; they are rescaled to sum to exactly one.
  • Sector returns are buy-and-hold within the period. A sector the portfolio does not hold still needs a return: give the benchmark's, and its selection and interaction effects are zero.
  • The linked effects sum to the difference of the compound returns, not to the compound (geometric) excess (1 + R) / (1 + B) - 1.

Limitations

  • Linking more than one period raises DomainError when a period's portfolio or benchmark return is -100%, or when a compound return or linked effect passes 1e7.
  • Interaction is reported apart, not folded into selection; currency, fixed-income and other multi-factor attributions are out of scope.

Evidence

Status: standard. Textbook consensus, such as bond duration or the CAPM formula.

Every model declares one status: standard (textbook consensus), practitioner (a widely used convention), contested (under active debate), rejected (failed out of sample) or historical (a superseded methodology).

Syllabus

The 2027 CFA® Program's topic areas this model relates to, as factual tags. Each links to CFA Institute's page for its level; pyeconomics holds none of the curriculum's text.

Citations

  1. Brinson, G. P., Hood, L. R. and Beebower, G. L. (1986). Determinants of portfolio performance. Financial Analysts Journal, 42(4), 39-44. doi:10.2469/faj.v42.n4.39 (Tables 1-3, the quadrant framework and its decomposition)
  2. Brinson, G. P. and Fachler, N. (1985). Measuring non-US equity portfolio performance. The Journal of Portfolio Management, 11(3), 73-76. doi:10.3905/jpm.1985.409005 (The allocation effect relative to the total benchmark return)
  3. Carino, D. R. (1999). Combining attribution effects over time. The Journal of Performance Measurement, 3(4), 5-14. The journal is not online; the method is set out in Bacon (2008), ch. 8, Multi-period Attribution, the DOI given. doi:10.1002/9781119206309.ch8 (Bacon (2008) pp. 191-193, the logarithmic coefficients k_t and k)
  4. Bacon, C. R. (2008). Practical Portfolio Performance Measurement and Attribution, 2nd ed. Wiley. doi:10.1002/9781119206309.ch5 (Chapter 5, pp. 117-134: Brinson-Hood-Beebower and Brinson-Fachler). ISBN 9780470059289

Changelog

  • Version 1: First version.

Use it elsewhere

Documentation
The model's reference page
REST API
GET or POST /v1/models/performance.brinson_attribution/run
MCP tool
run_model with the model's id, performance.brinson_attribution. Connect an assistant
Command line
pyeconomics models run performance.brinson_attribution --help

The worked example, from Python and from the command line:

Python
import pyeconomics

inputs = {
    "benchmark_returns": [
        [0.04, 0.025],
        [-0.02, 0.02],
    ],
    "benchmark_weights": [
        [0.6, 0.4],
        [0.6, 0.4],
    ],
    "calculation": "bhb",
    "portfolio_returns": [
        [0.05, 0.02],
        [-0.01, 0.03],
    ],
    "portfolio_weights": [
        [0.7, 0.3],
        [0.6, 0.4],
    ],
}
result = pyeconomics.run("performance.brinson_attribution", inputs)
print(result.to_json())
Command line
pyeconomics models run performance.brinson_attribution --inputs - <<'JSON'
{
  "benchmark_returns": [
    [0.04, 0.025],
    [-0.02, 0.02]
  ],
  "benchmark_weights": [
    [0.6, 0.4],
    [0.6, 0.4]
  ],
  "calculation": "bhb",
  "portfolio_returns": [
    [0.05, 0.02],
    [-0.01, 0.03]
  ],
  "portfolio_weights": [
    [0.7, 0.3],
    [0.6, 0.4]
  ]
}
JSON