Skip to content

Click in-app to access the full platform documentation for your version of DataRobot.

Prediction Explanations

Prediction Explanations illustrate what drives predictions on a row-by-row basis—they provide a quantitative indicator of the effect variables have on the predictions, answering why a given model made a certain prediction. It helps to understand why a model made a particular prediction so that you can then validate whether the prediction makes sense. It's especially important in cases where a human operator needs to evaluate a model decision and also when a model builder needs to confirm that the model works as expected. For example, "why does the model give a 94.2% chance of readmittance?" (See more examples below.)

To access and enable Prediction Explanations, select a model on the Leaderboard and click Understand > Prediction Explanations.

DataRobot offers two methodologies for computing Prediction Explanations: SHAP (SHapley Values) and XEMP (eXemplar-based Explanations of Model Predictions).


To avoid confusion when the same insight is produced yet potentially returns different results, you must enable SHAP in Advanced options prior to project start.

SHAP or XEMP-based methodology?

Both SHAP and XEMP methodologies estimate which features have stronger or weaker impact on the target for a particular row. While the two methodologies usually provide similar results, the explanation values are different (because methodologies are different). The list below illustrates some differences:

Characteristic SHAP XEMP
Open-source? Open source algorithm provides regulators an easy audit path. Uses a well-supported DataRobot proprietary algorithm.
Model support Works for linear models, Keras deep learning models, and tree-based models, including tree ensembles. XEMP works for all models.
Column/value limits No column or value limits. Up to 10 values in up to the top 50 columns.
Speed 5-20 times faster than XEMP.
Accuracy Supports all key blueprints, so often times accuracy is the same. Because all blueprints are included in Autopilot, results may produce slightly higher accuracy.
Measure Multivariate, measuring the effect of varying multiple features at once. Additivity allocates the total effect across individual features that were varied. Univariate, measuring the effect of varying a single feature at a time.
Best use case Explaining exactly how you get from an average outcome to a specific prediction amount. Explaining which individual features have the greatest impact on the outcome versus an average input value (i.e., which feature has a value that most changed the prediction versus an average data row).
Additional notes SHAP is additive, making it easy to see how much top-N features contribute to a prediction.


While Prediction Explanations provide several quantitative indicators for why a prediction was made, the calculations do not fully explain how a prediction is computed. For that information, use the coefficients with preprocessing information from the Coefficients tab.

See the XEMP or SHAP pages for a methodology-based description of using and interpreting Prediction Explanations.


A common question when evaluating data is “why is a certain data point considered high-risk (or low-risk) for a certain event”?

A sample case for Prediction Explanations:

Sam is a business analyst at a large manufacturing firm. She does not have a lot of data science expertise, but has been using DataRobot with great success to predict the likelihood of product failures at her manufacturing plant. Her manager is now asking for recommendations for reducing the defect rate, based on these predictions. Sam would like DataRobot to produce Prediction Explanations for the expected product failures so that she can identify the key drivers of product failures based on a higher-level aggregation of explanations. Her business team can then use this report to address the causes of failure.

Other common use cases and possible reasons include:

  • What are indicators that a transaction could be at high risk for fraud? Possible explanations include transactions out of a cardholder's home area, transactions out of their “normal usage” time range, and transactions that are too large or small.

  • What are some reasons for setting a higher auto insurance price? The applicant is single, male, age under 30 years, and has received DUI or tickets. A married homeowner may receive a lower rate.

SHAP estimates how much a feature is responsible for a given prediction being different from the average. Consider a credit risk example that builds a simple model with two features—number of credit cards and employment status. The model predicts that an unemployed applicant with 10 credit cards has a 50% probability of default, while the average default rate is 5%. SHAP estimates how each feature contributed to the 50% default risk prediction, determining that 25% is attributed to the number of cards and 20% of risk is due to the customer's lack of a job.

Updated February 22, 2022
Back to top