

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Math 381 Dr. Gunnar Gunnarsson Homework #7 July 17, 2007
Reading Assignment: Chapter 4 and Introduction to Maple on Athena (see classlog for weblink).
Maple or Matlab Code: Programming in Maple or Matlab will be an important component of many homework assignments throughout the remainder of the quarter. For this homework assignment, download two files ”dice.mw” and “fishtankmc2.mw” from the Maple Demos link or “dice.m” and “fishtankmc2.m” from the Matlab Demos link on our course web page
http://www.math.washington.edu/~gunni/381Sum07/Maple.demos/ http://www.math.washington.edu/~gunni/381Sum07/Matlab.demos/
The .mw files are Maple worksheet files. Note, if you have any trouble downloading the worksheet, try using the .mpl version instead with the “read” command.
Homework due Monday, July 23: For each of the problems below, explain your answer fully. No credit will be given for a simple numerical answer.
y 1 2 3 4 5 6 p(y) 1/6 1/6 1/6 1/6 1/6 1/
This distribution allows us to consider Y as the random variable determined by any one of the six possible outcomes that can be observed when a fair die is rolled. The files simulate the rolling of a fair die number of rolls times. (Note that number of rolls is a variable in the code.) The sample average for the outcomes y 1 , y 2 ,... , ynumber of rolls is found and recorded in a histogram. The process of rolling the die number of rolls times, finding the sample average, and recording the result in a histogram is repeated number of experiments times. The program outputs a histogram of the probability distribution and also for the sample averages of the repeated experiments.
(a) Run this program twice. Insert^1 2 the histograms of sample averages for both experiments into a document and answer the following:
y 1 2 3 4 5 6 p(y) 4/24 1/12 1/24 1/24 1/24 15/
Set number of rolls = 3. Run the program several times and copy a characteristic histogram of the sample averages into a document. Repeat this for number of rolls = 10 and number of rolls = 100 and answer the following question. What underlying distribution appears with increasing number of rolls? Explain what you see. If you have any doubts in your answer, submit your code. Otherwise, you don’t need to submit the code for this problem.
(^1) To insert a Maple plot into Word (or LATEX) use File/Export-As in Maple and choose a format like JPG
(or EPS for LATEX) and then insert the graphic into a document accordingly. (^2) To insert a Matlab plot use save as... and choose the appropriate format.