What is the probability of a number (picked at random) from set $A= \{1,2...,6\},$ being larger than a number (picked at random) from set $B= \{1,2...,10\}.$ What would the probability be if sets $A$ and $B$ were generalized: Set $A=\{n,n+1,...,n+x\},$ and set $B = \{m,m+1,...,m+x\}?$ This is well beyond my realm of statistics knowledge so the more clear each step is would be appreciated.
BONUS: I am trying to find a general equation. If it could apply to multi-sided dice, sets that skipped numbers (e.g. Set $A=\{1,2,3,5,8,13\},$ or set $B=\{2,4,6,8\}),$ more than two sets with different numbers (e.g. Set $A=\{1,2,3\}, B=\{2,3,4\}, C=\{1,3,5\}),$ etc. that would be ideal. I am not sure if this is even possible in general form so please answer the first part, even if you cannot answer this portion.
This link has a similar question, but the answer is in matrix form. Is there a clean equation to solve this?
Extended Comment: As indicated in the Comment by @HagenvonEitzen, one way to work the initial problem (on the probability D6 shows a larger value than D10) is to enumerate cases. In particular, you might make a $10 \times 6$ array of possible pairs of outcomes and highlight the pairs that satisfy your condition. When I did that, it was pretty clear that there are 15 favorable outcomes out of 60, so the probability $P(\text{D6 > D10}) = 1/4.$
A brief simulation can sometimes help to provide insurance against miscounting outcomes. In a simulation of a million pairs of dice rolls (D6 and D10), results ought to give two place accuracy, and that was the result. (The code is for R statistical software:
eventis a logical vector with a millionTRUEs andFALSEs, and itsmeanis its proportion ofTRUEs.)Using the array method might suggest a way to generalize to cases in which the two dice have consecutively numbered faces, such as in the 'generalization' of your first paragraph. I will leave it to you to figure that out. Or maybe you can see how to generalize Hagen von Eitzen's computation.
My guess is that it will be considerably messier to solve the 'bonus' problem.