Asymptotics for Compositions 337
Note that the number of parts in the composition corresponds to the number
of 1sinthebinaryword.
With this bijection it is easy to see that choosing a composition at random
is equivalent to having a 0 or 1 occur with probability 1/2 at each of the first
n −1 positions, with the occurrences at different positions being independent
(see Definition D.5) of each other. In other words, the number of 1s in the first
n−1 positions is a binomial random variable (see Definition D.11) B(n−1, 1/2)
with n −1 trials and success probability 1/2. Thus, the total number of parts
X
tot
(n) of a random composition of n equals the number of 1s (including the
1 at the rightmost position) in the binary word and therefore,
X
tot
(n) ∼B(n −1, 1/2) + 1.
The numbers σ
1
,...,σ
m
are “waiting times” for the first, second,..., and
m-th appearance of a 1. It is well-known and easy to check that in an infinite
sequence of independent Bernoulli trials with success probability p, the waiting
times for successes are independent and identically distributed (i.i.d.) random
variables whose common distribution is that of a geometric random variable
with parameter p (see Definition D.12). Since we are considering only n − 1
trials, this is no longer true. However, we have the following characterization.
Proposition 8.42 [96, Proposition 1] Let Γ
1
, Γ
2
,...,be i.i.d. geometric ran-
dom variables with parameter 1/2(that is, P(Γ
1
= j)=2
−j
, for all j ≥ 1)
and define
η =inf{k ≥ 1 | Γ
1
+Γ
2
+ ···+Γ
k
≥ n}.
Then, the distribution of a randomly chosen composition in C
n
is given by
⎛
⎝
Γ
1
, Γ
2
,...,Γ
η−1
,n−
η−1
j=1
Γ
j
⎞
⎠
.
Proposition 8.42 provides an alternative way to create a random compo-
sition, namely sampling geometric random variables, with an adjustment for
the last part (see Appendix F and Exercise 8.11). Using this fact, Hitczenko
and Stengle [97] showed the following result using probabilistic estimates.
Theorem 8.43 [97, page 520] As n →∞,
E(D
n
) ≈ log
2
n − 0.6672538227 + d(log
2
n),
where d is a function with mean zero and period one satisfying |d|≤0.0000016.
Thus, the expected number of distinct parts in a random composition of n
asymptotically behaves like log
2
n plus a constant plus a small but periodic
oscillation. This behavior is similar to the asymptotic behavior for the average
© 2010 by Taylor and Francis Group, LLC