Sally averages 5 strokes a hole when she plays golf one day


Question: 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.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Sally averages 5 strokes a hole when she plays golf one day
Reference No:- TGS02924801

Now Priced at $40 (50% Discount)

Recommended (99%)

Rated (4.3/5)