Skip to main content

Introduction to Statistical Modeling in R

This course is designed to get you up to speed with the most important and powerful methodologies in statistics.

Start Course for Free
4 Hours10 Videos43 Exercises27,769 Learners3250 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Introduction Statistical Modeling in R is a multi-part course designed to get you up to speed with the most important and powerful methodologies in statistical modeling in R.

In In this introduction, we'll take a look at what statistical modeling is and what it's used for, R tools for model building, using models for prediction (and using prediction to test models), and how to account for the combined influences of multiple variables.This course has been written from scratch, specifically for DataCamp users. As you'll see, by using computing and concepts from machine learning, we'll be able to leapfrog many of the marginal and esoteric topics encountered in traditional 'regression' courses.

The intermediate course will get you up to speed with the most important and powerful methodologies in statistics.

  1. 1

    What is statistical modeling?


    This chapter explores what a statistical model is, R objects which build models, and the basic R notation, called formulas used for models.

    Play Chapter Now
    Welcome to statistical modeling!
    50 xp
    A mathematical model
    50 xp
    Running experiments on the toy model
    50 xp
    From experimental results to a prediction
    100 xp
    R objects for statistical modeling
    50 xp
    Accessing data
    100 xp
    Starting with formulas
    100 xp
    Graphics with formulas
    100 xp
  2. 2

    Designing, training, and evaluating models

    In this chapter, you'll start building models: specifying what variables models should relate to one another and training models on the available data. You'll also provide new inputs to models to generate the corresponding outputs.

    Play Chapter Now
  3. 3

    Assessing prediction performance

    This chapter is about techniques for deciding whether an explanatory variable improves the prediction performance of a model. You'll use cross validation to compare different models.

    Play Chapter Now
  4. 4

    Exploring data with models

    This chapter is about constructing models to explore masses of data, for instance to generate hypotheses about what factors are important in how a system works. You'll see how the recursive partitioning model architecture, which has an internal logic for selecting explanatory variables, can be used to explore potentially complex relationships among variables. The chapter also covers the evaluation of prediction performance in models where the response variable is categorical, that is, models used for classification.

    Play Chapter Now
  5. 5

    Covariates and effect size

    Real-world systems are complicated. To faithfully reflect that complexity, models can incorporate multiple explanatory variables. This chapter introduces the notion of covariates and how they allow you to model the effect of an explanatory variable while taking into account the effects of other variables.

    Play Chapter Now


Ran twice100 Runners


n10iNick CarcheditommyjeeTom Jeon
Daniel Kaplan Headshot

Daniel Kaplan

DeWitt Wallace Professor at Macalester College

Danny is the DeWitt Wallace Professor of Mathematics, Statistics, and Computer Science at Macalester College in Saint Paul, Minnesota. At Macalester, he has developed the introductory sequence in calculus and statistics as well as an introduction to computing for scientists. He’s co-authored the mosaic R package and written several textbooks: Understanding Nonlinear Dynamics, Introduction to Scientific Computation and Programming, and Statistical Modeling: A Fresh Approach.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA