TOPICS
Search

Heads-Minus-Tails Distribution


HeadsMinusTails

The heads-minus-tails distribution is the statistical distribution of D=|H-T|, the absolute difference between the numbers of heads and tails in 2n independent tosses of a fair coin, where n is a positive integer. It is given by

 P(D=2k)={(1/2)^(2n)(2n; n)   for k=0; 2(1/2)^(2n)(2n; n+k)   for k=1, 2, ..., n,
(1)

with probability zero at every other value. The most probable value is D=2 for n>=2, while D=0 and D=2 are tied for n=1. The expectation value is

<D_n>=(n(2n; n))/(2^(2n-1))
(2)
=(2Gamma(1/2+n))/(sqrt(pi)Gamma(n))
(3)
=(2sqrt(pi)(-1)^n)/(Gamma(n)Gamma(1/2-n))
(4)
=(-1)^(n+1)(-3/2; n-1).
(5)

The generating function for <D> is given by

sum_(n=1)^(infty)<D_n>x^n=x/((1-x)^(3/2))
(6)
=x+3/2x^2+(15)/8x^3+(35)/(16)x^4+...
(7)

(OEIS A001803 and A046161) for |x|<1 (Prévost 1933, Abramowitz and Stegun 1972, Hughes 1995). These numbers also arise in one-dimensional random walks.


See also

1-Dimensional Random Walk, Bernoulli Distribution, Coin, Coin Tossing

Explore with Wolfram|Alpha

References

Abramowitz, M. and Stegun, I. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, p. 798, 1972.Handelsman, M. B. Solution to Problem 436. "Distributing 'Heads' Minus 'Tails.' " College Math. J. 22, 444-446, 1991.Hughes, B. D. Eq. (7.282) in Random Walks and Random Environments, Vol. 1: Random Walks. New York: Oxford University Press, p. 513, 1995.Prévost, G. Tables de Fonctions Sphériques. Paris, France: Gauthier-Villars, pp. 156-157, 1933.Sloane, N. J. A. Sequences A001803/M2986 and A046161 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Heads-Minus-Tails Distribution

Cite this as:

Weisstein, Eric W. "Heads-Minus-Tails Distribution." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Heads-Minus-TailsDistribution.html

Subject classifications