Question: Write a program that simulates coin tossing. The probability of heads in your coin toss experiment is p, where p is equal to the sum

Write a program that simulates coin tossing. The probability of heads in your coin toss experiment is p, where p is equal to the sum of the last 4 digits of your RUID divided by 36. Generate a figure which plots the frequency of heads f(n) in n tosses where f is shown on the y-axis and n is on the x-axis. The frequency of heads function, f(n) is computed as the number of heads observed within n trials divided by n. See the example below.

Proportions of Heads 1 0.8- 0.6 0.4 0.2 % 0 0 0Figure: https://www.probabilitycourse.com/chapter12/chapter12.php

Proportions of Heads 1 0.8- 0.6 0.4 0.2 % 0 0 0 D Q T 10 Q 20 30 40 50 60 Coin Toss Number 000000000000000000000000 70 80 I 90 100

Step by Step Solution

3.39 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!