How SHAP works

Prediction = base value + Σ SHAP value of each variable

The base value is the average prediction across the data. Each SHAP value is how much that variable moved this customer's prediction up or down, averaged fairly over all the ways the variables could be combined. For many classifiers SHAP is computed on the log-odds scale and then read as a push toward more or less risk.

Worked example (illustrative figures)

An applicant's predicted default probability is 15%, against an average of 10%. In probability points:

VariableValueContribution
Base value (average)10.0
Credit utilization85%+6.0
Late payments in 12 months2+4.0
Time with the bank8 years−3.0
Verified incomeAbove median−2.0
Prediction15.0

The two main reasons for the higher risk are high utilization and recent late payments, which is exactly what a decline letter or a credit analyst needs.

Global and local explanations

How Thorcast.AI helps

Frequently asked questions

Are SHAP values the same as feature importance?

Global SHAP importance is one way to measure feature importance, but SHAP also explains each individual prediction, which classic importance does not.

Can SHAP be used for adverse action reasons?

Yes. The variables that pushed a declined applicant's risk up the most are natural candidates for the reasons given to the customer, reviewed by the credit team.

Does SHAP work for any model?

Yes. It has fast exact versions for tree models and approximations for other models.

Related terms and guides