An Individual Conditional Expectation (ICE) Plot is a visualization that disaggregates the global average of a Partial Dependence Plot (PDP) by plotting the functional relationship between a target feature and the predicted outcome for each individual instance in a dataset. While a PDP shows a single average curve, an ICE plot displays one line per instance, exposing heterogeneous treatment effects and interactions that averaging would otherwise obscure.
Glossary
Individual Conditional Expectation (ICE) Plot

What is an Individual Conditional Expectation (ICE) Plot?
An ICE plot visualizes how a model's prediction for a single instance changes as a specific feature varies, revealing heterogeneous effects masked by global averages.
ICE plots are constructed by holding all other features constant for a specific instance and systematically varying the feature of interest across its range, recording the model's changing prediction. This reveals whether different subgroups respond in opposing directions—a critical insight for algorithmic fairness and causal inference. A centered ICE plot, which subtracts each instance's baseline prediction, further clarifies divergent trends by aligning all curves at a common origin.
Key Characteristics of ICE Plots
Individual Conditional Expectation (ICE) plots reveal the heterogeneous relationships hidden by global averages, plotting the prediction for each instance as a function of a single feature.
Instance-Level Disaggregation
Unlike a Partial Dependence Plot (PDP), which shows a single global average curve, an ICE plot visualizes one line per instance. This disaggregation reveals heterogeneous effects where the direction of a feature's impact differs across subgroups. If all ICE curves follow a similar shape, the PDP is a reliable summary. If curves diverge or intersect, it signals complex interactions that a PDP would mask.
Centered ICE (c-ICE) for Comparison
A standard ICE plot can be difficult to read when instances have vastly different baseline predictions. Centered ICE (c-ICE) normalizes all curves to start at zero at a specific feature value, isolating the differential effect of the feature. This makes it easier to visually identify clusters of instances that respond similarly, even if their absolute predicted values differ.
Derivative ICE (d-ICE) for Interaction Detection
Derivative ICE (d-ICE) plots the partial derivative of the prediction with respect to the feature for each instance. This reveals where and for whom the feature has a strong influence. If d-ICE curves are flat and identical, no interaction exists. Significant variation in the derivatives across instances is a direct visual indicator of feature interactions in the model.
Computational Mechanism
To generate an ICE plot for a feature (x_S):
- Select a grid of values for (x_S).
- For each instance (i), create a set of synthetic copies where all features except (x_S) are held constant at their observed values, and (x_S) is set to each grid value.
- Predict on all synthetic copies.
- Plot the predicted value against the grid values for each instance. This brute-force approach is model-agnostic but computationally linear in the number of instances and grid points.
Diagnosing Model Behavior
ICE plots are a primary diagnostic tool for uncovering non-linear relationships and subgroup effects. For example, an ICE plot of age against predicted health risk might reveal that risk increases with age for most patients but decreases for a specific subgroup with a particular genetic marker. This granular insight is critical for auditing fairness and validating domain logic before deployment.
Limitations and Visual Clutter
ICE plots suffer from overplotting when the number of instances is large, making individual curves indistinguishable. They also visualize the effect of only one or two features at a time and assume feature independence during the perturbation process, which can generate unrealistic synthetic data points in regions of the feature space with zero density. Subsampling and transparency are common mitigation strategies.
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.
Frequently Asked Questions
Explore the mechanics, use cases, and diagnostic power of Individual Conditional Expectation plots for uncovering heterogeneous effects hidden by global averages.
An Individual Conditional Expectation (ICE) plot is a visualization that graphs the functional relationship between a specific input feature and the predicted outcome for each individual instance in a dataset. Unlike a Partial Dependence Plot (PDP), which shows a single global average effect, an ICE plot disaggregates this average by drawing one line per instance. The algorithm works by holding all other features constant for a given instance and systematically varying the target feature across its range, recording the model's prediction at each step. This process is repeated for every instance, generating a series of curves. The result reveals heterogeneous effects—situations where the direction or magnitude of a feature's impact differs across subgroups—that would otherwise be invisible in the averaged PDP curve.
Related Terms
Mastering Individual Conditional Expectation (ICE) Plots requires understanding their relationship to global averages, heterogeneous effect detection, and the broader suite of model-agnostic visualization tools.
Partial Dependence Plot (PDP)
The direct global complement to the ICE plot. While an ICE plot visualizes the prediction function for each individual instance, a PDP shows the average marginal effect of a feature. The PDP is calculated by taking the mean of all ICE curves at each feature value. Comparing ICE plots against the PDP line immediately reveals if the average effect is masking heterogeneous relationships or interactions.
Centered ICE (c-ICE)
A critical variant that removes level effects to isolate interaction effects. Standard ICE curves often start at different prediction values, making heterogeneity hard to see. c-ICE normalizes all curves to start at zero at a chosen anchor point. This 'centering' makes it visually obvious when instances diverge, confirming that the feature of interest interacts with other features to produce different response slopes.
Derivative ICE (d-ICE)
A visualization that plots the partial derivative of the prediction function with respect to the feature for each instance. While standard ICE shows the functional relationship, d-ICE reveals where and for whom the feature has a strong influence. A flat d-ICE curve at zero indicates a region of no effect, while sharp spikes identify feature values where the model's decision boundary is highly sensitive for specific subgroups.
Accumulated Local Effects (ALE) Plot
An unbiased alternative to both PDP and ICE when features are highly correlated. ICE and PDP can produce unrealistic extrapolations by averaging over impossible data combinations. ALE computes the local effect by accumulating the average differences in predictions over conditional distributions. It is the preferred tool for visualizing feature effects when multicollinearity is present in the data.
Feature Interaction (H-Statistic)
The quantitative metric that validates visual findings from ICE plots. The Friedman's H-statistic measures the variance of the prediction function attributable to interactions between features. If ICE curves show significant crossing or divergence, the H-statistic quantifies this interaction strength. A value of zero indicates no interaction, while a high value confirms that the heterogeneous effects observed in the ICE plot are statistically meaningful.
Shapley Additive Explanations (SHAP)
A game-theoretic attribution method that decomposes a single prediction into feature contributions. While ICE shows how a prediction changes as you vary one feature, SHAP explains the exact composition of a prediction at a fixed point. SHAP dependence plots often overlay ICE-like visualizations with color-coded interaction effects, bridging local attribution with the functional form revealed by ICE 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