Skip to main content

Shapley calculator

This component provides the functionality to compute the Shapley value of an individual norm nin_i within a normative system NN (where niNn_i \in N), with respect to a given value vv. As explained in Alignment calculator, given a normative system NN and a value vv, it is possible to quantify the degree of alignment AlgnN,v\mathsf{Algn}_{N,v} that the norms in NN have with respect to value vv. The Shapley value ϕi(v)\phi_i(v) of norm niNn_i \in N quantifies the contribution that the specific norm nin_i makes to that alignment. It is defined as:

ϕi(v)=NN{ni}N!(NN1)!N!(AlgnN{ni},vAlgnN,v) \phi_{i}(v) = \sum\limits_{N'\subseteq N\setminus \{n_i\}} \frac{|N'|!\left(|N|-|N'|-1\right)!}{|N|!} \cdot \left( \mathsf{Algn}_{N'\cup \{n_i\}, v} - \mathsf{Algn}_{N', v} \right)

In the previous equation, the summation is taken over all the subsets of NN where nin_i is absent, N{ni}N \setminus \{n_i\}. In general, given a normative system NN and a set of norm {nj,nk,...}N\{n_j, n_k, ...\} \subseteq N, the removal of {nj,nk,...}\{n_j, n_k, ...\} from NN is represented by a normative system N=N{nj,nk,...}N' = N \setminus \{n_j, n_k, ...\} where the values of the normative parameters tied to {nj,nk,...}\{n_j, n_k, ...\} are substituted by their baseline quantities. These baseline normative parameters are drawn from a baseline normative system NbslN_{bsl}. This baseline normative system has the same norms as NN, tied to the same normative parameters, but the values that these baseline normative parameters are selected in such a way that, when it is implemented on the model, it does not cause it to evolve in any way. In other words, the baseline normative system NbslN_{\text{bsl}} causes transitions to not lead to any change in system state, sNbsls\mathbf{s} \xrightarrow{N_{\text{bsl}}} \mathbf{s}.

A Shapley Calculator is initialized similarly to the Alignment Calculator, by providing (i) a representation of the model or system being examined (i.e. the entity upon which norms apply to), and (ii) the semantics function fvf_v of the value of interest vv whose alignment is computed by the component.

The Shapley calculator component