Skip to content

Theoretical background

This chapter collects the mathematical background needed to understand the objects and estimators implemented by capacities_ml_fin. It follows the theoretical development and the additional theoretical appendix of the thesis Machine Learning with Choquet Integrals for Risk Management and Decision Making, while keeping the notation tied to the package API. The original sources used for the theory and the model families are listed in the bibliography.

From additive aggregation to capacities

An aggregation function combines \(n\) inputs into one value. On the unit cube, the standard boundary and monotonicity requirements are

\[ F(0,\ldots,0)=0,\qquad F(1,\ldots,1)=1, \]

and

\[ x\le y \quad\Longrightarrow\quad F(x)\le F(y), \]

where the vector inequality is componentwise. A weighted arithmetic mean,

\[ M_w(x)=\sum_{i=1}^n w_i x_i, \qquad w_i\ge0,\quad \sum_iw_i=1, \]

is an averaging aggregation function, but it is additive: the contribution of each input is fixed independently of the other inputs. An ordered weighted average relaxes the fixed-variable interpretation by attaching weights to ordered positions, but it still does not assign importance directly to named coalitions of variables.

A capacity makes that coalition structure explicit. For a finite universe \(N=\{1,\ldots,n\}\), it is a set function

\[ \mu:2^N\longrightarrow[0,1] \]

satisfying

\[ \mu(\varnothing)=0,\qquad \mu(N)=1, \qquad A\subseteq B\Longrightarrow\mu(A)\le\mu(B). \]

Unlike a probability measure, a capacity need not be additive on disjoint sets. Consequently, \(\mu(A)\) can express the importance of a group without being forced to equal the sum of its singleton importances. This is the source of complementarity and redundancy in capacity-based models. Capacities and the associated integral originate with Choquet (1954); modern finite treatments used here include Torra, Narukawa and Sugeno (2014) and Beliakov, James and Wu (2026).

The package represents this object through ExplicitCapacity, MobiusCapacity, and KAdditiveCapacity. Their shared BaseCapacity interface separates the mathematical event value \(\mu(A)\) from the numerical parameterization used to store it.

The Choquet integral as non-additive aggregation

For a non-negative vector \(x\), let

\[ x_{(1)}\le\cdots\le x_{(n)},\qquad x_{(0)}=0, \]

and let \(A_{(i)}\) be the set of indices whose values are at least \(x_{(i)}\). The discrete Choquet integral is

\[ C_\mu(x)= \sum_{i=1}^n \bigl(x_{(i)}-x_{(i-1)}\bigr)\mu(A_{(i)}). \]

Each ordered increment is weighted by the capacity of the coalition that reaches that level. The effective aggregation therefore depends on the joint configuration of the observation, rather than on a fixed coefficient for each feature. If \(\mu\) is additive, with \(\mu(A)=\sum_{i\in A}w_i\), the expression telescopes to the weighted arithmetic mean \(\sum_iw_ix_i\). The Choquet integral is thus a genuine extension of familiar weighted aggregation, not a separate unrelated construction (Grabisch, 2003; Beliakov, James and Wu, 2026).

For bounded random variables, the integral retains several classical properties:

  • monotonicity: \(X\le Y\Rightarrow C_\mu(X)\le C_\mu(Y)\);
  • positive homogeneity: \(C_\mu(\lambda X)=\lambda C_\mu(X)\) for \(\lambda\ge0\);
  • translation invariance: \(C_\mu(X+c)=C_\mu(X)+c\);
  • comonotonic additivity: \(C_\mu(X+Y)=C_\mu(X)+C_\mu(Y)\) when \(X\) and \(Y\) are comonotonic.

It is not additive for arbitrary inputs. That controlled failure of additivity is precisely what permits interactions. In code, ordered_choquet implements the ordered formula, while the batch functions build the corresponding design matrices for repeated evaluation and learning.

Möbius representation and interaction order

Every finite capacity has a Möbius transform

\[ m_\mu(A)=\sum_{B\subseteq A}(-1)^{|A|-|B|}\mu(B), \]

with inversion

\[ \mu(A)=\sum_{B\subseteq A}m_\mu(B). \]

In this basis, the discrete Choquet integral is

\[ C_\mu(x)= \sum_{\varnothing\ne A\subseteq N} m_\mu(A)\min_{i\in A}x_i. \]

The Möbius coefficients need not lie in \([0,1]\); normalization and monotonicity apply to the capacity reconstructed from them. A coefficient attached to a coalition describes a contribution in the Möbius decomposition, while the Shapley indices below redistribute higher-order mass. The two quantities should not be conflated outside the relevant special cases.

A capacity is at most \(k\)-additive when

\[ m_\mu(A)=0\qquad\text{for every }|A|>k. \]

This reduces the number of possible non-empty coefficients from \(2^n-1\) to

\[ \sum_{j=1}^k\binom nj. \]

A 1-additive capacity gives an additive monotone baseline. A 2-additive capacity additionally retains pairwise interactions. Higher values permit larger coalitions but increase both estimation and interpretation costs. KAdditivity(order=k) compiles this restriction for the package estimators.

For a 2-additive capacity,

\[ \mu(A)=\sum_{i\in A}m_\mu(\{i\})+ \sum_{\{i,j\}\subseteq A}m_\mu(\{i,j\}). \]

In this particular case, convexity is equivalent to all pairwise Möbius terms being non-negative, and concavity to all of them being non-positive. This is a global shape condition; the sign of one pair alone describes only that pair.

Importance and interaction

The Shapley importance of feature \(i\) is its average marginal contribution over all coalitions that do not contain it:

\[ \phi_i(\mu)= \sum_{S\subseteq N\setminus\{i\}} \frac{|S|!(n-|S|-1)!}{n!} \left[\mu(S\cup\{i\})-\mu(S)\right]. \]

The exact pairwise interaction index is

\[ I_{ij}(\mu)= \sum_{S\subseteq N\setminus\{i,j\}} \frac{|S|!(n-|S|-2)!}{(n-1)!} \Delta_{ij}\mu(S), \]

where

\[ \Delta_{ij}\mu(S)= \mu(S\cup\{i,j\})-\mu(S\cup\{i\})- \mu(S\cup\{j\})+\mu(S). \]

The same indices can be written directly in the Möbius basis:

\[ \phi_i(\mu)=\sum_{A\ni i}\frac{m_\mu(A)}{|A|}, \qquad I_{ij}(\mu)=\sum_{A\supseteq\{i,j\}} \frac{m_\mu(A)}{|A|-1}. \]

Therefore, for a 2-additive capacity,

\[ \phi_i(\mu)=m_\mu(\{i\})+ \frac12\sum_{j\ne i}m_\mu(\{i,j\}), \qquad I_{ij}(\mu)=m_\mu(\{i,j\}). \]

Positive pairwise interaction indicates complementarity; negative interaction indicates redundancy or substitutability. These are global summaries of the learned aggregation rule. They are not local SHAP values for individual predictions, and in empirical work they should be treated as sample- and regime-dependent fitted quantities. The package computes them exactly through shapley_indices and pairwise_interactions.

Learning a capacity from data

Learning is a constrained optimization problem. Regardless of the objective, the fitted parameter vector must decode to a normalized monotone capacity. A Möbius parameterization is especially useful when \(k\)-additivity or selective regularization is imposed. The package can penalize selected higher-order terms, for example

\[ \lambda\sum_{A:\,|A|\ge2}|m_\mu(A)|, \]

which shrinks interactions without directly penalizing singleton terms. This connects the implementation to regularized Choquet learning such as Anderson, Price and Havens (2014).

Predictors used as criteria must be commensurable and consistently oriented. Normalization maps them to a common scale, while reversing cost criteria makes larger transformed values have a common semantic direction. Monotonicity is a model assumption after this transformation, not a substitute for it.

Regression

Choquet regression replaces the additive systematic component by a learned Choquet integral:

\[ \widehat y_t=\beta_0+qC_\mu(x_t),\qquad q\ge0. \]

ChoquetRegressor fixes \(q=1\); ScaledChoquetRegressor estimates it jointly. With squared loss, the generic problem is

\[ \min_{\beta_0,q,\mu} \sum_t\left[y_t-\beta_0-qC_\mu(x_t)\right]^2 +\operatorname{penalty}(m_\mu), \qquad \mu\in\mathcal M(N). \]

The model family is grounded in Wang et al. (2000), Grabisch (2003), and Fallah Tehrani et al. (2012). Normalization of \(\mu\) identifies its relative aggregation structure; \(q\) controls the aggregate scale.

Probabilistic and direct classification

ChoquisticRegression passes a Choquet utility through a logistic link (Tehrani, Cheng and Hüllermeier, 2011):

\[ P(Y_t=1\mid x_t)= \sigma\!\left(\gamma[C_\mu(x_t)-\beta]\right), \qquad \gamma>0,\quad \beta\in[0,1]. \]

The capacity, location and positive scale are estimated jointly by constrained Bernoulli maximum likelihood. If \(\mu\) is additive, the model reduces to a constrained logistic regression with non-negative slopes after consistent feature orientation; it is not the same as unrestricted logistic regression.

ChoquetClassifier instead learns a deterministic surface

\[ \widehat Y_t= \mathbf 1\!\left\{C_\mu(s\odot x_t)\ge c\right\}, \]

including optional non-negative relative feature scales \(s\). Its discontinuous 0–1 objective motivates derivative-free population optimization, following the direct-classification line of Yang and Ouyang (2014) and Yang et al. (2019). A threshold margin is not a probability, which is why this estimator deliberately omits predict_proba().

Choquet inputs and neural networks

Choquet aggregation can replace the additive combination inside a neuron, be represented as a network over coalitions, or be used only at selected network stages. Such architectures preserve a capacity interpretation but introduce constrained and potentially exponential parameterizations; examples include Chiang (1999), Yue and Wang (2005), and Islam et al. (2020).

The estimators implemented here use the simpler staged transformation of Gomes et al. (2016):

\[ x_t\longmapsto u_t=C_{\widehat\mu}(x_t) \longmapsto f_{\widehat\theta}(u_t). \]

The capacity is learned first and frozen; a conventional neural network is then trained on the scalar Choquet input. This is the architecture implemented by FuzzyChoquetInputLayer, FuzzyChoquetNeuralRegressor, and FuzzyChoquetNeuralClassifier.

Time-series models

Fuzzy-measure time-series models use a capacity to aggregate lagged values (Sugeno and Kwon, 1995; Gomes et al., 2016). The package's native autoregressive specification is

\[ \widehat y_t= \beta_0+\phi C_\mu(y_{t-1},\ldots,y_{t-p})+x_t^\top\gamma. \]

ChoquetAutoRegressor learns the lag capacity and outer scale, and may include exogenous regressors. FuzzyChoquetNeuralAutoRegressor applies the staged Choquet-neural construction to normalized lag windows and selects the lag order chronologically. These are implementation-specific estimators motivated by the cited model family; their precise API and stability restrictions are documented on the time-series page.

Model aggregation

The same mathematics can aggregate fitted models rather than original predictors. If \(z_t=(\widehat y_t^{(1)},\ldots,\widehat y_t^{(M)})\), regression aggregation estimates

\[ \widehat\mu\in\arg\min_{\mu\in\mathcal M(N_M)} \sum_t\ell\!\left(y_t,C_\mu(z_t)\right). \]

For classification, base-model probabilities are combined before the final probability or decision rule. Capacities may be shared across classes or made class-specific; the package implements a parsimonious shared-capacity binary form. Relevant supervised, uncertainty-based and financial-distress aggregation approaches include Uriz et al. (2023), Pacheco and Krohling (2018), and Cao (2012).

The capacity must be fitted on honest out-of-fold or validation predictions. Using in-sample base-model predictions would train the aggregator on information that overstates the quality of its inputs.

Capacities in financial risk measurement

Let \(L\) denote a loss. A monetary risk measure \(\rho\) is monotone and cash additive. It is coherent when it is also subadditive and positively homogeneous (Artzner et al., 1999). Value-at-Risk and Expected Shortfall are, respectively,

\[ \operatorname{VaR}_\alpha(L)= \inf\{x:F_L(x)\ge\alpha\}, \]

and

\[ \operatorname{ES}_\alpha(L)= \frac{1}{1-\alpha}\int_\alpha^1 \operatorname{VaR}_u(L)\,du. \]

VaR is not coherent in general because it can fail subadditivity; ES is coherent under the standard loss formulation (McNeil, Frey and Embrechts, 2015).

An increasing distortion \(g:[0,1]\to[0,1]\), with \(g(0)=0\) and \(g(1)=1\), turns probability into the capacity

\[ \nu_g(A)=g(P(A)). \]

The corresponding distortion risk measure is a Choquet integral,

\[ \rho_g(L)=C_{\nu_g}(L). \]

This identity connects the predictive use of capacities over variables with their risk-measure use over loss events (Grigorova, 2014; Sriboonchitta et al., 2010; Wang, Wang and Wei, 2020). VaR and ES arise from the distortions

\[ g_\alpha^{\mathrm{VaR}}(u)=\mathbf 1\{u>1-\alpha\}, \qquad g_\alpha^{\mathrm{ES}}(u)= \min\!\left\{\frac{u}{1-\alpha},1\right\}. \]

The proportional-hazards family \(g_\gamma(u)=u^\gamma\) is concave for \(0<\gamma<1\) and places more weight on tail probabilities than the identity. Concavity is important: an increasing concave distortion generates a coherent distortion risk measure under the usual assumptions, while a convex distortion need not preserve the diversification properties associated with coherence.

For a capacity \(\nu\), generalized distribution and quantile objects can also be defined by

\[ G_{L,\nu}(x)=1-\nu(L>x) \]

and lower/upper inverses of \(G_{L,\nu}\). These objects motivate the generalized quantile, spectral, and finite Kusuoka-style tools in the risk module. They need not be ordinary probability distributions when \(\nu\) is non-additive, so their interpretation should remain capacity-based.

Theory-to-API map

Theoretical object or model Main package API Principal sources from the thesis
Finite capacity ExplicitCapacity, MobiusCapacity, KAdditiveCapacity Choquet (1954); Beliakov et al. (2026)
Discrete Choquet integral ordered_choquet, mobius_choquet, batch integrals Grabisch (2003); Beliakov et al. (2026)
Choquet regression ChoquetRegressor, ScaledChoquetRegressor Wang et al. (2000); Fallah Tehrani et al. (2012)
Choquistic regression ChoquisticRegression Tehrani et al. (2011)
Direct classification ChoquetClassifier Yang and Ouyang (2014)
Staged Choquet-neural input FuzzyChoquetInputLayer, neural regressors/classifiers Gomes et al. (2016)
Choquet autoregression ChoquetAutoRegressor, FuzzyChoquetNeuralAutoRegressor Sugeno and Kwon (1995); Gomes et al. (2016)
Supervised model aggregation aggregate_regression_predictions, aggregate_binary_probabilities Cao (2012); Uriz et al. (2023)
Distortion risk measure DistortionRiskMeasure, VaR/ES/power distortions Artzner et al. (1999); Wang et al. (2020)

The citations identify the theoretical lineage of each family. They do not imply that every package class is a verbatim reproduction of one paper: scikit-learn and sktime interfaces, solver choices, validation, sparse parameter compilation, and several workflow safeguards are package-level implementation decisions.