Write a MATLAB program to simulate the following experiments. (a) Draw a dice 100 times. That...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a MATLAB program to simulate the following experiments. (a) Draw a dice 100 times. That is, generate a sequence of 100 random numbers from the set {1,...,6}. Call this sequence X,..., X100. Plot the histogram of X,..., X100, with bin centers {1,...,6}. Do not use a for-loop in your code. Submit your program and plot. (b) Repeat (a) by drawing the dice 10000 times. (c) Draw another dice 100 times. Call this sequence Y,..., Y100. Let Z = Xi+Y for i = 1,..., 100. Plot the histogram of Z, ..., Z100. Submit your plot. (d) Repeat (d) by drawing the dices 10000 times. (e) Using the histogram found in (d), find the probability that 4 < Zi 7. (f) In (c)-(d), Z, is a sum of two random variables X and Y. What if we sum more random variables? That is, Zi = X() + X(). +...+X(K). Let K = 10. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers. (g) Repeat (f) by setting K = 100. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers. Write a MATLAB program to simulate the following experiments. (a) Draw a dice 100 times. That is, generate a sequence of 100 random numbers from the set {1,...,6}. Call this sequence X,..., X100. Plot the histogram of X,..., X100, with bin centers {1,...,6}. Do not use a for-loop in your code. Submit your program and plot. (b) Repeat (a) by drawing the dice 10000 times. (c) Draw another dice 100 times. Call this sequence Y,..., Y100. Let Z = Xi+Y for i = 1,..., 100. Plot the histogram of Z, ..., Z100. Submit your plot. (d) Repeat (d) by drawing the dices 10000 times. (e) Using the histogram found in (d), find the probability that 4 < Zi 7. (f) In (c)-(d), Z, is a sum of two random variables X and Y. What if we sum more random variables? That is, Zi = X() + X(). +...+X(K). Let K = 10. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers. (g) Repeat (f) by setting K = 100. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers. Write a MATLAB program to simulate the following experiments. (a) Draw a dice 100 times. That is, generate a sequence of 100 random numbers from the set {1,...,6}. Call this sequence X,..., X100. Plot the histogram of X,..., X100, with bin centers {1,...,6}. Do not use a for-loop in your code. Submit your program and plot. (b) Repeat (a) by drawing the dice 10000 times. (c) Draw another dice 100 times. Call this sequence Y,..., Y100. Let Z = Xi+Y for i = 1,..., 100. Plot the histogram of Z, ..., Z100. Submit your plot. (d) Repeat (d) by drawing the dices 10000 times. (e) Using the histogram found in (d), find the probability that 4 < Zi 7. (f) In (c)-(d), Z, is a sum of two random variables X and Y. What if we sum more random variables? That is, Zi = X() + X(). +...+X(K). Let K = 10. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers. (g) Repeat (f) by setting K = 100. Plot the histogram of {Z,..., Z10000}. Submit your histogram. Pay attention to the bin centers.
Expert Answer:
Answer rating: 100% (QA)
It seems youre looking to simulate dice rolls and analyze the resulting random variables in MATLAB H... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
The effect of a change in accounting principle that is inseparable from the effect of a change in accounting estimate should be reported a. By restating the financial statements of all prior periods...
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
A trader has made a sale of Rs.75,500 out of which cash sales amounted to Rs.25,500. He showed trade receivables on 31-3-2014 at Rs.25,500. Which concept is followed by him? a) Going concern b) Cost...
-
Izabela Jach opened a medical office under the name Izabela Jach, MD, on August 1, 2017. On August 31, the balance sheet showed Cash $3,000; Accounts Receivable $1,500; Supplies $600; Equipment...
-
The probabilities that a bakery has a demand for 2, 3, 5, or 7 birthday cakes on any given day are 0.35, 0.41, 0.15, and 0.09, respectively.
-
Identify a study that has been done (or should be done) to improve the safety of car drivers and passengers. Briefly describe the importance of statistics to the study.
-
The Ramirez Company's last dividend was $1.75. Its dividend growth rate is expected to be constant at 25% for 2 years, after which dividends are expected to grow at a rate of 6% forever. Its required...
-
Let x(t) be a periodic signal whose complex exponential Fourier series coefficient are Dn 2 n = 0 otherwise Compute the average power of the signal x(t), How you can find the periodic signal x(t)...
-
The nation of Hyperbole is in a recession, and the government decides to increase taxes and reduce government spending to reduce the growing deficit. This will ________ aggregate demand and will...
-
The isosceles trapezoid SEND have the diagonals NS =9x-4 and DE=3x+2. What is the measurement of NS?
-
2. Random returns for two well-diversified portfolios at time t are given by: At 0.27+2F1t + 0.8F2t rBt = 0.161+Ft+1.1F2t, where F1 and F2 are unexpected parts of factor 1 and 2 returns,...
-
Tuden (t)/(d)ashboar (d)/(h)ome Triangles ABD and ACE are similar right triangles. Which best describes how to find the equation of the line?
-
Memo to the File: I have investigated the possibility of related parties associated with Plowshare. I supposed that research would identify potential related parties, so I searched for sales with...
-
Can you please confirm how you would describe the information below if you were selling an Energy Drink Target Customers-Who would be your target audience Product- Product description Location...
-
1. Conduct research about the changes that have taken place in the Hospitality or Tourism industry over the last 5 years
-
The Zwatch Company manufactures trendy, high-quality moderately priced watches. As Zwatch's senior financial analyst, you are asked to recommend a method of inventory costing. The CFO will use your...
-
Consider non-ideal liquid phases where the activity coefficient is given by the one-parameter model The saturation pressure of species 1 is 800 mm Hg, and the saturation pressure of species 2 is 1000...
-
Write the determinant of the following 33 matrix A as a sum of the determinants of 2 2 matrices using co-factor expansion on the second row (i = 2): A = 635 215 23 2
-
Use Romberg integration to compute the integral from Example 8.8. Example 8.8 Use the multiple trapezoidal rule to determine how the error in the integral depends on the number of trapezoids. = 1/2 s...
-
This chapter reports findings from a recent study by Nellie Mae. To learn more about Nellie Mae and other research findings, visit www.nelliemae.com.
-
Research the background and passage of one of the consumer credit laws discussed in the chapter. Explain why this protection was needed, and describe what practices prompted the passage of this...
-
Credit card fraud is considered almost incidental to the potentially more damaging and costly problem of identity theft. Check the Internet for recent statistics on the number of consumers affected,...
Study smarter with the SolutionInn App