Formula for hypergeometric distribution