Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Statistics Cookbook

You're reading from  R Statistics Cookbook

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789802566
Pages 448 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Francisco Juretig Francisco Juretig
Profile icon Francisco Juretig

Table of Contents (12) Chapters

Preface Getting Started with R and Statistics Univariate and Multivariate Tests for Equality of Means Linear Regression Bayesian Regression Nonparametric Methods Robust Methods Time Series Analysis Mixed Effects Models Predictive Models Using the Caret Package Bayesian Networks and Hidden Markov Models Other Books You May Enjoy

Robust principal components

In this recipe, we will work with robust principal components. Principal components are used to project data into a smaller subspace that is easier to work with. It is probably the most important dimensionality reduction technique.

Analyzing and working with lots of features is usually complicated for two main reasons:

  • It's difficult to find patterns between them, because combinations of them might be relatively correlated.
  • Modeling variables to predict another variable sometimes carries a significant amount of noise. Ideally, we would like to compress some of the information contained in the data in order to have a simpler model.

In order to introduce principal components, let's review a basic example. Let's assume we have a football and rugby score for some students:

Person

Football

Rugby

John

10

8

Michael

3...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}