







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Discrete Math are Unique Path, Addition Rule, Clay Mathematics, Complexity Theory, Correspondence Principle, Discrete Mathematics, Group Theory, Random Variable, Major Concepts. Main points of this lecture are: Formidable Tool, Formidable, Probability, Solve Problems, Addressed, Same Birthday, Pairs, People, Linearity, New Tool
Typology: Slides
1 / 47
This page cannot be seen from the preview
Don't miss anything!








































CPS 102 Classics
If I randomly put 100 letters into 100 addressed envelopes, on average how many letters will end up in their correct envelopes?
= ∑k k (…aargh!!…)
Hmm…
∑k k Pr(k letters end up in correct envelopes)
On average, in class of size m, how many pairs of people will have the same birthday?
∑k k Pr(exactly k collisions)
= ∑k k (…aargh!!!!…)
To use this new tool, we will also need to understand the concept of a Random Variable
Today’s lecture: not too much material, but need to understand it well
A Random Variable is a real-valued function on S
Examples:
X = value of white die in a two-dice roll X(3,4) = 3, X(1,6) = 1 Y = sum of values of the two dice Y(3,4) = 7, Y(1,6) = 7 W = (value of white die) value of black die W(3,4) = 3 4 , Y(1,6) = 1 6
Let S be sample space in a probability distribution
Use letters like A, B, E for events
Use letters like X, Y, f, g for R.V.’s
R.V. = random variable
Input to the function is random
Randomness is “pushed” to the values of the function
Think of a R.V. as
A function from S to the reals ℜ
Or think of the induced distribution on ℜ
It’s a function on the sample space S
It’s a variable with a probability distribution on its values
You should be comfortable with both views
For any random variable X and value a, we can define the event A that X = a
Pr(A) = Pr(X=a) = Pr({x ∈ S| X(x)=a})
0.3 (^) 0.2 0.
0.05^ 0. 0
1
0
For any event A, can define the indicator random variable for A:
XA(x) =
1 if x ∈ A 0 if x ∉ A
X has a distribution on its values
X is a function on the sample space S
The expectation, or expected value of a random variable X is written as E[X], and is
x ∈ S k
A Random Variable is the type of thing you might want to know an expected value of
If you are computing an expectation, the thing whose expectation you are computing is a random variable
E[X (^) A] = 1 × Pr(X (^) A = 1) = Pr(A)
For any event A, can define the indicator random variable for A:
XA(x) =
1 if x ∈ A 0 if x ∉ A