Book Image

Hands-On Data Science with R

By : Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias
Book Image

Hands-On Data Science with R

By: Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias

Overview of this book

R is the most widely used programming language, and when used in association with data science, this powerful combination will solve the complexities involved with unstructured datasets in the real world. This book covers the entire data science ecosystem for aspiring data scientists, right from zero to a level where you are confident enough to get hands-on with real-world data science problems. The book starts with an introduction to data science and introduces readers to popular R libraries for executing data science routine tasks. This book covers all the important processes in data science such as data gathering, cleaning data, and then uncovering patterns from it. You will explore algorithms such as machine learning algorithms, predictive analytical models, and finally deep learning algorithms. You will learn to run the most powerful visualization packages available in R so as to ensure that you can easily derive insights from your data. Towards the end, you will also learn how to integrate R with Spark and Hadoop and perform large-scale data analytics without much complexity.
Table of Contents (16 chapters)

What about regressions?

All of the models we've seen so far could also be set to tackle regression problems and not only classification problems. In order to do so, the only thing that we would need to do is to start the formulas with a continuous variable then. Instead of the regular vote ~ ., we would use <some continuous variable's name> ~ <independent variable #1> + <...> + <independent variable #n>.

A misspecified model is either missing important (left out) variables, adding unimportant (irrelevant) variables, or both.

The dot sign shortcut still works for regression problems, but it's probably best to name each variable by name. This way you pay more attention to which variables you are using. Depending on the model you train and sampling size, misspecification will badly injury the out-of-sample performance, in other words, your model...