Question
Simulate 10,000 bootstrap resamples of the proportion of positive results from the GoodReads reviews. For each bootstrap resample, calculate the proportion of positive reviews and
Simulate 10,000 bootstrap resamples of the proportion of positive results from the GoodReads reviews. For each bootstrap resample, calculate the proportion of positive reviews and store the resampled proportions in an array called resamples_positive_prop. Then, plot a histogram of the resampled proportions.
[ ]:
resamples_positive_prop = make_array()
for i in np.arange(10000):
resample2 = ...
resample2_positive_prop = ...
resamples_positive_prop = ...
# Do NOT change these lines.Table().with_column( "Average Proportion of Positive Reviews in Resamples", resamples_positive_prop).hist("Average Proportion of Positive Reviews in Resamples", bins = np.arange(0.65, 0.95, 0.01))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started