Reader small image

You're reading from  The Statistics and Machine Learning with R Workshop

Product typeBook
Published inOct 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781803240305
Edition1st Edition
Languages
Right arrow
Author (1)
Liu Peng
Liu Peng
author image
Liu Peng

Peng Liu is an Assistant Professor of Quantitative Finance (Practice) at Singapore Management University and an adjunct researcher at the National University of Singapore. He holds a Ph.D. in statistics from the National University of Singapore and has ten years of working experience as a data scientist across the banking, technology, and hospitality industries.
Read more about Liu Peng

Right arrow

Introducing principal component analysis

When building an ML model, the dataset that’s used to train the model may have redundant information in the predictors. The redundancy in the predictors/columns of the dataset arises from correlated features in the dataset and needs to be taken care of when using a certain class of models. In such cases, PCA is a popular technique to address such challenges as it reduces the feature dimension of the dataset and thus shrinks the redundancy. The problem of collinearity, which says that two or more predictors are linearly correlated in a model, could thus be relieved via dimension reduction using PCA.

Collinearity among the predictors is often considered a big problem when building an ML model. Using the Pearson correlation coefficient, it is a number between -1 and 1, where a coefficient near 0 indicates two variables are linearly independent, and a coefficient near -1 or 1 indicates that two variables are linearly related.

When two...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The Statistics and Machine Learning with R Workshop
Published in: Oct 2023Publisher: PacktISBN-13: 9781803240305

Author (1)

author image
Liu Peng

Peng Liu is an Assistant Professor of Quantitative Finance (Practice) at Singapore Management University and an adjunct researcher at the National University of Singapore. He holds a Ph.D. in statistics from the National University of Singapore and has ten years of working experience as a data scientist across the banking, technology, and hospitality industries.
Read more about Liu Peng