Assignment Date: Friday, Sept. 26, 2025
Due Date: Friday, Oct. 10, 2025
Lecture slides are available through Dropbox here.
Code for binomial simulations, tabulation, and plotting is provided below:
library(tidyverse)
n_experiments <- 30
n_tosses_per_experiment <- 5
prob_tails <- 0.5
data.frame(ntails = rbinom(n_experiments, n_tosses_per_experiment, prob_tails)) %>%
count(ntails) %>%
ggplot(aes(x = ntails, y = n)) +
geom_bar(stat = "identity")
As always, before you do anything else, create a week3
directory in your qbb2025-answers
directory for this assignment.