STA113 Probability and Statistics in Engineering
Section 001, #2683
Spring 2005
Other exercises may be assigned. Quizzes will be based largely on homework problems. Data sets from the book for homework are on the web for easy loading into Matlab.

Homework Problems:
Ch1: 19, 25, 33, 41, 43, 50, 59 (histp.m for probability histograms)
Ch12 (12.1, 12.2 only): 3 (get the estimates and correlation), 16abc

Getting tabular data into matlab is a bit harder than with some other statistics software. "tdfread" is pretty good, but for a space-separated file you need to specify the delimiter--tdfread('data.txt', ' '). It also expects a line of column labels at the top.

Ch2: 1, 3, 6, 12, 18, 21, 26, 33, 40, 42, 43, 45, 46, 52, 60, 64, 69, 78, 82, 89, 92, 102
Texas Hold'em problems:
What is the probability of a pair in the pocket pre-flop?
What is the probability that four cards of one suit in the pocket and the flop complete to a flush?
RAID (Redundant Array of Independent Disks--a way to combine hard disk drives to increase reliability): Three 1 Gbyte hard drives store 2 Gb of data as follows: the first Gb is on disk 1, the second Gb is on disk 2, and on disk 3 the xor of the bits on the first two drives is stored (the xor is 1 if the other two are both the same, 0 otherwise, so if you know two of the three values you can get the third). If disks fail and lose data independently with probability p=.01, find the probability that the total RAID configuration loses data. If you compare this with no replication (everything on two disks) the RAID system is much more reliable. If you compare it with total duplication where everything is stored twice over four disks, the RAID system has almost the same reliability but fewer disks.
Ch3: 6, 8, 11, 12, 16, 28, 33, 36, 44acd, 45b, 46, 54, 61, 67, 68, 70, 76, 77, 81, 82, 86, 88, 99, 109
Unfortunately, the book counts the number of failures before the success as the geometric r.v., rather than the more standard trial of the first success. This leads to a pmf shifted one unit to the left, and the mean in the book is the real mean 1/p minus 1 (giving 1/p -1 = (1-p)/p). I will not use the book's system!
Ch4: 2, 11, 22, 23, 26, 32, 37, 49, 57, 59, 63, 64, 66, 81, 82
Monte Carlo integration: If U_1, U_2, ..., U_1000 are unif(0,1) random variables, what integral does the average [exp(exp(U_1))+ ... + exp(exp(U_1000))]/1000 approximate? Can you do this integral by hand?
Ch5: 3, 10, 13, 17, 27, 28, 30, 41ab, 46, 52, 62, 63, 64ab, 65
Ch6: 1abcd, 9, 14, 19, 20, 23, 25, 33
Capture/Recapture application of Maximum Likelihood Estimation.
Ch7: 1ac, 3, 7, 12, 14, 23, 30, 32, 33, 43, 45, 52, 54
Matlab does not have the newer method for the binomial c.i., but binci.m does it. The old method (7.11) is binciold.m.
Ch8: 1, 11abc, 21, 30, 32a, 35, 36a, 44, 46, 47
Ch9: 5, 28, 33, 41, 44 (sections 1-3 only)
Matlab just added the newer method, sometimes called Welch's approximation, for confidence intervals in a two sample situation where the variances are not the same. This feature is in Version 7, not 6, which you start with the command "matlab7" at this time. The .m file twosampleci.m also does it right.