1. Learn
  2. /
  3. Courses
  4. /
  5. Feature Engineering in R

Exercise

Percent of variance explained

From the pca_output, you can retrieve the standard deviation explained by each principal component. Then, use these values to compute the variance explained and the cumulative variance explained, and glue together these values into a tibble.

The pca_output object is loaded for you.

Instructions

100 XP
  • Calculate percentage of variance explained leveraging the standard deviation vector.
  • Create a tibble with principal components, variance explained and cumulative variance explained.