Sally averages 5 strokes a hole when she plays golf. One day, she took 40 strokes to complete the first nine holes. Her partner conjectured that she would probably regress to the mean and take 50 strokes to complete the next nine holes. Do you agree with her partner? Needs to be shown in Python code...
(1) Make sure to import random and pylab;
(2) Consider defining strokes to return a random choice among the values: 3, 4, 5, 6 and 7;
(3) Consider defining holes (9 of them for this problem);
(4) Consider defining a loop that can loop through a large number of games;
(5) Then plot your strokes.
This assignment has been answered 4 times in private sessions.
Or buy a ready solution below.
© 2021 Codify Tutor. All rights reserved