Question: Simulate a fair coin toss over 100 trials a. Count the frequency of heads and tails and plot as a histogram, does this make
Simulate a fair coin toss over 100 trials a. Count the frequency of heads and tails and plot as a histogram, does this make sense? b. Calculate the relative frequencies per trial, i.e. the percentage of heads seen to date and the percentage of tails seen to date. c. Plot these relative frequencies. d. What do these tend towards, is this expected behaviour and what can you compare it with? e. Based on this simulation, simulate an unfair coin toss with P(X = H) = 0.7, P(X = T) = 0.3
Step by Step Solution
3.34 Rating (148 Votes )
There are 3 Steps involved in it
To solve this problem follow these steps a Count the frequency of heads and tails and plot as a histogram 1 Simulate 100 Trials Use a random number generator to simulate 100 coin tosses for a fair coi... View full answer
Get step-by-step solutions from verified subject matter experts
