What are the Shapley value formula and its four uniqueness axioms, and for a 3-feature model with coalition values , , , , , , and , what are the exact Shapley attributions (verifying efficiency)?
ML systems and evaluation, Interpretability
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you know the cooperative-game foundation of SHAP and can compute exact Shapley marginal contributions across subsets.
Key idea
The Shapley value averages feature ’s marginal contribution across every subset not containing (with coalition value ) over all feature arrival orderings, uniquely satisfying efficiency, symmetry, dummy and additivity.
Steps
- Write the formula and state the four axioms: efficiency (), symmetry (equal marginal contributions give equal ), dummy (zero marginal contribution gives ), and additivity ( for any two coalition value functions and ).
- For , the subset weights are: for , for each subset, and for .
- Compute : .
- Compute : .
- Compute : .
- Verify efficiency: .
- Note the practical caveat: exact Shapley values scale as in general, and defining via marginal vs conditional expectations faces the same off-manifold issue as PDP unless TreeSHAP or conditional samplers are used.
Common mistakes
- Weighting all subsets equally ( each here) instead of using ().
- Checking efficiency against instead of ; Shapley values explain the difference from the baseline .
How long your answer should be
Half a page with all three sums and axiom list; 6–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in ML systems and evaluation: A weight tensor of 100 million parameters stored in FP32 (4 bytes each) spans the range . What are the unsigned INT8 () affine scale and zero-point , what are the quantised and dequantised values and error for , and how much parameter memory is saved?
Next in ML systems and evaluation: In online A/B testing, CUPED reduces metric variance by replacing the outcome with , where is a pre-experiment covariate unaffected by treatment. How do you show that (unbiasedness), derive the variance-minimising , and prove that the minimum variance is where ?