Using R or R-studio. 3. A fair coin is tossed until the first head occurs. Do this experiment T = 10; 100; 1,000; 10,000 times in R, and plot the relative frequencies of this occurring at the ith toss, for suitable values of i. Compare this plot to the pmf that should govern such an experiment. Show that they converge as T increases. What is the expected number of tosses required? For each value of T, what is the sample average of the number of tosses required? (Hint: a “while” loop may be preferred to a ”for” loop in this problem).
Get Answers For Free
Most questions answered within 1 hours.