Technical Description

  1. Consider All Coalitions: For a model with 'N' features, examine all possible coalitions (subsets) of features. For example, if you have 3 features {A, B, C}, possible coalitions are: {}, {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C}.
  2. Marginal Contribution: For each coalition, calculate the difference in prediction (the payoff) between having that coalition of features present vs. absent. This difference is the marginal contribution of the features in that combination.
  3. Weighted Average: Do this for every possible coalition. Take a weighted average of all these marginal contributions, where the weights are based on the coalition sizes. The result is the Shapley value for a feature - representing its fair share of the overall model prediction.

Strengths

Weaknesses

Real-World Use Cases