“n choose k”: the number of ways to pick k items from n, ignoring order.
In ML papers
(kn), read "n choose k", counts the ways to choose k items out of n when order does not matter: k!(n−k)!n!. It is a number stacked in tall parentheses, not a vector or a fraction.
ML papers use it to count pairs ((2n) comparisons between n items, as in pairwise ranking losses), subsets (Shapley values average over them), and in the binomial distribution (kn)pk(1−p)n−k, the chance of k successes in n tries. The pass@k estimator for code generation (Chen et al. 2021) is a ratio of two binomial coefficients.
How to type it
LaTeX
Shows
\binom{n}{k}
(kn)
{n \choose k}older style
(kn)
A worked example
(25)=2×15×4=10
Five models compared in pairs need 10 matchups.
Common confusions
(kn) has no fraction bar; (kn) is n divided by k in parentheses.