C5 - Instructions

Instructions for chapter 5: “Regression Models”

Introduction

In this chapter you will learn how to and how to work with their results

To meet this chapter’s learning objectives, please complete the respective exercise sheet. The instructions below will guide you through the process of solving the exercise sheet.

Getting ready

Step 1

Briefly check out the exercise sheet for chapter 5 to get an impression of what you need to learn/know to solve it.

Step 2

Solve task 1-7 of the exercise sheet.

Comment: Tasks 4-7 are identical to tasks 4-7 from the Chapter 4 exercise sheet. To save time, you could copy and paste from the respective solution.

Linear Regression

Step 3

Watch the following Video: Simple Linear Regression

Comment: In our opinion, the video describes the basic idea behind linear regression models pretty good. If you are familiar with linear regression models, you can also skip this video. Those who have struggled with understanding linear regression models in the past might benefit from watching this video, though.

Step 4

Read subchapter 15.1 from “YaRrr! The Pirate’s Guide to R”: The Linear Model

Step 5

Read subchapters 15.2 and 15.2.1 from “YaRrr! The Pirate’s Guide to R”: Estimation with lm()

Step 6

Solve tasks 8-9 of the exercise sheet.

Fitted Values and Residuals

Step 7

Read subchapter 15.2.2 from “YaRrr! The Pirate’s Guide to R”: Getting Model Fits

Solve tasks 10-12 of the exercise sheet.

Prediction

Step 8

Read subchapters 15.2.3 from “YaRrr! The Pirate’s Guide to R”: Prediction

Solve tasks 13-14 of the exercise sheet.

Extracting Coefficients

Step 9

Watch the following Video: Extract Regression Coefficients

Solve task 15 of the exercise sheet.

Logistic Regression

Step 10

Watch the following Video: Introduction to Logistic Regression

Comment: This video describes the rational behind logistic regression. If you are already familiar with this topic, you can save time by skipping. For everybody who has doubts regarding their logistic regression skills this video might be very helpful.

Step 11

Read subchapters 15.4 and 15.5 from “YaRrr! The Pirate’s Guide to R”: Logistic Regression

Comment: In subchapter 15.5, only the first part about logistic regression is relevant.

Step 12

Solve Task 16-18 of the exercise sheet.

Step 13

Compare your solutions to the sample solution for exercise sheet 5.