Preliminaries This file should be in STAT240/homework/hw05 on your local computer. Download Cameron_Lectures_SP24.csv to STAT240/data . Download ggprob.R to STAT240/scripts if you have not already done so. Problem 1 Apgar scores are a test of newborn babies’ health immediately after being born, on a scale from 0 to 10. Most babies score 7 or higher. The distribution of Apgar scores is shown below, with the probability of a baby scoring a perfect 10 removed.
Problem 2
b) What is the variance of this distribution?
c) What is the standard deviation of this distribution?
Problem 3 For each of the real life scenarios described below, state whether you would treat the random variable as discrete or continuous and briefly explain why. Replace this text with your response Replace this text with your response Problem 4
Problem 5 Our goal in this problem is to calculate the percentages associated with each of the five bars in the above histogram. First, create a new variable called base_minutes by “truncating” total_minutes by using the floor() function. This is effectively just cutting the decimal off, which is different than rounding; 49.4, 49.9, 50.1, 50.8 will become 49, 49, 50, 50. Then, create a dataframe with one row for each different value of base_minutes , and a column n for how many times that value of base_minutes occurs. Finally, create a percent variable by dividing n by the total number of lectures. Let this dataframe print as output, no need to save it in a new variable name.
Problem 6 Replace this text with your response Replace this text with your response Problem 7
Does our original model still seem reasonable? Briefly explain your reasoning. Note: This question is about the ability to construct an argument, either yes or no could be justified! Replace this text with your response Problem 8 a)
You should find that Cameron wore a navy colored shirt in 36.8% of SP24 lectures. b) Is it valid to guess that approximately 36.8% of all Cameron’s shirts he owns are navy-colored? Briefly explain your reasoning. Replace this text with your response