Probability/Stats Worksheet 2 – Binomial/Geometric/Poisson/Gaussian Distributions 1. For the following, provide (i) how you would define a random variable π with the appropriate distribution and (ii) calculate the required probability. a. Example: Throwing 0 Heads in 4 throws of a fair coin. i. π~π΅(4, 0.5) ii. π(π = 0) = 0.54 = 0.0625 b. Throwing 2 Heads in 4 throws of a biased coin, with probability of Heads 0.4. c. Throwing a biased coin, with probability of Heads 0.7, until you see a Heads on the 5th throw. d. Receiving 5 visits to your website in the next minute, given that you see 4 visits on average. 2. By finding a Z-Table (just Google it!) determine the probability of these particular IQ ranges, given that the mean IQ is 100 and the Standard Deviation is 15. a. An IQ less than 100. b. An IQ less than 115. c. An IQ less than 70 (your Z-Table might only have positive values of π§; if so, think about the symmetry of the Normal Distribution). d. An IQ greater than 142. e. An IQ greater than 87. f. An IQ between 90 and 120. 3. [Source: University interview] In an experiment to investigate animal behaviour rats have to make a choice between 4 doors of different colours. If they make the right choice they find food; if they make the wrong choice they get an electric shock. If an incorrect choice is made, the animal returns to its starting point and tries again, and this continues until a correct choice is made. a. If π(π₯) is the probability that a correct choice is made at the π₯th attempt, find π(π₯) if: i. each door is equally likely to be chosen at each trial, and all trials are mutually independent; ii. at each trial the rat chooses with equal probability between the doors which have not been tried previously, no choice ever being repeated; iii. the rat never chooses the same door on two successive trials but otherwise chooses at random. b. Which strategy would be the best one for the rat to adopt? 4. [Source: STEP] The number of texts that George receives on his mobile phone can be modelled by a Poisson random variable with mean π texts per hour. Given that the probability George waits between 1 and 2 hours in the morning before he receives his first text is π, show that: ππ 2π − π π + 1 = 0 Hint: the volcano example in the slides might be helpful. π 5. (Difficult!) By noting that ππ [−(1 − π)π₯ ] = π₯(1 − π)π₯−1 , prove that if π~πΊπππ(π) (i.e. the 1 π geometric distribution with probability of success π), then πΈ[π] = . www.drfrostmaths.com/rzc ANSWERS 1. Answers b. π~π΅(4, 0.4) c. π~πΊπππ(0.7) d. π~ππππ π (4) π(π = 2) = 0.3456 π(π = 5) = 0.34 × 0.7 = 0.00567 π(π = 5) = 45 5! π −4 = 0.156 2. Answers: a. An IQ less than 100: π(π§ ≤ 0) = 0.5 b. An IQ less than 115: π(π§ ≤ 1) = 0.8413 c. An IQ less than 70: π(π§ ≤ −2) = 1 − π(π§ ≤ 2) = 0.0228 142−100 d. An IQ greater than 142: 142 is 15 = 2.8πs above the mean. π(π§ > 2.8) = 1 − π(π§ ≤ 2.8) = 1 − 0.9974 = 0.0026 e. An IQ greater than 87: By symmetry, this is the same as having an IQ less than 113. 113−100 113 is = 0.87πs away from the mean. π(π§ < 0.87) = 0.8078 15 f. An IQ between 90 and 120: The probability of an IQ less than 120 is 0.9082. Therefore the probability of an IQ between 100 and 120 is 0.9082-0.5=0.4082. The probability of an IQ greater than 90 is the same as the probability of an IQ less than 110, which is 0.7454. So the probability of an IQ between 90 and 100 is 0.74540.5=0.2454. Therefore the probability of an IQ between 90 and 120 is 0.2454 + 0.4082 = 0.6536. 3. Answers a. Answers: 3 π₯−1 1 , π₯= 4 1 π₯ = 1,2,3,4 {4 i. π(π₯) = (4) ii. π(π₯) = 0 iii. π(π₯) = {1 1 4 1,2, … This is a geometric distribution. π₯>4 π₯ = 1,2 2 π₯−2 ( ) 4 3 π₯>2 b. The most obvious thing to find is the expected value of each distribution, since this gives the expected number of times the rat will have to choose a door (obviously, 1 the less the better!). Recall that if π~πΊπππ(π), then πΈ[π] = π. Since the first 1 strategy is πΊπππ (4), the expected number of doors is 4. For the second strategy, 1 πΈ[π] = 4 (1 + 2 + 3 + 4) = 2.5. For the last strategy, via some appropriate manipulation we get πΈ[π] = 3.25. The second strategy is therefore the best. Alternatively, you might look at the cumulative distribution function of each, but this would be difficult to calculate for all but the first strategy. 4. Let π be the number of texts George receives in the first hour of the morning and π be the number he receives in the second hour. Then π~ππ(π) and π~ππ(π), with π and π independent random variables. This we have π(πΊπππππ π€πππ‘π πππ‘π€πππ 1 πππ 2 βππ’ππ πππ ππππ π‘ π‘ππ₯π‘) = π(π = 0 πππ π > 0) = π(π = 0). π(π > 0) = π −π . (1 − π −π ) =π www.drfrostmaths.com/rzc Then π −π − π −2π = π Multiplying this last equation by π 2π gives π π − 1 = ππ 2π , and a straightforward rearrangement yields our desired equation. Note that there is a distribution known as the exponential distribution which would directly allow us to find the probability of waiting a particular amount of time. π₯−1 5. πΈ[π] = ∑∞ π π₯=0 π₯(1 − π) ∞ = π∑ π₯(1 − π)π₯−1 π₯=0 ∞ π [−(1 − π)π₯ ] π₯=0 ππ ∞ π = −π [∑ (1 − π)π₯ ] ππ π₯=0 We were able to move the differential function outside the summation, given that when we = π∑ π differentiate a sum, we differentiate each of the terms in turn, i.e. ππ [π(π) + π(π)] = π [π(π)] ππ π + ππ [π(π)]. We now conveniently have an infinite Geometry Series, where π = 1 − π and π = 1 − π. π Thus using π∞ = 1−π, we get 1−π π = π−1 − 1. So continuing: π −1 (π − 1) ππ = −π(−π−2 ) 1 = π = −π www.drfrostmaths.com/rzc