How to calculate a probability of choose 3 off-suited and off-ranked cards out of 4 given cards from a standard 52-cards deck (the situation when all the cards off-suited/off-ranked should be avoid).
E.g. you're dealt 3 cards at a time.
P.S. By simulating the situation on a computer (1mln tries) the answer must me like 54.5%)
P.P.S. The same question but to get 2 cards (off-suited and off-ranked)
P.P.P.S. The same question byt 1 card (off-suited and off-ranked) or what is the same 3 cards either same suit or same rank
More about how I'm trying to do that (probably wrong): We can have 3 cards out of 4 with 4 different capabilities. Each time we draw a card, we reduce the chances to draw needed card: 52 - starting draw, 36 - rest suitable for 2nd card, 22 - rest suitable for 3rd card and $\bf(52 - 10 - 3)$ - rest suitable for last card. And each time we draw we have less cards in the deck, like 52,51,50,49.
$\frac{(52-52)\times36\times22\times10}{52\times51\times50\times49} + \frac{52\times(51-36)\times22\times10}{52\times51\times50\times49} + \frac{52\times36\times(50-22)\times10}{52\times51\times50\times49} + \frac{52\times36\times22\times(49-10)}{52\times51\times50\times49} = 35.428571\%$
but that is not $54.5\%$ I got from simulation. And I want to understand where I was wrong in calculation or in simulation program.


Case 1: Four cards of four different suits (one way to get suits).
Case 1A is edited out because it turns out not to be a desirable case ($4$ different suits and $4$ different ranks).
1A: Four different ranks: Pick a rank for spades ($13$ ways); hearts ($12$ ways); diamonds ($11$ ways); clubs (10 ways).Total for case 1A: 17160 possibilities.1B: Three different ranks: Pick three ranks ($13\choose 3$ ways); pick a rank to be used twice ($3$ ways); pick two suits to receive that same rank ($4\choose 2$ ways); assign remaining two ranks to remaining two suits ($2$ ways).
Total for case 1B: $10296$ possibilities.
Case 2: Three suits among the four cards. ($12$ ways to choose suits--$4$ choices for twice-appearing suit; $3$ choices for unused suit).
2A: Four different ranks occur: Pick two ranks for the twice-used suit ($13\choose 2$ ways); choose a rank for one of the other used suits ($11$ ways). Choose a rank for other used suit ($10$ ways).
Total for case 2A: $12\cdot 8580=102960$ possibilities (the factor of $12$ is from the $12$ choices for suit at the beginning of case 2).
2B: Three different ranks occur (but still an outcome of the desired type). This means one of the twice-used suit cards will have to match rank with one of the singly-used suit cards, and all other ranks different. Choose a rank for one of the singly-used suits ($13$ ways); choose a rank for the other singly-used suit ($12$ ways); for the twice-used suit cards, choose one already used rank and one new rand ($2\cdot 11$ ways).
Total for case 2B: $12\cdot 3432=41184$ possibilities (again the extra factor of $12$ is for suit selection at the beginning of case 2).
Grand total: (Add cases): There are $154440$ desirable card combinations.
The probability of getting a desirable combination is $\frac{171600}{52\choose 4}=\frac{154440}{270725}\approx .5705$.
This probability is different than the one suggested by OP based on computer simulation. But I think this value is correct--I also ran a program to check, looking at all $270725$ different $4$-card hands.