## Slides for Nick’s STATS 250 Labs - Fall 2020

PDF versions of the slides are available on our Lab Resources page on Canvas.

All materials © 2020 Nicholas J. Seewald

### Introduction Video

Welcome to STATS 250 Lab! Please watch this video for details on lab policy and logistics.

### Quick Links

Jump to a specific lab by clicking the appropriate link:

[Lab 1: Getting Started with R]
[Lab 2: Basics of Data with R]
[Lab 4: Probability and Scatterplots]

### Lab 1: Getting Started with R

Lab materials for the week of August 31, 2020

#### Statistical Learning Goals

- Learn how to visualize categorical data in a bar chart
- Learn how to summarize quantitative and categorical data

#### R Learning Goals

- Learn the difference between R, RStudio, and R Markdown
- Become familiar with the RStudio interface
- Understand key components of an R Markdown document
- Become familiar with R functions and arguments

#### Slides

### Lab 2: Basics of Data with R

Lab materials for the week running Friday 9/4 - Friday 9/11. *All labs are asynchronous due to Labor Day.*

#### Statistical Learning Objectives

- Understand the structure of data (observations and variables)
- Think about the scope of a data set: what questions can and cannot be answered with a particular data set?

#### R Learning Objectives

- Learn how to “assign” information to “objects” in R
- See how R “reads in” a data set from a file
- Be able to identify the names of variables contained in a data set
- Make a frequency table for one or two variables

#### Slides

### Lab 3: No materials available due to GEO strike

### Lab 4: Probability and Scatterplots

Lab materials for the week running Friday 9/18 - Friday 9/25.

#### Statistical Learning Objectives

- Sampling with replacement versus sampling without replacement
- The Law of Large Numbers and expected values
- Scatterplots with linear associations
- The correlation coefficient

#### R Learning Objectives

- Creating a sequence of integers between two values.
- Learning how to randomly sample from a set, with replacement or without replacement.
- Creating a plot of (x,y) quantitative values.
- Finding the correlation coefficient between two quantitative variables.

#### Slides