Love Island lm() Project Autograder

Check each answer as you go. The page will only show Correct or Incorrect. When you are done, download a completion PDF.

If you worked alone, put your name on the first line.

Question 1: Statistics Review

Scenario: a lottery ticket has a 90% chance of winning nothing and a 10% chance of winning $1000.

1(a)

What are the potential outcomes? (Fill in both blanks.)

Not checked

1(b)

What are the probabilities of each outcome? (Fill in both blanks.)

Not checked

1(c)

What is the expected value? $E[X] = \sum_i x_i p_i$.

Not checked

1(d)

What is the variance? $\mathrm{Var}(X) = \sum_i (x_i - E[X])^2 p_i$.

Not checked

1(e)

You buy 20 tickets and win $1000 one time out of 20. What is your estimate of the expected value (sample mean)?

Not checked

1(f)

Based on your 20 tickets, what is your estimate of the variance? Use $\frac{1}{n-1}\sum_i (x_i - \bar{x})^2$.

Not checked

1(g)

Fill in each blank.

Not checked

Question 2: Dplyr

2(a)

Out of the three seasons, how many people won (got third place, runner up, or winner)?

Not checked

2(b)

What is the minimum, maximum, and median age of contestants?

Not checked

2(c)

Are male contestants, on average, older than female contestants?

Not checked

2(d)

What are the three most common professions among contestants?

Not checked

2(e)

Two most common professions for female contestants and two for male contestants.

Not checked

2(f)

What region of the UK are most of the contestants from?

Not checked

Question 3: ggplot2

Paste the code you used to draw the plot.

Not checked

Question 4: lm and hypothesis tests

4(a)

Paste the code you used to fit the model.

Not checked

4(b) Interpretation

Fill in the blanks.

Not checked

4(b) Hypothesis test for age

Not checked

4(c) lm: day_joined

Fill in the blanks.

Not checked

Overall

Score: Not graded
Timestamp: Not graded

The completion PDF is a bullet summary of what you learned in this assignment.