Discovering correlated predictors
Correlated predictor variables provide redundant information and can negatively impact the model fitting process. When two variables are highly correlated, their values change linearly with each other and hence provide the same information to your machine learning algorithms. This phenomenon is know as multicollinearity.
Before beginning the model fitting process, it's important to explore your dataset to uncover these relationships and remove them in your feature engineering steps.
In this exercise, you will explore the telecom_training dataset by creating a correlation matrix of all the numeric predictor variables.
The telecom_training data has been loaded into your session.
Deze oefening maakt deel uit van de cursus
Modeling with tidymodels in R
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
telecom_training %>%
# Select numeric columns
___(___) %>%
# Calculate correlation matrix
___