Binomial count Created 2026-10-20 Updated 2026-11-05
A binomial count records the number of successes in independent Bernoulli trials with common success probability . It is the sum of the success indicator variables, so , with expected value and variance . Ten independent coin flips give a binomial count of heads; ten dependent outcomes generally do not, even if each marginal success probability is .
Binomial proportion maximum-likelihood estimator Created 2026-09-24 Updated 2026-11-05
For a binomial count , , with , the maximum-likelihood estimator is . For , differentiating gives a unique interior maximum. If or , the maximum is respectively at zero or one. Excluding those endpoints from the parameter space means these samples have only a supremum, not an attained maximum. The estimate is unbiased and has variance , by the binomial distribution moments.
Binomial tail probability Created 2026-10-20 Updated 2026-11-05
An upper binomial tail probability is for a binomial count . A strict upper tail starts at instead; this distinction matters for a discrete law. For four fair Bernoulli trials, , while . Lower and upper tails satisfy . These sums calibrate one-sided hypothesis tests and the order statistic distribution formula.
Consider independent binomial counts under the common-probability null hypothesis, with fixed positive row sizes . Let , and assume . Conditional on , the probability mass function is the displayed multivariate hypergeometric distribution: in the joint likelihood, the factor is common to all admissible tables and cancels. The Vandermonde identity gives the denominator, so the conditional distribution is free of the unknown nuisance parameter .
For a table , its Pearson chi-squared statistic isAn exact conditional p-value sums the displayed probabilities over all tables with the same margins and . The ordering is by the Pearson chi-squared statistic, rather than by the probability of an individual table; different exact-test orderings can give different answers. Enumeration is practical when and the number of rows are small. Monte Carlo tests can approximate the same tail by sampling tables with fixed margins.[ref]
Pearson's Chi-squared Test for Count Data in the R documentation. Details: simulated contingency-table tests sample tables with fixed marginals and use the Pearson statistic
An exact arithmetic comparison is easy too. Let be the least common multiple of the row sizes. Compare the integersince every table has the same positive denominator . This includes boundary ties without a floating-point tolerance. Conditional p-values are discrete and can be conservative; “exact” concerns their null calibration, not equality of rejection probability with every chosen significance level.