10.2 Intuition
In essence, a CP profile shows the dependence of the conditional expectation of the dependent variable (response) on the values of the particular explanatory variable.
Figure 10.1 Panel A presents a 3D visualization, where \(x\) is the
age
, \(y\) is the response (prediction probability), and \(z\) is theclass
factor for the ‘titanic_lmr’ logistic regression model.In the same figure, Panel B illustrates CP profiles for individual variables, age (continuous) and class (categorical).
![Source: Figure 10.1](img/10-cp-profiles/profile_age_class.png)
Source: Figure 10.1