20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.13. COMBINATORICS-BASED PROBABILITY COMPUTATION 31<br />

3. Consider the example <strong>of</strong> association rules in Section 2.13.3. How many two-antecedent, twoconsequent<br />

rules are possible from 20 items? Express your answer in terms <strong>of</strong> combina<strong>to</strong>rial (“n<br />

choose k”) symbols.<br />

4. Suppose 20% <strong>of</strong> all C++ programs have at least one major bug. Out <strong>of</strong> five programs, what is<br />

the probability that exactly two <strong>of</strong> them have a major bug?<br />

5. Assume the ALOHA network model as in Section 2.1, i.e. m = 2 and X0 = 2, but with general<br />

values for p and q. Find the probability that a new message is created during epoch 2.<br />

6. You bought three tickets in a lottery, for which 60 tickets were sold in all. There will be five<br />

prizes given. Find the probability that you win at least one prize, and the probability that you win<br />

exactly one prize.<br />

7. Two five-person committees are <strong>to</strong> be formed from your group <strong>of</strong> 20 people. In order <strong>to</strong> foster<br />

communication, we set a requirement that the two committees have the same chair but no other<br />

overlap. Find the probability that you and your friend are both chosen for some committee.<br />

8. Consider a device that lasts either one, two or three months, with probabilities 0.1, 0.7 and 0.2,<br />

respectively. We carry one spare. Find the probability that we have some device still working just<br />

before four months have elapsed.<br />

9. A building has six floors, and is served by two freight eleva<strong>to</strong>rs, named Mike and Ike. The<br />

destination floor <strong>of</strong> any order <strong>of</strong> freight is equally likely <strong>to</strong> be any <strong>of</strong> floors 2 through 6. Once an<br />

eleva<strong>to</strong>r reaches any <strong>of</strong> these floors, it stays there until summoned. When an order arrives <strong>to</strong> the<br />

building, whichever eleva<strong>to</strong>r is currently closer <strong>to</strong> floor 1 will be summoned, with eleva<strong>to</strong>r Ike being<br />

the one summoned in the case in which they are both on the same floor.<br />

Find the probability that after the summons, eleva<strong>to</strong>r Mike is on floor 3. Assume that only one<br />

order <strong>of</strong> freight can fit in an eleva<strong>to</strong>r at a time. Also, suppose the average time between arrivals <strong>of</strong><br />

freight <strong>to</strong> the building is much larger than the time for an eleva<strong>to</strong>r <strong>to</strong> travel between the bot<strong>to</strong>m<br />

and <strong>to</strong>p floors; this assumption allows us <strong>to</strong> neglect travel time.<br />

10. Without resorting <strong>to</strong> using the fact that n<br />

k<br />

<br />

n<br />

=<br />

k<br />

= n!/[k!(n − k!)], find c and d such that<br />

n − 1<br />

k<br />

<br />

+<br />

<br />

c<br />

d<br />

(2.66)<br />

11. Consider the ALOHA example from the text, for general p and q, and suppose that X0 = 0,<br />

i.e. there are no active nodes at the beginning <strong>of</strong> our observation period. Find P (X1 = 0).<br />

12. Consider a three-sided die, as opposed <strong>to</strong> the standard six-sided type. The die is cylindershaped,<br />

and gives equal probabilities <strong>to</strong> one, two and three dots. The game is <strong>to</strong> keep rolling the<br />

die until we get a <strong>to</strong>tal <strong>of</strong> at least 3. Let N denote the number <strong>of</strong> times we roll the die. For example,<br />

if we get a 3 on the first roll, N = 1. If we get a 2 on the first roll, then N will be 2 no matter what

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!