Probability of X being greater than Y for independent uniform variables

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
magnifik
Messages
350
Reaction score
0
Let X and Y be independent and uniform on {1, 2, ... M}
Find P(X > Y)

so i know that P(X = x) = 1/M and P(Y = y) = 1/M
i don't understand how Find P(X > Y) = (M+1)/2M
 
Physics news on Phys.org
Hi magnifik! :smile:

Suppose M=3.

Then we have the matrix:
Code:
X\Y   1  2  3
1     ≥
2     ≥  ≥
3     ≥  ≥  ≥

In how many cases is the condition satisfied?
And what is the total number of cases?