Module # 6 Assignment
Module # 6 Assignment Part A. a) To compute the mean of the population, you sum up all the values and divide by the total number of values: Population mean = (8 + 14 + 16 + 10 + 11) / 5 = 59 / 5 = 11.8 b) You can use the sample() function in R to randomly select a sample of size 2 from the population, such as this one: population <- c(8, 14, 16, 10, 11) sample_size <- 2 sample_data <- sample(population, size = sample_size) c) To compute the mean and standard deviation of the sample: members <- c(3, 5, 2, 1) sample_size <- 2 sample_data <- sample(members, size = sample_size) sample_data Sample Mean = 9.5 Sample Standard Deviation = 2.12 d) The sample mean (9.5) is lower than the population mean (11.8). This suggests that, on average, the sample is purchasing fewer ice creams during the academic year compared to the entire population. Part B. Does the sample proportion p have approximately a normal distribution? The sample proportion, denoted as p̂ (p-hat), has an...