Question: MATLAB EQUATION coinbin.m CODE 2 Binomial Random Variable 1. Download the MATLAB file coinbin.m from the course web page. The file contains a program that
MATLAB

EQUATION

coinbin.m CODE

2 Binomial Random Variable 1. Download the MATLAB file coinbin.m from the course web page. The file contains a program that simulates the tossing of n coins and counts the number of heads that occur. The user enters the number of coins, the probability of heads, and the number of trials. In this case you specify n 10 p 0.5 (a fair coin), and 10000 (or higher) trials. 2. Provide a representative histogram of the coin tossing experiment. Label your histogram and include 3. Compare your experimental results with those obtained from Equations (4), (5), and (6). Provide your 4. Repeat Steps 1, 2, and 3 for p 0.3 while keeping the other input parameters unchanged. a printout in your report. comparisons in tabular form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
