Directions:

Question #1

In Lab 4 you worked with the nfl_sample dataset, which contained the outcomes of \(n=200\) randomly chosen NFL games played between 2018 and 2023. The R below loads these data and creates a new variable that records the combined score (home team score + away team score) for each game.

## Load data and create variable of interest
nfl_sample = read.csv("https://remiller1450.github.io/data/nfl_sample.csv")
nfl_sample$combined_score = nfl_sample$home_score + nfl_sample$away_score

\(~\)

Question #2

A regional US bank hypothesized that including photographs of people on its webpages would increase the rate at which prospective customers would complete a contact form to start the process of creating an account or requesting a loan with the bank, an outcome known as conversion. The bank ran a two-week test where webpage visitors were randomly routed to one of two landing pages, one featuring a smiling man or one showing a travel bag on a beach. Of the 3300 people routed to the page with the smiling man, 55 converted, while of the 3280 people routed to the page with the travel bag, only 44 converted.

\(~\)

Question #3

Researchers at Harvard Medical School conducted an experiment where infants born with congenital heart defects were randomly assigned to receive one of two different open-heart surgeries, low-flow bypass or circulatory arrest. Two years after the surgery, researchers followed up on each infant and assessed their development, measured by their MDI (mental development index) and PDI (psychomotor development index) scores. The data from this experiment are loaded into R by the code provided below:

ih_data = read.csv("https://remiller1450.github.io/data/InfantHeart.csv")