The “random” parts of the algorithm in Self-Test Problem 6.9 &1 can be written in terms of the generated values of a sequence of independent uniform (0, 1) random variables, known as random numbers. With [x] defined as the largest integer less than or equal to x, the first step can be written as follows:
Step 1. Generate a uniform (0, 1) random variable U. Let
a. Explain why the above is equivalent to step I of Problem 6.8.
Hint: What is the
b. Write the remaining steps of the algorithm in a similar style.
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
A First Course in Probability
- 1. Suppose that, in Example 2.27, 400 units of food A, 600 units of B, and 600 units of C are placed in the test tube each day and the data on daily food consumption by the bacteria (in units per day) are as shown in Table 2.6. How many bacteria of each strain can coexist in the test tube and consume all of the food? Table 2.6 Bacteria Strain I Bacteria Strain II Bacteria Strain III Food A 1 2 0 Food B 2 1 1 Food C 1 1 2arrow_forwardat least part aarrow_forwardASK YOUR TEACHER Each of 13 refrigerators of a certain type has been returned to a distributor because of an audible, high-pitched, oscillating noise when the refrigerators are running. Suppose that 8 of these refrigerators have a defective compressor and the other 5 have less serious problems. If the refrigerators are examined in random order, let X be the number among the first 6 examined that have a defective compressor. (a) Calculate P(X= 4) and P(X s 4). (Round your answers to four decimal places.) P(X= 4) = P(X ≤ 4) = (b) Determine the probability that X exceeds its mean value by more than 1 standard deviation. (Round your answer to four decimal places.) (c) Consider a large shipment of 400 refrigerators, of which 40 have defective compressors. If X is the number among 20 randomly selected refrigerators that have defective compressors, describe a less tedious way to calculate (at least approximately) P(X ≤ 3) than to use the hypergeometric pmf. distribution if the population size…arrow_forward
- question 3arrow_forwardEach of 15 refrigerators of a certain type has been returned to a distributor because of an audible, high-pitched, oscillating noise when the refrigerators are running. Suppose that 12 of these refrigerators have a defective compressor and the other 3 have less serious problems. If the refrigerators are examined in random order, let X be the number among the first 6 examined that have a defective compressor. (a) Calculate P(X= 4) and P(X 4). (Round your answers to four decimal places.) P(X = 1) = P(X ≤ 4) = (b) Determine the probability that X exceeds its mean value by more than 1 standard deviation. (Round your answer to four decimal places.) (c) Consider a large shipment of 400 refrigerators, of which 40 have defective compressors. If X is the number among 20 randomly selected refrigerators that have defective compressors, describe a less tedious way to calculate (at least approximately) P(X s 6) than to use the hypergeometric pmf. distribution if the population size and the number…arrow_forward5/4 5. Let be a random draw from the following box of tickets: 01 22442 6 tickets Are X and Y independent?arrow_forward
- A lumber company has just taken delivery on a shipment of 10,000 2 x 4 boards. Suppose that 40% of these boards (4000) are actually too green to be used in first-quality construction. Two boards are selected at random, one after the other. Let A = {the first board is green} and B = {the second board is green}. (a) Compute P(A), P(B), and P(A ʼn B) (a tree diagram might help). (Round your answer for P(A n B) to five decimal places.) P(A) = P(B) = P(An B) = Are A and B independent? O Yes, the two events are independent. O No, the two events are not independent. (b) With A and B independent and P(A) = P(B) = 0.4, what is P(An B)? How much difference is there between this answer and P(AB) in part (a)? O There is no difference. O There is very little difference. O There is a very large difference. For purposes of calculating P(ANB), can we assume that A and B of part (a) are independent to obtain essentially the correct probability? O Yes O No (c) Suppose the lot consists of ten boards, of…arrow_forward.6 (a) Two sets of n independent trials are performed, independently of each other, and each trial results in either success or failure, the probability of success being p₁ in the first set of trials and P2 in the second set. Show that the probability P of obtaining x₁ successes in the first set and x₂ successes in the second set is given by P = Kpip2¹ (1-P₁)"¯*¹(1 - P2)"¯*², where K depends only on n, x₁ and x₂. If p₁ = p and p₂ = p², find an expression for log P and show that, for given values of n, x₁ and x2, log P has a maximum value when p is such that (x₁+ 2x₂)(n-x₁)p3np² = 0. (b) An insect breeding experiment was conducted in two sections, in each of which 100 insects of a particular species were raised. In the first section a proportion p was expected to have a certain colour variation and in the second section the proportion with this colour variation was expected to be p², but the value of p was not known. In the event there were 22 insects in the first section, and 7 in the…arrow_forwardRstudioarrow_forward
- One way to measure the diversity of a population of organisms is to calculate its Gini-Simpson diversity index, H. In its simplest incarnation, consider a population of yeast cells; each yeast cell is one of two types (call them "red" and "green"). The diversity index of the population is the probability that if two cells are picked at random, they are different colors (i.e., one is red and the other is green). If p is the proportion of cells of red-type, the diversity index H can be calculated from p using the formula H(p) = 2p(1- p), pe[0,1]. Conversely, one could ask what is the probability that the two individuals are genetically identical. Call this probability I(p). It is given by I(p) = 2p - 2p + 1. Complete parts (a) through (c) below. (a) The function I(p) is known as the Simpson index. Explain why the domain of I is pE[0,1]. Choose the correct answer below. O A. Substituting a negative value or a value greater than 1 for p in I(p) results in an undefined expression. O B. The…arrow_forward2. Suppose one has n non-degenerate random variables X1, X2,, X, so that X1+ X2 + · · · + Xn = L for some constant L. (Recall that a random variable is non-degenerate if it is not a constant in disguise.) Show that there must be at least one pair of indices i j so that p(X;, X;) < 0.arrow_forwarddo not copy answers from other sites please original work for upvotearrow_forward
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning