Individual Conditional Expectation (ICE) is a model-agnostic visualization method that plots one line per instance, showing how an individual prediction changes as a single feature varies while holding all other features constant. Unlike Partial Dependence Plots (PDP), which display an averaged marginal effect, ICE plots explicitly reveal heterogeneous treatment effects and interaction-driven divergences across a dataset.
Glossary
Individual Conditional Expectation

What is Individual Conditional Expectation?
A disaggregated visualization technique that plots the functional relationship between a feature and the prediction for every single instance, revealing heterogeneous effects hidden by partial dependence plots.
An ICE plot is generated by taking each instance in a dataset, creating a grid of values for the feature of interest, and recording the model's prediction for each grid value while keeping the instance's other features fixed. A centered ICE plot, or c-ICE, subtracts the initial prediction from each curve to align them at the origin, making it easier to visually identify clusters of instances that respond differently to the same feature change.
Key Characteristics of ICE Plots
Individual Conditional Expectation (ICE) plots decompose a Partial Dependence Plot into its constituent parts, revealing heterogeneous effects and interactions that are averaged away in aggregate views.
Instance-Level Disaggregation
Unlike a Partial Dependence Plot (PDP) which shows a single average line, an ICE plot draws one line per instance in the dataset. Each line represents the change in that specific instance's prediction as the feature of interest is varied. This reveals heterogeneous treatment effects where the functional form differs across subgroups, preventing the ecological fallacy of assuming the average effect applies to all individuals.
Centered ICE (c-ICE) for Effect Comparison
A variant called Centered ICE subtracts each curve's value at a chosen anchor point (often the minimum feature value). This forces all curves to originate at zero, making it easier to compare the relative change in prediction across instances. c-ICE is particularly useful when the absolute prediction levels vary widely across instances, obscuring the shape of the partial relationship.
Derivative ICE (d-ICE) for Interaction Detection
Derivative ICE plots the partial derivative of the prediction with respect to the feature for each instance. If all d-ICE curves are flat and identical, there is no interaction between the feature of interest and other features. Substantial variation in the slopes of d-ICE curves visually confirms the presence of feature interactions that a standard PDP would completely mask.
Computational Mechanism
To generate an ICE plot for feature (X_S):
- For each instance (i), hold all other features (x_C^{(i)}) constant at their observed values.
- Create a grid of values for (X_S).
- Predict (\hat{f}(x_S, x_C^{(i)})) for each grid point.
- Plot the resulting curve. This is repeated for every instance, creating a grid of counterfactual predictions that shows how each individual's outcome would change under different values of (X_S).
Visual Clustering for Subgroup Discovery
When ICE plots reveal distinct clusters of curves with different slopes or shapes, this indicates the presence of latent subgroups in the data. For example, in a medical risk model, increasing age might increase risk for most patients but decrease it for a specific subgroup with a particular genetic marker. Visual inspection of ICE curves can guide subsequent subgroup analysis and feature engineering.
Limitations and Scalability
ICE plots become visually overwhelming with more than a few hundred instances, requiring subsampling or transparency techniques. They also suffer from the same extrapolation risk as PDPs when the feature of interest is correlated with other features—the held-constant values (x_C^{(i)}) may represent unrealistic combinations. Additionally, ICE plots only visualize one or two features at a time, limiting their ability to capture higher-order interactions.
Frequently Asked Questions
Individual Conditional Expectation (ICE) plots disaggregate the global view of Partial Dependence Plots to reveal heterogeneous relationships between a feature and the model's prediction for every single instance in a dataset.
An Individual Conditional Expectation (ICE) plot is a disaggregated visualization technique that plots the functional relationship between a specific input feature and the model's prediction for each individual instance in a dataset. Unlike a Partial Dependence Plot (PDP) which averages the effect across all instances into a single line, an ICE plot draws one line per instance. The algorithm works by taking a single observation, holding all other feature values constant, and systematically varying the target feature across its range of values to record how the prediction changes. This process is repeated for every instance, generating a dense set of curves. The average of all ICE curves recovers the PDP, making ICE a strictly more informative superset of partial dependence. This technique is essential for detecting heterogeneous treatment effects and interaction effects that are completely invisible in the averaged PDP curve.
ICE vs. Partial Dependence Plots
Key differences between Individual Conditional Expectation curves and Partial Dependence Plots for understanding feature effects on model predictions.
| Feature | ICE Plots | Partial Dependence Plots |
|---|---|---|
Granularity | Instance-level curves for every observation | Single global average curve |
Heterogeneous effects | Directly visible via divergent curves | Masked by averaging |
Interaction detection | Revealed by crossing or non-parallel curves | Hidden unless explicitly plotted (2D PDP) |
Computational cost | Higher; requires one prediction per instance per grid point | Lower; averages predictions across all instances per grid point |
Visual clutter risk | High with large datasets; requires centering or subsampling | Low; single clean line |
Centered ICE variant | Subtracts a fixed point to align curves and highlight heterogeneity | Not applicable |
Bias under correlated features | Inherits PDP bias; extrapolates in sparse regions | Suffers from same extrapolation bias |
Primary use case | Diagnosing when PDP average is misleading | Summarizing marginal feature effect globally |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key feature attribution and visualization methods that complement or contrast with Individual Conditional Expectation plots for understanding heterogeneous model behavior.
Partial Dependence Plots
A global visualization tool that shows the average marginal effect of a feature on predictions. Unlike ICE plots, PDPs aggregate all instances into a single line, which can mask heterogeneous effects when interactions are present. ICE plots are the disaggregated building blocks of PDPs.
Accumulated Local Effects
An unbiased alternative to PDPs that computes feature effects by averaging local differences in predictions within conditional partitions. ALE plots remain valid under correlated features, a scenario where both PDPs and ICE plots can produce misleading extrapolations by averaging over unrealistic data regions.
SHAP Dependence Plots
An extension of SHAP values that visualizes how a feature's attribution changes with its value, optionally colored by an interacting feature. Unlike ICE plots which show raw prediction changes, SHAP dependence plots display additive contribution scores that satisfy game-theoretic fairness axioms.
Centered ICE Plots
A variant of ICE that subtracts each curve's value at a reference point (typically the feature minimum), aligning all instances to start at zero. This technique makes heterogeneous effect patterns more visually salient by removing baseline differences and highlighting divergent slopes across instances.
Derivative ICE Plots
An extension that plots the partial derivative of the prediction with respect to the feature for each instance. This reveals where and for which instances the feature has the strongest local effect, identifying regions of rapid change that may be obscured in standard ICE visualizations.
Counterfactual Explanations
A complementary approach that identifies the minimal feature changes required to flip a prediction. While ICE plots show how predictions evolve across a feature's range, counterfactuals pinpoint the exact decision boundary crossing for a specific instance, providing actionable recourse rather than descriptive curves.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us