Tabellab
AI & Data Science Advanced

Explaining Model Predictions by Hand: Contributions, Shapley Values, Permutation Importance, Partial Dependence & Counterfactuals

Open up a model's predictions with nothing but a spreadsheet. You will break a linear score into feature contributions, compute exact Shapley values for a three-feature model from all eight coalitions, measure permutation importance, draw partial-dependence and individual curves, and find the smallest change that flips a decision, with every cell checked as you go.

8 lessons 8 labs 2.2 h Certificate

One-time payment ยท lifetime access ยท lessons, labs, exam and certificate included ยท no subscription.

About this course

This course opens up toy models with nothing but a spreadsheet. You split a linear rent prediction into one contribution per feature and check that baseline plus contributions rebuilds it. For a three-feature risk score you build all eight coalitions, average marginal contributions over six orders into exact Shapley values and confirm they add up. You see how Shapley splits an interaction effect, measure permutation importance with shuffled columns and mean absolute error, draw ICE and partial-dependence curves, find the smallest change that flips a decision with MINIFS, and finish with a global importance chart, a stability check and the limits of every explanation.

Lessons

  1. Baseline & Contributions: Explaining a Linear Score Feature by FeatureLab15 min Pro
  2. Coalitions: All Eight Feature Subsets & the Model Output for EachLab16 min Pro
  3. Shapley Values: Marginal Contributions over Every Order & the Weighted FormulaLab18 min Pro
  4. Interactions: How Shapley Splits an Effect Two Features Create TogetherLab16 min Pro
  5. Permutation Importance: How Much Worse the Model Gets When a Column Is ShuffledLab17 min Pro
  6. Partial Dependence & ICE Curves: One Feature Across the Whole FleetLab17 min Pro
  7. Counterfactuals: The Smallest Change That Flips a DecisionLab17 min Pro
  8. The Explanation Report: Global vs Local, Stability & LimitationsLab18 min Pro