Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedhelp
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions