Module 07 of 10

Statistics & Modeling

Lessons

About This Module

R was built for statistics, and this module shows why. You'll start with hypothesis testing, using functions like t.test() to compare groups and interpret p-values and confidence intervals, then move on to linear regression with lm() to describe how one variable relates to another.

You'll learn to read model output with summary(), plot a fitted regression line, and check the assumptions behind your model so you know whether to trust it. The lessons mix short demonstrations of individual tests with longer walkthroughs of complete models.

Watch the lessons in order, then continue on to Functional Programming & Performance.

Lessons

4 videos
01

Hypothesis testing in R

A short demonstration of how to run a hypothesis test in R with the t.test command and read its result.

02

Performing a basic t-test and linear regression in R

Shows how to perform an independent samples t-test and a linear regression in R, side by side on the same kind of data.

03

Statistics with R (1) - Linear regression

Fits a linear regression model with the lm() command, then shows how to plot the regression line over the data.

04

Testing Assumptions Linear Regression in R

Explains how to test the assumptions behind linear and multiple regression in R, so you can judge whether a model can be trusted.