Question: Question 4.2 . First, simulate 5000 bootstrap resamples of the positive review percentages. For each bootstrap resample, calculate the resample mean and store the

Question 4.2 . First, simulate 5000 bootstrap resamples of the positive review percentages. For each bootstrap resample, calculate the resample mean and store the resampled means in an array called resample_positive_percentages Then, plot a histogram of the resampled means. resample_positive_percentages = make_array() P]: for i in np.arange( 5000): =True) resample = reviews sample( 5, with_replacement resample_avg_positive = np. mean(resample column( 0)) resample_positive_percentages _resample_avg_positive) # Do NOT change these lines. = np.append(resample_positive_percentages, (Table() with_column( "Average % of Positive Reviews in Resamples" resample_positive_percentages) . hist( "Average % of Positive Reviews in Resamples" ))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
