Partial dependence plot
A partial dependence plot shows a model's average predicted response as selected features vary, averaging over the values of the remaining features.
Ensemble Methods for Machine Learning
A partial dependence function is the average model prediction obtained by fixing selected feature values and integrating or averaging over the remaining features.
- How it is used
- Explains global relationships between selected features and predictions for black-box models.
- How deep it goes
- Defines marginalization and gives a stepwise approximation, while stopping short of formal integral details.
- Examples
- Uses Bank Marketing variables, column replacement, averaged predictions, and four plotted PDPs.
- What you can do after
- Apply PDPs through scikit-learn’s PartialDependenceDisplay to visualize selected feature relationships.
Read how Ensemble Methods for Machine Learning explains partial dependence plot →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
A partial dependence plot displays a model's average predicted response as one or more input features vary while marginalizing over other features.
- How it is used
- Uses model-agnostic charts to inspect feature–target relationships and guide numerical transformations.
- How deep it goes
- Defines averaging and independence assumptions, demonstrates plots, and stops short of resolving correlated-feature effects.
- Examples
- Uses Airbnb NYC numeric features, binary-feature boxplots, ICE panels, and conjoint plots for suspected interactions.
- What you can do after
- Apply PDPs through scikit-learn’s PartialDependenceDisplay to inspect a fitted XGBoost pipeline.
Also covered in
What to know first
- decision treeA decision tree is a tree-structured model or representation in which successive tests or choices lead through branches to outcomes, predictions, or actions.
Related concepts
- elasticity plotincludes · An elasticity plot shows how a model's predicted outcome changes as a price-related input is varied for a product or SKU.
- individual conditional expectation plotincludes · An individual conditional expectation plot shows how a model’s prediction changes for an individual observation as a feature varies.
- marginalizationused by · Marginalization is the operation of summing or integrating over variables or alternatives that are not retained to obtain a distribution or quantity for the remaining variables.
- black boxuses · A black box is a system or component whose internal workings are treated as opaque while its inputs, outputs, or observable behavior are considered.
Questions about partial dependence plot
What is partial dependence plot?
A partial dependence plot shows a model's average predicted response as selected features vary, averaging over the values of the remaining features.
Which Manning books explain partial dependence plot?
Ensemble Methods for Machine Learning and Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI.
What should I know before learning partial dependence plot?
Manning books that teach partial dependence plot usually introduce decision tree first.
What kinds of partial dependence plot are there?
Kinds of partial dependence plot include elasticity plot and individual conditional expectation plot.
What is partial dependence plot also called?
Partial dependence plot is also called PDPs.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

