reference link

1. What is SHAP for?

Say we train a prediction model as such:

스크린샷 2024-02-07 오후 3.17.11.png

There are two different ways to interpret the models.

2. Key assumptions of SHAP

SHAP is based on the game theory. Consider the following scenario: a group of people are playing a game. As a result of playing this game, they receive a certain reward; how can they divide this reward between themselves in a way which reflects each of their contributions?

There are a few things which everyone can agree on; meeting the following conditions will mean the game is ‘fair’ according to SHAP values:

Translate this into the previous notation. Now we get: