Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a simple code in MATLAB using the randi (or similar) function to simulate the rolling of a six sided die. 1. Plot the histogram

image text in transcribed

Write a simple code in MATLAB using the randi (or similar) function to simulate the rolling of a six sided die. 1. Plot the histogram of the outcome for one die rolling 10 times and 1000 times. Plot the CDF and PDF Calculate the mean and standard deviation of the single die roll outcomes and report them. 2. Now simulate rolling two dice 10 times and 1000 times. Plot the total of the dice roll as a histogram (sum die 1 and die 2). Plot the CDF and PDF. Calculate the mean and standard deviation of the sum of the dice roll for the two die outcomes and report them. 3. What can you say about the probabilities of outcomes in each case. What should the probabilities be for each of the faces (numbers) for the single die roll? What should the probabilities be for each of the combinations of the sum of the two dice roll? 4. What can you say about the sample means for each case: How do the sample means change as we increase the number of rolls? What should the mean be for the single die roll? What should the mean be for the sum of the two dice roll

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

Students also viewed these Databases questions

Question

=+ If strikes occur, are they legally regulated?

Answered: 1 week ago

Question

=+industrial action Under what circumstances can unions strike?

Answered: 1 week ago

Question

=+What forms of industrial action are common?

Answered: 1 week ago