Questions: SHAP and LIME Explanations

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A data scientist uses LIME to explain why a loan application was denied: 'income' contributes –0.3 and 'debt' contributes –0.4. She reruns LIME on the same prediction and gets slightly different numbers. What explains this?

ALIME is broken; explanations for the same prediction must always be identical
BLIME generates perturbed samples randomly, so different sampling runs produce slightly different local linear fits
CSHAP was accidentally used instead; SHAP produces variable results between runs
DThe model changed between runs, producing different predictions
Question 2 True / False

A credit scoring model uses 50 features. SHAP's feature attributions for a given prediction will always sum to the model's prediction minus the average prediction across all training examples.

TTrue
FFalse
Question 3 True / False

LIME and SHAP both explain individual model predictions, so they can be used interchangeably for any explanation task.

TTrue
FFalse
Question 4 Short Answer

What is the key idea behind Shapley values, and why does it make SHAP's attribution more principled than a model's internal feature weights?

Think about your answer, then reveal below.
Question 5 Multiple Choice

TreeSHAP is preferred over KernelSHAP for gradient-boosted tree models primarily because:

ATreeSHAP uses LIME's local approximation approach, which is faster for tree-structured models
BTreeSHAP exploits the tree structure to compute exact Shapley values in polynomial time, while KernelSHAP requires sampling and is approximate
CKernelSHAP cannot handle categorical features, which tree models commonly use
DTreeSHAP produces higher attribution magnitudes, making features appear more important