Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

# Supervised Learning in R: Regression

via DataCamp

### Overview

In this course you will learn how to predict future events using linear regression, generalized additive models, random forests, and xgboost.

From a machine learning perspective, regression is the task of predicting numerical outcomes from various inputs. In this course, you'll learn about different regression models, how to train these models in R, how to evaluate the models you train and use them to make predictions.

### Syllabus

• What is Regression?
• In this chapter we introduce the concept of regression from a machine learning point of view. We will present the fundamental regression method: linear regression. We will show how to fit a linear regression model and to make predictions from the model.
• Training and Evaluating Regression Models
• Now that we have learned how to fit basic linear regression models, we will learn how to evaluate how well our models perform. We will review evaluating a model graphically, and look at two basic metrics for regression models. We will also learn how to train a model that will perform well in the wild, not just on training data. Although we will demonstrate these techniques using linear regression, all these concepts apply to models fit with any regression algorithm.
• Issues to Consider
• Before moving on to more sophisticated regression techniques, we will look at some other modeling issues: modeling with categorical inputs, interactions between variables, and when you might consider transforming inputs and outputs before modeling. While more sophisticated regression techniques manage some of these issues automatically, it's important to be aware of them, in order to understand which methods best handle various issues -- and which issues you must still manage yourself.
• Dealing with Non-Linear Responses
• Now that we have mastered linear models, we will begin to look at techniques for modeling situations that don't meet the assumptions of linearity. This includes predicting probabilities and frequencies (values bounded between 0 and 1); predicting counts (nonnegative integer values, and associated rates); and responses that have a non-linear but additive relationship to the inputs. These algorithms are variations on the standard linear model.
• Tree-Based Methods
• In this chapter we will look at modeling algorithms that do not assume linearity or additivity, and that can learn limited types of interactions among input variables. These algorithms are *tree-based* methods that work by combining ensembles of *decision trees* that are learned from the training data.

### Taught by

John Mount and Nina Zumel

## Reviews

4.2 rating at DataCamp based on 13 ratings

Start your review of Supervised Learning in R: Regression

### Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.