MTH214 Laboration 11

For this lab you should submit, on Blackboard, your .Rmd and .html-files at the end of the lab hour.

Linear Regression

The dataset cars can be loaded using data(cars). It contains data on speed (in mph) and stopping distance (in ft) from 50 experiments in the 1950s.

Task …

more ...

MTH214 Laboration 10

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Course Evaluations

Before you start with today's lab, do the course evaluation.

Two-way tables

Task Load the dataset HairEyeColor using the command data(HairEyeColor).

This data set is a 3-way …

more ...

MTH214 Laboration 9

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

One sample tests and confidence intervals

(Exercise 8.39) John Kerrich, while a prisoner of war during WW2, tossed a coin 10 000 times and obtained 5067 heads.

Task Is …

more ...

MTH214 Laboration 8

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour. Remember to skim your .docx file before submission.

Let's do some testing!

All commands and all conditions you need for this lab are covered in the Lecture Notes

UberX Earnings …

more ...

MTH214 Laboration 7

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Test objects and confidence interval values

We will learn how to perform different tests in the next couple of weeks. All of the functions we will learn produce a test …

more ...

MTH214 Laboration 6

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Tidyverse and data manipulation

In many cases, the data you load is not the data you need to work with. To actually work with your data, you may need to …

more ...

MTH214 Laboration 5

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Remember to describe and discuss all the tasks and not just show the results in isolation.

R implements a number of function for each random distribution. These have the general …

more ...

MTH214 Laboration 4

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

The dataset mpg contains car models with a range of features including engine volume, cylinder count, drive type, and mileages for city and highway driving.

Two-way and N-way tables

Commands …

more ...

MTH214 Laboration 3

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Chosen project dataset

Task First in this lab, load your dataset. Pick two numeric variables.

The lab instructions will use the iris dataset and the variables Petal.Length and Petal …

more ...

MTH214 Laboration 2

For this lab you should submit, on Blackboard, your .Rmd and .docx-files at the end of the lab hour.

Remember to choose Word Document as output format when you create the RMarkdown file for the lab report, and to add the lines

library(tidyverse)
library(ggformula)
library(mosaic)

to …

more ...

MTH214 Laboration 1

Summary

In this lab, which we'll do together, you'll load some datasets and do some basic calculations on them. For this first lab, we will jointly look over the first week's homework, and how to format it for submission. You'll turn in your lab report as an RMarkdown file, which …

more ...

MTH214 Laboration 12

For this lab you should submit, on Blackboard, your .Rmd and .html-files at the end of the lab hour.

This problem uses a dataset from a study on depression and coffee consumption in women (see OIS exercise 6.48). Let's load the dataset:

study <- read.csv("http://www.math …
more ...