Recall: random variables β’ A random variable X on a sample space Ξ© is a function π: Ξ© β β that assigns to each sample point π β Ξ© a real number π π . β’ For each random variable, we should understand: β The set of values it can take. β The probabilities with which it takes on these values. β’ The distribution of a discrete random variable X π, Pr π = π . is the collection of pairs Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You roll two dice. Let X be the random variable that represents the sum of the numbers you roll. What is the probability of the event X=6? 1/36 A. 1/9 B. 5/36 C. D. 1/6 E. None of the above. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You roll two dice. Let X be the random variable that represents the sum of the numbers you roll. How many different values can X take on? 6 A. B. 11 C. 12 D. 36 E. None of the above. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You roll two dice. Let X be the random variable that represents the sum of the numbers you roll. What is the distribution of X? A. Uniform distribution on the set of possible values. B. It satisfies Pr π = 2 < Pr π = 3 < β― < Pr π = 12 . C. It satisfies Pr π = 2 > Pr π = 3 > β― > Pr π = 12 . D. It satisfies Pr π = 2 < Pr π = 3 < β― < Pr π = 7 and Pr π = 7 > Pr π = 8 > β― > Pr π = 12 . E. None of the above is true. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Independent RVs: definition β’ Random variables π and π are independent i f Pr π = π¦ β© π = π§ = Pr π = π¦ β Pr π = π§ for all values π¦ and π§. β’ Random variables π 1 , π 2 , β¦ , π π are mutually independent if for all subsets of π½ β [π] and all values π¦ π , where π β π½, Pr[β© πβπ½ π π = π¦ π ] = Pr π π = π¦ π . πβπ½ Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You roll one die. Let X be the random variable that represents the result. What value does X take, on average? 1/6 A. 3 B. 3.5 C. 6 D. E. None of the above. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Random variables: expectation β’ The expectation of a discrete random variable X over a sample space Ξ© is πΉ π = πβΞ© π π β Pr π . β’ We can group together outcomes π for which π π = π : πΉ π = π β Pr π = π , π where the sum is over all possible values π taken by X. β’ The second equality is more useful for calculations. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Example: random hats β’ Example: permutations β π students exchange their hats, so that everybody gets a random hat β R.V. X: the number of students that got their own hats. β E.g., if students 1,2,3 got hats 2,1,3 then X=1. β’ Distribution of X: Pr π = 0 = 1 3 , Pr π = 1 = 1 2 , Pr π = 3 = 1 6 . β’ Whatβs the expectation of X? Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Example: roulette β’ 38 slots: 18 black, 18 red, 2 green. β’ If we bet $1 on red, we get $2 back if red comes up. Whatβs the expected value of our winnings? Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Linearity of expectation β’ Theorem. For any two random variables X and Y on the same probability space, πΉ π + π = πΉ π + πΉ π . Also, for all π β β , πΉ ππ = π β πΉ π . Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Indicator random variables β’ An indicator random variable takes on two values: 0 and 1. β’ Lemma. For an indicator random variable X, πΉ π = Pr π = 1 . Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You have a coin with bias 3/4 (the bias is the probability of HEADS). Let X be the number of HEADS in 1000 tosses of your coin. You represent X as the sum: X = π 1 + π 2 + β― + π 1000 . What is π 1 ? A. 3/4. B. The number of HEADS. C. The probability of HEADS in toss 1. D. The number of heads in toss 1. E. None of the above. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Question You have a coin with bias 3/4 (the bias is the probability of HEADS). Let X be the number of HEADS in 1000 tosses of your coin. What is the expectation of X? A. 3/4. B. 4/3. C. 500. D. 750. E. None of the above. Sofya Raskhodnikova; Randomness in Computing 1/29/2020
Recommend
More recommend