Section 3.1: 1 and 4
Section 3.2: 1
Section 3.3: 1 and 5
Section 3.4: 1
How would you generate a pair of random variables (X, Y) with a given joint PMF P_{X,Y}(x, y)? Write a MATLAB program to generate pairs of random variables (X, Y) with the PMF given in Problem 3.1.1. Test your program by generating 10,000 random variable pairs and computing the probability that Y > X. Compare your simulation result with the analytical result in Problem 3.1.1(c).
Hint: The range of the pair of random variables is
S_{X,Y} = { (1, 1), (1, 3), (2, 1), (2, 3), (4, 1), (4, 3) }.What is the probability of each pair in S_{X,Y}? How can you generate the pairs with the indicated probabilities?
Kevin Mueller and Matias Palavecino