Question: help Question 5.11. Create a function called bootstrap_estimation, which takos in 4 inputs: - sample df. A Dataframe with a row for each element of

 help Question 5.11. Create a function called bootstrap_estimation, which takos inhelp
4 inputs: - sample df. A Dataframe with a row for each

Question 5.11. Create a function called bootstrap_estimation, which takos in 4 inputs: - sample df. A Dataframe with a row for each element of the original sample (Technical Challenge recipes posed by one or mere udoes . - juidges, a list of judge's names we want to compare, which can include any number of "Paul", "Mary', and 'Prue" - variable, the column name of the relevant variable, whose mean we want to estimate - repetitions, the number of repetitions to perform (j.e., the number of resamples to create) The function should adhere to these specifications: 1. The function should generate an overlaid histogram showing each of the specified judges' simulated means of the g ven variable. Make sure to ive your histogram a descriptive title and to use appropriate labels, Use bins =20,a1pha=0,5, and t igaize=(10, 5). 2. The function should print a statement with the 95% confidence interval for the mean value of the given variable for each of the secoified ludgen. Eeat the example below for the type of statement to print, but the exact formatting is up to you. 3. The function should return nothing. Hints: - This is designed to be a challenging question, but remember that you can use any of the functions you'vo already created. - Our solution uses an if -statement to assign columns named 'Mary_nenan_estinate'. 'Paul_mean_estimate', or 'Pref_mean_eftinatif. bootstrap_estimation(technical_challenge_recipes, ['Mary', 'Paul', 'Prue'], 'Dishes', 1000) Mary's 95\% CI for Dishes: [5.125, 7.063281249999999] Paul's 95\% CI for Dishes: [5.780487804878049, 7.658536585365853] Prue's 95% CI for Dishes: [8.1,13.3]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!