Module1-Two Random Variable
Module1-Two Random Variable
Independence
Problem
The joint PMF of two random variables X and Y is given by
𝑘 2𝑥 + 𝑦 𝑥 = 1,2; 𝑦 = 1,2
PXY(x,y)=
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
where k is constant
a) What is the value of k?
b) Find the marginal PMFs of X and Y
c) Are X and Y independent?
Problem
• A fair coin is tossed three times. Let X be a random variable
that takes the value 0 if the first toss is a tail and the value 1 if
the first toss is a head. Also, let Y be a random variable that
defines the total number of heads in the three tosses.
Independence
Definition
Problem
Let X and Y two continuous random variables whose joint PDF is
given by
𝑥 + 𝐶𝑦 2 0≤𝑥 ≤1; 0≤𝑦 ≤1
fXY(x,y)=
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
(a) Find the constant C
1 1
(b) Find 𝑃(0 ≤ 𝑥 ≤ ,0 ≤ 𝑦 ≤ )
2 2
Problem
X and Y two continuous random variables whose joint PDF is
given by
𝑒 − 𝑥+𝑦 0≤𝑥 <∞; 0≤𝑥 <∞
fXY(x,y)=
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Are X and Y independent?
Problem
The joint PMF of two random variables X and Y is given by
− 𝑥 𝑦+𝑦 1
fXY(x,y)= 𝑥𝑒 0≤𝑥 <∞; 0≤𝑥 <∞
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
a) What is the conditional PMF of Y given X?
b) What is the conditional PMF of X given Y?
Covariance
The covariance between two rv’s X and Y is
( x X )( y Y ) p ( x, y ) discrete
x y
( x X )( y Y ) f ( x, y )dxdy continuous
Short-cut Formula for Covariance
Cov X , Y E XY X Y
Cov(X, Y) = 0 does not imply X and Y are independent!!
Correlation Proposition
You arrive into a building and are about to take an elevator to your floor.
Once you call the elevator it will take between 0 and 40 seconds to arrive to
you. We will assume that the elevator arrives uniformly between the 0 and 40
seconds after you press the button. To calculate the probability that takes
less than 15 seconds to arrive.
The Discrete Uniform Distribution
Suppose the possible values of a random variable from an
experiment are a set of integer values occurring with the same frequency.
That is, the integers 1 through k occur with equal probability. Then the
probability of obtaining any particular integer in that range is 1/k and the
probability distribution can be written
Let Y be the random variable describing the number of spots on the top face of
the die. Then