Week 4

Random variables & binomial distribution and Exam 1
Published

October 20, 2025

Modified

October 29, 2025

Overview of Week 4

Mon: Day 6

  • Random variables: Section 3.1
  • Binomial distribution: Section 3.2
  • Day 6 Practice Problems
    • See new PP section below

Wed: Exam 1

Slides & Recordings

Day Topic Slides: html Slides: pdf Slides: web-page Slides with notes Recording Link Duration Code: qmd Code: html
Calculating probabilities in R
6 Random Variables (3.1.1-3.1.3) Day 6: slides 1-6 Day 6 Part 1 24 min
Linear combinations of RV’s (3.1.4) Day 6: slides 7-10 same same Day 6 Part 2 14 min
Binomial dist (3.2) Day 6: slides 11-15 same same Day 6 Part 3 27 min

Practice Problems

Day 6

  • Day 6 Practice Problems
    • From slides:
      • Example 3.11 on pg 6 of slides
      • Example 3.17 parts (1) - (3) on pg 10 of slides
        • Hint: If you are unsure how to define the random variable T, take a look at how we defined the random variable M in example 3.16 for the amount of money one gets from 3 rolls of a die.
      • Example 3.22 parts (1) and (2) on pg 14 of slides

Class discussion

During class you will be working in groups discussing the following:

Day06

  • Practice Problems listed above
  • Part (4) of Example 3.17 on pg 10 of slides
  • From HW 3
    • Book exercises
      • 3.4, 3.8
    • Non-book exercise
      • NB 1
  • If you want some R practice, try the following:
    • Example 3.3 on pg 2 of slides
      • Write R code to calculate the expected value by defining vectors in R with the relevant values and then doing the appropriate calculations with the vectors.
      • Hint: start with x <- 1:6.
    • Example 3.10 on pg 5 of slides
      • Write R code to calculate the variance and standard deviation by defining vectors in R with the relevant values and then doing the appropriate calculations with the vectors.

Homework

  • HW 3 v2 covers Days 6 - 9 and is due on Sat, 11/1
  • Make sure to check out the calculating probabilities in R code file: qmd, html
  • Note: the answer to exercise 3.31(b) in the textbook (not assigned) is incorrect.

Exam 1 information

  • Exam 1 will be on Wed, Oct. 22nd
  • Samples of past exam questions and answers (on Sakai)
  • Material will cover Days 1-5,
    • which is approximately Chapters 1 & 2 from the textbook.
  • The exam will be in-class and handwritten. Bring a calculator.
  • You may bring one page of notes on an 8.5” x 11” sheet of paper.
    • You may use both sides.
    • You may type your notes.
    • You may not use screenshots of the notes or textbook
    • You will be turning in the page of notes with the exam, so please add your name to the sheet.