Question: Need matlab code as the answer Part C (10 points): Binomial probability 1. Calculate the probability of rolling a four sided die five times and

Need matlab code as the answer
Part C (10 points): Binomial probability 1. Calculate the probability of rolling a four sided die five times and rolling three "1" s. Use binopdf. Then calculate the probability using the formula bigp. Include your probability results in the comments. Compare your results. bigpfactorial (nnn)/factorial (xxx)/factorial(nnn-xxx) 2. Using the function nchoosek to estimate the binomial coefficient for rolling a four sided die five times and rolling three "1" s. Then compare the result with the explicit formula for the binomial coefficient. What does the binomial coefficient represent? bin-coeffe factorial (nnn) /factorial (xxx) /factorial (nnn-xxx) 3. Calculate the probability of rolling a four sided die five times and obtaining a role of "1" three times in a row. (Hint: consider the unique ways that the 5 rolls can lead to three "1s" in a row and how this number compares to the bin_coeff.) Is this the same as the probabilities in question 1? Part C (10 points): Binomial probability 1. Calculate the probability of rolling a four sided die five times and rolling three "1" s. Use binopdf. Then calculate the probability using the formula bigp. Include your probability results in the comments. Compare your results. bigpfactorial (nnn)/factorial (xxx)/factorial(nnn-xxx) 2. Using the function nchoosek to estimate the binomial coefficient for rolling a four sided die five times and rolling three "1" s. Then compare the result with the explicit formula for the binomial coefficient. What does the binomial coefficient represent? bin-coeffe factorial (nnn) /factorial (xxx) /factorial (nnn-xxx) 3. Calculate the probability of rolling a four sided die five times and obtaining a role of "1" three times in a row. (Hint: consider the unique ways that the 5 rolls can lead to three "1s" in a row and how this number compares to the bin_coeff.) Is this the same as the probabilities in question 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
