Log inStart free
LESSON 4.59 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Partial dependence and ICE plots

Watch one feature move through a model, house by house, then on average.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.59 · EXPLAIN BAYHOUSE 57 · PREDICTED 172.2 K$
01
Stage 1 of 6 · One row
The model reads training house 57. It predicts 172.2 k$.
Explain it simply

The card shows one training house, number 57. It has 80 square metres, sits 5 kilometres out and is 5 years old. The model reads these four numbers and gives one price, 172.2 thousand dollars. On the plot, the dot marks that price at the house's own size.

A card shows house 57 with four features. An arrow leads to the model and the prediction, 172.2 k$.

ICE lines (dot = the house's own value)z, the value setprediction, PDtrue price ruleoff the data
one house into the model5060708090100110120130140150050100150200250300350size (m²)predicted price (k$)f(house 57) = 172.2 k$predictions as one feature movestraining house 57 · 168 k$size80 m²distance5 kmage5 yrhouse number57model: 30 boosted treesprediction 172.2 k$one house into the model5060708090100110120130140150050100150200250300350size (m²)predicted price (k$)f(house 57) = 172.2 k$predictions as one feature movestraining house 57 · 168 k$size80 m²distance5 kmage5 yrhouse number57model: 30 boosted treesprediction 172.2 k$
Toy: 24 training houses, 4 features, 30 boosted trees or a linear fit
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
f^(x(57))\sy{f}{out}{\hat f}(\sy{x}{data}{x^{(57)}})
f^(x(57))=172.2\hat f(x^{(57)}) = 172.2

The model's price for house 57.

Common mix-ups

MYTHThe PD line shows how every house responds.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01For size, with a linear model, do the 24 ICE lines cross, or do they stay parallel?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.