All students attending class in the group can turn in a single document with each participants name. Students not attending class will need to complete their own lab.
Download the movies earnings dataset. In today’s lab, we are interested in using the budget of a film to estimate the earnings.
movies <- read_csv('http://math.montana.edu/ahoegh/teaching/stat446/movies_earnings.csv')
movies
Before looking at the data, summarize the relationship you expect between the budget of the film and the earnings.
A SRS of 100 movies has been taken for you from the dataset. Create a plot of earnings vs. budget for these movies. How does this figure match your expectations?
movies_sample <- movies %>% sample_n(100)
Report a point estimate of the population ratio B. Where does this show up on the graphic you created for problem 1?
Assume that you know the population mean for the movie budget,
xbar_U <- movies %>% summarize(mean(budget)) %>% pull()
using the 100 samples, calculate the mean earnings per film with both the SRS estimator and the ratio estimator.
Discuss which esimator from part 4 you prefer.