0
$\begingroup$

Given a set of $m$ characters, if I pick $n$ of them, how many combinations contain a given character?

A simple case: Picking two letters from ABCD has $\binom{4}{2} = 6$ possibilities, AB, AC, AD, BC, BD, CD and each letter appears 3 times. How does one solve for 3, the frequency of an individual letter, given a general $m$ and $n$?

$\endgroup$
1
  • 1
    $\begingroup$ How many combinations do not contain a given character? $\endgroup$
    – whuber
    Commented Aug 9, 2016 at 19:22

1 Answer 1

2
$\begingroup$

Since it looks like you're sampling without replacement, the answer is:

$$\binom{m-1}{n-1},$$

which in your example is:

$$\binom{3}{1}=3.$$

This is easy to see: set aside an element, say "A". Now pick from the remaining elements. Since order doesn't matter, you get the above binomial coefficient.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.