BERNOULLI TRIALS AND PERMUTATION STATISTICS
DON RAWLINGS
Mathematics
Department
California
Polytechnic
State
University
San
Luis
Obispo,
CA
93407
(Received February 18, 1991)
Abst.rot
Several coin-tossing gamesaresurveyedwhich,in anatural way, giveriseto "statistically" inducedprobabilitymeasures onthe set ofpermutationsof{1, 2 n} andon sets of multipermutations. The distributions ofageneral class of randomvariables
knownasbinarytreestatisticsarealsogiven.
KEY WORDS AND PHRASES. Permutation statistics,probabillty measure, binary free stat-istics and multi-permutations.
1991 AMS SUBJECT CLASSIFICATION CODE. 60D05.
1: Introduction Thedistributions ofpermutation statisticshave long been considered
relative to the equiprobablemeasure l/n! onthe set ofpermutations of{1, 2 n}. For
instance, among many such results tobe foundinDavidand Barton[DB,150-183] orin
Bender [B],ithas been established that the classic permutation statisticknown asthe descent numberisasymptotically normal. Morerecently, Diaconis[D1,128] has verified
that theinversionnumberis likewise asymtotically normal relativeto the equiprobable
measure. Additionalresults ofthistypemaybe foundin[Cr,D,H].
Some work has also been done concerning distributions of permutation statistics
relativeto probabilitymeasureswhicharenotuniform([D2]). It is thisgeneral veinof researchto which this paperbelongs: Motivatedby the results ofMoritz andWilliams
[MW], several coin-tossing games are presented which lead to natural non-uniform
probability measures thatareinducedby permutationstatistics.
Specifically,in sections 3 through 6, three coin-tossinggames are describedwhich give rise to measures respectively induced by the Mahonian statistics known as the
comajor index, the majorindex, and the inversion number. In sections 8 and 9, two
more coin-tossing games and theirassociated measures are given which are based on
permutation decompositions. Throughout, and particularly in section 7, the distribu-tionsof random variables knownasbinary treestatistics are also presented. Inthefinal section, somenatural directions for further research are indicated.
2. Mahonian and Binary_
Tree
Statistic Forthe most part, the measures and random variables consideredarise in connection withwhatare respectivelyknownasMahonian and binary tree statistics. Before defining these two classes ofstatistics, a number of292 D. RAWLINGS
Forasequence
Jl’ J2
Jn
ofnon-negative integers, thesymbol 1jl2J2...
nJn
willbe used to denote the multiset consisting of
Jl
ones,J2
twos andJn
n’s. A sequentiallyordered list ( oflengthj(jl
+J2
+ +Jn
and of the form(2.1)
in which,for 1 <k <n, k appears exactly
Jh
times will be referred to as amultiper-mutation of
lJl
2J2...
nJn.
The symbol[ljl
2J2...
nin]
will denote the set of such multi-permutations. Forsimplicity, J:[n]will signifythe set ofpermutations:[1121...
n1]
Inorder todefine a Mahonianstatistic, it is convenienttointroducethenotionof
q-analogs. The q-analog of a non-negative integer, the q-factorial, the q-binomial coefficient, and the q-multinomial coefficientarerespectively defined to be
(2.2) (i)
(rn)q
1 +q+q2
+ +qm-1
(ii)(m)q! (1)qC2)q
(m)q
(rn)q!
f j"
(J)q!
(iv)
(jlJ2_..Jn)q
-(Jl)q!
(J2)q!
(Jn)q!
(iii)
(
ffi-(k)q,Cm k)q,
wherej-=
(Jl
+J2
++in
and(0)q[--
1.A
statistics" J:[1jl2J2...
nin]
--
(reals)isthensaidto be Maahonian if
where thesum isover all(in
J:[lJl
2J2...
njn]
Inthepermutationcase,theright-handside of (2.3) reduces to
(n)q!.
The twoclassicexamples ofMahonianstatistics are the inversionnumber and the
major index.
Let
]AI
denote the cardinality ofa setA
and respectively define the descent set and the descent number ofamultipermutation(EJ:[lJl
2J2...
njn]
of length jby(2.4) (i) qe( ={k’l<k<j-l,(k)>(k+l)} (ii)
.s
([q)es
c[
Then the inversionnumber and themajorindex of(are defined to be
(2.5) (i) inv(
-
[{(k,1)"
1 <k< <j, ((k)> (if/)} (ii) maj(-=
Z
kAsanexample, for c 2 1 2 2 1 3 1
J[132331],
itiseasytoseethatg)es {1,4,6},es
=3,majc =l+4+6=ll, andinz =3+0+2+2+0+1+0=8. The fact thatbothmaj andinzareMahonianon
J[lJl
2J2...
nJn]
was firstestablishedby MacMahon [M1].For simplicity, the discussion ofbinary tree statistics is restricted to the case of permutations. For a set C containing (n + 1) integers, let [C] denote the set of permutations onC.
For
[C],let k be suchthat )(k +1)istheminimumofC
and define(2.6) (i)
A
{(1), (ii) B {(k + 2),(k+ 3) o(n+ 1)}.Thentherooted binaryplanartree decomposition of isdefinedto be the factorization
(2.7) arn
where --(1)(2)...(k) J[A], rn is the minimum element of C, and
(k+2)(k+3) (n + 1) [B]. Themapping
(2.8)
-
(A,B,a,)
fromJ[C to the set of 4-tuples (A,B,a,)satisfying the conditions
(2.9) (i) A tJB C\{m} (ii) A
(iii) ae ,l:[A] (iv)
is abijection.
Ifone viewsthefactorization am geometricallyas
294 D. RAWLINGS
(2.10)
3 2 5 1 47 6
Asindicatedin(2.10), ois easily recovered fromitsbinary tree by simply projecting onto
a horizontal axis.
Finally, as essentially defined in [R5], a real valued map s on the set of
permutations ofintegers is saidtobe abinary tree statistic iffor all o factorizedasin
(b..7)
thereexistconstants a, b,cc andafunctionf"
x 4-
such that(2.11) as(a) + bs() + cI(A,B) +
f
(IAl, IBI)
where /--{0,1, 2 }, s() 0, and I(A,B) denotes the number of inversions from set A to
B,
thatis,I(A,B)=-
{(k,/) cA
xB k>l}l
Although seemingly remote, many classic permutation statistics actually satisfy
(2.11). Forone, the descent number of apermutation oe: J:[n] satisfies the following
recurrence relationship
(2.12)
&so
=desa+es
+z(IAI
>1)where
%Cstatement")
is defined to be 1 if"statement"
is true and 0 otherwise.As
a second example, it is easily verified that the inversion number of a permutation o satisfiesthe identity(2.13) invo inva +
inv
+I(A,B)+IA
TABLE
1
Name 1. length 2. descents 3. rises 4. inversions5. 312patterns
6. 213patterns 7. left lower records
8. rightlower records 9. troughs
10. peaks(leaves)
Examplesof BinaryTree Statistics References CS,DB,FS C1 M1,S R4 R4 C1
,DB
C1,DB FV FVIdentity relativetoc a rn
len =lena + len
[J
+1des desa+des
[J
+%([A[_>l)
ris risa+ris
[J
+%([A]=
0) inv inv a+inv[J
+ I(A,B)+ A 312() 312(a) +312()
+ I(A,B) 213() 213(a) +213()
I(A,B) +]A]
lr() lr(a)+1 rr()
rr()
+1tr(c) =tr(a) +
tr()
+z(IA
I>
1)%(181>
1) p() p(a)+p()
+%(IA
O)%(
Essentially, the only permutation statistic consideredin this paper which is nota
binarytree statistic isthemajor index.
However,
itdoes satisfy theidentity(2.14) rnajo rnaj +
maid
+ A + A +l)Fo
relativeto the factorizationin (2.7).
3. AGeneraHzationof Moritz’.enidW_i!!im.
s’
Gamc Insolvingaproblemassociated with a simplecoin-tossinggame, Moritz and Williams [MW] discovereda "statistically" induced measure on[n]. However,
as their results readily extend to the setting ofmultipermutations, the followinggeneralized versions oftheir game and problem are
considered.
(3.1) Multipermutation ExtensionofMoritz’ andWilliams’ Game. Players1, 2 n respectively begin with
Jl,
J2
Jn
lives. In turn, a coin ispassed from player to player which, when tossed, lands heads up with
probability p and tailsupwithprobabilityq 1 -p.
Upon
receiving thecoin, player k attempts to toss a string of consecutive tails equal in
length to his/her remaining number oflives. If successful, player k
passes thecoin toplayer(k +1). If not successful, player k losesa life
and tries again to toss a string of consecutive tails equal in length to
296 D. RAWLINGS
Problem.
For c J:[1jl2J2...
nJn],
determine the probability that the players lose their lives in the order specified by (that is,({)
is the player who loses the{th
lifeof the game).As an illustrationof this game, suppose players1, 2, 3 respectively have
Jl
1,J2
3, andj3
2lives. Then,atypical flippingsequence(FS)togetherwiththe resultingmultipermutation of "death" areasdisplayed below
(3.2)
where asterisks highlight descents in
,
colons inFS
indicate when the coin is being passed to the nextplayer, andbars demark sweepsthrough the tossingorder (i.e., the firstsweepthroughthetossingorder 1, 2, 3 isT T TH
TH T T Twithplayer2losingtwo lives,thesecond sweepthrough the orderisH T T H Twith players1 and3each losingonelife, andso on).
Tosolve the problem statedin(3.1),it is arelatively easy matter to adapt Moritz’ and
Williams’ proof for the permutation case. The first step is to extend their norm on
permutations to the multipermutation setting:
For
:
,l:[lJl
2J2...
nJn],
let MFS(o) denote the "minimal (i.e. shortest) flippingsequence"
for which the game results in.
Thenthenormof isdefined to be
(3.3) cm
---
"the number of tails occurringinMFS(o)."For
instance, the multipermutation of (3.2) together with its associated minimalflipping sequencearegiven belowin(3.4). Thus,cm(221323) 6.
(3.4)
MFS()=T..H.HT.TT
It.T.IT
I..H..H
=
22 *1 3 * 2 3Thesolutiontotheproblem of (3.1)may nowbe stated and proven: For
[lJl
(3.5)
wherej
=-Jl
+J2
+ +Jn
Theproof proceeds by induction. Clearly, the formula forPcm
istrue whenj 1. Then,tocarryout theinductionstep, begin byobservingthat thefirst
headsin aflipping sequence that results in ,1:[1
jl
2J2...
nin]
either occurs(3.6) (i) after the initial sweep through thetossing order,or (ii) during the initial sweep.
In case (i), the game may be considered as simply being restarted after the initial
consecutive stringofj tailshas been tossed.
In case (ii), some player, say k, tosses the firstheads onthe
gth
toss ofthe game whereJl
+J2
+ +Jk-
1<<jl
+j2
+ +Jk
Inthis case,players1, 2 k n maybeviewed asstartinga newgameinwhichthe distribution of livesis
Jl,J2
Jk"
1Jn
andinwhichthetossing orderis k,k+1 n,1, 2 k-1. Corresponding to this new tossingorder, sequentially rename theplayers as k 1,k +1 2 k 1 n. Since the flipping sequence for thenewgameisobtainedbyloppingoff theinitial{tossesfrom the corresponding flipping sequence of
,
the result of the new game is amultipermutation y
..[lJk
"12_Jk+l
.../k-1]
which satisfies the property(3.7) cm(
Jl
+J2
++Jk.1
+cmT"Tocomplete the proof of (3.5),firstnote that the twocasesof (3.6)together imply that
(3.8)
Pcnt
() qJ
Ptm
() +E
q,-1
pp=m(?)
where the index { runs from
(jl
+J2
+ +Jk-1
+ 1) to(Jl
+J2
+ +Jk
)" Then, inductively assuming that formula (3.5)holdsfory,itfollowsfrom (3.7) and (3.8) that1-q
E
q,.
l+cm,I(3.9)
Pc’m()
1
qJ
g
Jl
j-1
)-1
J2 Jk
-1Jn
qj
j-1
)-1
lj2
Jk
-1Jn
qqC.m
(j
J
)
-1298 D. I4,WLINGS
Inclosingthissection,it isworthnotingthat the measure
Pcm
reduces to theusual equiprobable measure on J:[1jl
2J2...
njn]
when q 1. Thus,Pcm
is aq-analogof the equiprobablemeasure.
4. The Comaior Index Unknowingly, MoritzandWilliams actually proved thattheir normisMahonianon ,l:[n] Essentiallytheir argumentcanbe used toverifythat the
norm is also Mahonian on ,1:[1jl
2J2...
njn]
SincePcm
is a measure and because of(3.5),one hasthat
wherebothsumsareoverallo Z[1jl
2J2...
njn]
Butthisimmediately implies thatHowever,itturns out that thenormisnota new Mahonian statistic. Infact, it is nothing more than a slightly disguised variation of the major index. Known as the comajor index[DF],this variation isdefined for [1jl
2J2...
nin]
by(4.1) comaj (j-k)
k Desc
where j
Jl
+J2
+ +Jn
Thus, in contrast, the major index sums descentindices"relativetothe left-hand side of
"
andthe comajorindex sums descent indices "relative to theright-hand side."Inorder to verify that the norm and thecomajor index areindeed equal, onebegins
byreconsideringthe gameof (3.1) andthe exampleof (3.4). Itisnot difficult to see that
for any multipermutation
J:[lJl
2J2...
nJn]
and its associated MFS() that the followingfactshold:(4.2) Thereisanatural one-to-one correspondence between bars andasterisks.
It then immediately follows that comajo cmo (which explains the usage of cmin
denoting the norm). Incidentally, the preceding argument was first given for the
permutation casein[RT].
Turning our attentionto random variables, example (3.4) suggests a verynatural
one: Let
""
lg[lJl
2J2...
nJn]
-+ IR be the number of bars that occur in the MFSassociatedtoamultipermutation. Thus,by(4.2i),
""
(o)Ke
o.Now,
although themeasurePcm
isrelativelynew, itturns out that the literatureon permutation and multipermutationstatistics is full of methods and resultswhich areofsignificancetothestudyofthe descent numberrelativetothe q-measure
Pcm.
However,being neither immediately interestedin nor aware of q-measures, researchers have not presented resultsinq-probabilisticsettings. Thus, thereisusuallysome degree of work
involvedinextracting desiredresults.
As an example on the level of permutations, consider the probability generating
functionfor descentsrelativeto the measure
Pcm
onlg[n], that is,(4.3)
Cn(t,q)
Z
t
Pan
(O)"[n]
From
the methodsof[R4],
it is possible to derivea recurrencerelationship
forCn(t,q)
Begin by observing that, even though not a
binary tree statistic, the comajor index satisfies the identity
(4.4) ,:m ,:rna + ,:rnl +
(IB[
+1)x(IAI
_>J.)+
([BI
for any permutation ofactorizedas in (2.7). Inviewof (2.8) and (2.12), itthenfollows that
Cn+
1(t,q)is equalto
n
(n+l)q’
Z Z
Z
Z
(tqk=O
[Al=k
a. Jg[A][B]
Iml+l)z(lAl_>)
(tqlB
+1)KeS
aqCm
tgeSqCrn
.
Takinginto account the natural correspondence
between Jr[A] and Jr[
[AI]
and then byregroupingterms, one isled to the recurrence relationship
n
(4.5,
(n+l,qCn+l(t,q)
Cn(t,q)
+ tZ
qn.k+ll)lk.)Ck(tqn_k+l,q)Cnk(t,q)
k=l
300 D. RAWLINGS
Besides several more identities onthelevel ofpermutations, an explicit formula for
the distribution ofdesrelative to
P=m
onJ[1jl2J2...
njn]
could be given at this point.However,it is more convenienttopresentthese identities at the end of the nextsection.
5. TheMajor Index Game
As
comaj and majarecloselyrelated,it ispossibletoalter (3.1) in sucha way soas togive rise toameasure inducedby themajor index.A "gtiaj"
versionof(3.1)isgiven in (5.1).The
gaj
{ame. Players1, 2 n respectively begin withJn’
Jn-1
Jl
lives. In turn, a coin is passed from player to player which, when tossed, landsheads up with probabilityp andtailsup with probabilityq 1 -p.Uponreceiving the coin,player k attempts to tossa stringof consecutive tailsequalinlength to the number of livesremainingto player(n+1-k). If successful,player k passes thecointo player(k +1). If not, player(n-k +1) loses a life and player k reattempts the task of tossing a string of
consecutive tails equal in length to the now diminished number oflives remaining to player (n + 1-k). Player k continues tossing until
succeeding. In the event that player (n +1 -k) has no remaining lives,
player k ofcoursesucceedsafter zero tosses. Thegame endswhenalllives havebeen lost.
problem. For {}
:
,.[1jn2Jn’l...
nJl],
determine the probability that the players go outinthe reverse order specified by {} (thatis,forj--Jl
+J2
++
Jn’
{}(J+1-{)
isthe player who loses the{th
lifeof the game).The probability
Pro({})
that {}:
,.[1jn2Jn’l...
njl]
isthe outcome of the gamein (5.1) isgivenbyj
(5.2)
pro({})
qje
1J2
Jn
q
Formula (5.2) mayofcoursebe derivedby appropriately modifying the proofof (3.5).
However,
abijectiveproofisgiven here which lays bare the explicit relationship between the outcomes and{}of the games of (3.1) and (5.1).Tobegin with, note thatifS isanysequence of tossessuchthat results when the rules of (3.1)are applied and{}resultswhenthe rulesof (5.1) are applied, then crO where the reversalr andthe complementc ofamultipermutation e ,l:[1jl
2J2...
njn]
arerespectively defined to be(5.3) (i)
(ii)
rT
T(J) T(J
1) T(1)Since theprobabilityof any suchSoccurringisindependent of the game being played, it
follows that
Pro(O)
Pcm
() Moreover,j-1
cm=cm(crO)=
E
(j-k)%(n+l-O(j+l-k)>n+l-O(j-k))
k=l
Thus, from(3.5),onehas that
qCm
(crO) qajeJ
Jn)q
Jl
J2
which establishes formula(5.2).
Since des0 (crO), the descent numberis again a natural random variable to
consider. Infact,as maj is a classicMahonian statistic, the literature onpermutation and multipermutationstatistics contains a substantial amount of information relating the descent number and the majorindex. FromMacMahon’s work [M2, Vol. 2, p. 211],
one canderivethat the probability generating function fordeonmultipermutationsis
(5.4)
n
(t"
qln+l
tk
H
E
tOPm(O
)=lJ2""Jn
q 0
.g,
1J" jq
0
where thesum isoverall0 ,r.[1jn
,n.1...
nil]
and (t"q)n+l
(1 t)(1 tq)...(1tqn).
In thecaseofpermutations, if one defines(5.5) (i)
Mn(t,q)--
E
t
Pm
() (ii)Mn,
k(q)
=-
E
%(eO
k)Pro(O)
then, from (2.8) and[C2],it maybe verified that
n
(5.6)
(i)(n+l)qMn+l(t,q)Mn(tq,
q)+tEqk()()’lqMk(t,q)Mn.k(tqk+l,q)
k=l(ii) (n+
1)q Mn+l,k(q)
(k+1)q
Mn,
k(q)
+qk(n
+1-k)q
Mn,
k_l(q)
302 D. RAWLINGS
Itisnow convenienttounveiltheadditionalidentities for thedistribution ofthedescent numberrelative to P which were alluded to at the end of section 4. By first using the
bijection
cr" ,,[1jn
2Jn-1...
nJl1
-, [1jl2J2...
njn]
and then bynotingthat, if o crO, then
Fez
o a((crO) 0 andPeru(o)
Pro((}),
itfollows that
E
ts
Pm
(0)E
tsz
Pcm
()0
where thefirst sum is overall0 J:[1jn
n-1...
nJl]
and the secondis overo J:[1jl2J2...
nJn].
Thus,theright-hand side of (5.4) gives the probability generating function forez
relative toPtm
onZ[1jl2J2...
njn]
and the identities of (5.6)remainvalid ifPmisreplacedbyP
cm in(5.5).6. TheInversionGame Since theinversion number is a classicMahonianstatistic,it is
natural toquestionwhetherornot thereexistsa game that leads toa measureon[1jl
2J2...
njn]
whichis inducedby theinversionnumber. Theanswertothis queryisyes andsuchagame isdescribedin(6.1).
(6.1) The Inv Game, Players 1, 2 n respectively begin with
Jl,J2
Jn
lives. Beginning with player1, a coin is passedfrom player to player which, whentossed, lands heads upwithprobability p and tails up with
probabilityq 1 -p. Upon receivingthe coin,playerk makes a single attemptattossing a stringof consecutive tails equalinlengthtohis/her
remaining number oflives. Ifplayer k is successful, then the coin is
passed to player(k+1). Ifplayer k tossesaheads, then player k losesa
life, thecoin is immediately passed backtoplayer 1, and play resumes. The game ends when all lives have been lost.
.
Foro J:[1ji2J2...
nJn],
determine the probability that the players losetheir lives intheorder specified by o.Toprovethat the probability of o J:[1ji
2J2...
njn]
being theoutcomeof(6.1) is givenby the formula(6.2)
Pi()=q
va
(j
J
jn
)
-1
it is insightful to consider a specific example" Using the symbol rnfs()to denote the
minimal flipping sequencefor which the Invgame resultsin
,
the mfs()forthe multi-permutation 2 2 1 3 2 3[11
2332]
isdisplayed below2 2 1 3 2 3
where the colons indicate instances at which the coinis beingpassed from playerk to
player(k +1) and thebarsindicatewhen the coin isbeingpassed back to player1. The
important insight to gain from (6.3) is that the contribution made to the inversion
number by ((k),1 < k <j 1, isequal to the number oftailsbetween the (k
1)st
andkth
bars oftheassociatedmfs(). Thus,(6.4) inz "the number oftails inmfs()."
With minor modifications, the induction proof of (3.5) maynow be recast so as to establish(6.2): Clearly, (6.2)istrue forj 1. To carryout theinductionstep,note that
the firstheadsto occurin aflippingsequencewhichresultsin(eithertakesplace
(6.5) (i) after the
jth
toss, or (ii) on orbefore thejth
toss.Incase(i), the gamemay be consideredas being restarted after the firstjconsecutive
tailshave been tossed.
In case (ii), some player, sayk, tossesthe first headson the
th
toss ofthe game whereJl
+J2
+ +Jk-1
<"
<Jl
+J2
+ +Jk
Player k losesalife, passesthecoinback to player1,anda newgameis startedwhichresultsinamultipermutation ?Z:[lJl
2J2...
k
Jk’l...
nJn].
Moreover,
?satisfiestheproperty that(6.6) inv
Jl
+J2
+""+Jk-1
+irtvyTogether,thecasesof (6.5) imply that
304 D. RAWLINGS
where the index runs from
Jl
+J2
+ +Jk-1
+1)toJl
+J2
+ +Jk
)" Using acalculationanalogous to theoneof (3.9), formula(6.2)thenfollows byinduction.
Asfor natural randomvariables, the number of barsin
mfs(o),
whichis (j-1)for all oJ[lJl
2J2...
nn],
isof no interest. However, althoughnotas evidentasin(3.4), thedescent number of ocanbe characterizedintermsofmfs(o):LettingT(k)denote the number of tails between the (h 1)standkthbars ofmfs(o),one has that o(k)>o(k +1) if and onlyif T(k) > T(k+1 ).Althoughthe inv isaclassic Mahonianstatistic, apparentlynoclosedorreasonable recurrence formulasareknown which relate the descent andinversion numbersonthe level of multipermutations.
In
the case of permutationsthoughthere are a number of readilyavailableformulas: Ifonedefinesthen,from[R1,S],onehas that
(6.9)
Z
In
(t’q)unffi (I t) exq[(l t)u]1 texq[(l t)u]
whereexq[z]
=-(n)q!
is aq-analogof the exponential function.Except
foraminor twist, a "binarytree"
recurrence relationship forIn(t,q)
can bederivedinessentially the sameway astheoneof (4.5). First,
note
from[GJ,p. 98] that, for asetD
of n integers,(A,B)
where the sum is over all ordered pairs (A,B) such that
AI
k,A U B D and A f B.
Then,(2.8),(2.12)and (2.13) imply thatIn+l(t,q)
isequalton
(n+l
)q!
k--O
IA
l=k
cc ,]:,[A]Ie:
[B] Thenrecouping and using(6.1 O)Nves
theidentity(6.11)
nwhereI0(t,q)m1.
qlOt,
B)t&s
aqinv
atds
qinv
(n +
1)qIn+l(t,q)=in(t,q
+ t
Z
qk
ik(t,q
7. Distributions of
Binlrv
TreeStati$ticsonJ:[n| Inthe caseof permutations, the bi-jection-
(A,B, a,[)of(2.8) may beused toobtainthe distributions of any binarytreestatistic. Therecurrencerelationships for two such distributionsrelative to
Pi
andPm
are nowpresented. Forabinary tree statistic s as definedin(2.11),let
(7.1)
(i)/n(z,q)--
E
zS()Pi()
(ii)Mn(z,t,q)=-
E
zs()
tr[ts Pm()
c [n] c [n]
where, for technical reasons, an extra parameter involving the descent number has
beenincludedinthe maj setting. Then, from (2.8),(2.11)through (2.14), and (6.10),it is
not too difficultto verify that
(7.2) (i)
(ii)
n
k=O n
(n+
1)qMn+l(z,t,q)
=Z
zf(k’n’k)
t(
lA
ll)qk
()Ze
()’
Mk(za’t’q)Mn’k(zb’tqk+l’q)
k=Owiththeinitialconditions
Io(z,q)
1 andMo(z,q)
=-
1.8.
A
Binary_TreeMeasure
on J:[nl Inmany instances, the derivation ofanidentity involving permutation statistics is based onsome permutation decomposition. Forinstance,the binary tree decomposition c
-
(A,B,
a,)
is theunderlying basisfor theidentities of(7.2). With this inmind,itbecomes natural to consider whetherornotthere
is ameasure whichis "compatible" withagiven decomposition. Inthis vein, agameis
presented inthis section whichis "compatible" withthe binary tree decomposition. A second example of adecomposition based gameis given in section 9.
The playing board for the "binary
tree"
game, as sketched in (8.1), is an infinite binarytree witheach node being empty and having two ascendant nodes.(8.1)
The rules of the binarytree game anditsassociatedproblemare asfollows:
306 D. RAWLINGS
headswithprobability p andtailswithprobabilityq (1 -p). Whenever
an occupied node is encountered, the coin is to be tossed: If the coin
lands heads (tails) up, then the search must proceed to the right (left) ascendant of the occupied node.
Upon
encountering an empty node, aplayermustoccupy it. After all players have occupied nodes, the players
are thenranked according to the order that results when the playersare projectedontoa horizontal axis.
Problem. Foro [n], determine the probability that the players are
ranked according to
As
anexample ofthis game,theresult of the sequence of tosses(8.3) S=
:T:TT:H:TH:HH:HHT
’isthepermutation of(2.10). Notethat the subsequence ofSlying between the(k 1)st and
kth
colons corresponds to player k’s search.Todeterminetheprobability
Pbt(C)
that thegameof(8.1)endsin e J:[n],begin byobservingthat the flipping sequenceSassociated to isunique. Then, ifone defines
(8.4) (i) T(o)
-=
"thenumber oftails inS" (ii) H(c)m"thenumber of headsinS,"ittriviallyfollows that
(8.5)
pbt(C
qT()
pH(a)
As
iseasily verified,neitherTnorH
is Mahonian.Moreover,
fornochoice of the value of q willPbt
reduce tothe usual equiprobable measure1/n! onJ:[n].Although(8.5)isstraightforward enough, therearea coupleofalternate waysof calculating
Pbt(a).
Relativeto(2.8),wehave(8.6)
Pbt(C
qIA
pIS
Pbt(OO Pbt()
where
Pbt()
1. The secondway, whichis independent ofbothS and the binary treedecomposition, relies on the fact that T andH can both be expressed as linear
combinations of known permutation statistics; namely, the inversion number and the
number of 312 patterns(seeTable1).
Inorder toobserve theselinear combinations, oneneedsto first return toaprevious
characterization ofa312 patternas given in[R4]: Anorderedtriple (i, j, l)issaidtobea
(8.7) ()
(iii)
l<i <j<l
<n
(ii) (j)<(l)<(i) (j) mininimumofthe set { (i), (i+1) (1) }.Then, 312()isdefined tobe the number of312 patternsin
.
Now,
ifplayerk, uponreaching the node occupied by rn as diagrammedbelow,tossestails,thenplayer k must proceed to
I
andtherebycreateattal of (1 + lengthofy)inversionsandatotal of (length of
?)
312 patterns. Thus,T() inv 312().
Analogous reasoning maybeused to verify that H()=/nv(r) 312(r) wherer isas
definedin (5.3i).
As a primary advantage of considering the binary tree measure, the probability generating function for a binary tree statistic relative to
Pbt
satisfies a recurrencerelationship which, althoughsimilarto, ismuch simplerthanthose of (7.2).
Let
(8.8)
Tn(z,q)
=-
E
zs
()Pbt
()[nl
where s is a birmry tree statistic as definedin (2.11). Then, once again using (2.8) togetherwith (6.10) and (8.6), oneisled to theidentity
n
k=0
where
To(z,q
) =_ 1.9.
TIlE
r-lVIAJOR INDEX
GAME
A
secondexample ofa game whichiscompatible withadecompositionarises inconnection with the statistic known as ther-majorindex. Forsimplicity,thisgame will only bepresentedinthecontextofpermutations.As
in [R2], for an integer r > 1, the r-descent set and r-descent number of apermutation 3:[n]arerespectively defined to be
(9.1) (i) rDes {k ok) > o(k+1) +r, 1<kNn 1 (ii) rffes rDes
1
Ther-major indexisthendefinedto be
(9.2) rmaj
=- I{(k,
g)"1 <k< < n, o(k)>()
>otk) rEk
308 D. RAWLINGS
For instance, ifr 2 and 47836215
:
J:[8], then rDe {3,5},r(e 2, and rmaj 5 +(3+5) 13.Inviewof (2.5), ther-major indexisseentobe aweighted mixture between the
major indexand the inversionnumber. Infact,rmajreducesto maj whenr 1 and to
inz whenr Moreover, asestablishedin[R2], ther-majorindexisMahonian on
:[n],thatis,
[n
The decomposition employedin[R2] to establish (9.3)isbasedonobserving the effect that "inserting" n intoapermutationT J:[n 1] hasonthe r-major index. Totabulate
this effect, the n possible insertion positions in T
T(1)T(2)... T(n-
1) are labeled asfollows: Using labels 0, 1 (n 1)inorder,firstscan
T
from right to left and label the positions that, uponinsertion ofn,will not resultinthe creation ofa newr-descent. Then, scanningback from left to right, label the remainingpositions. As an example, for 4736215 :[7] and r 2, the top and bottomrowsofthe display(9.4) 3 2 1
0
$ $ $
4 7 3 6 2 1 5
4 5 6 7
indicatethelabelsasdistributed by the two scans.
As
given in[R2], the key factsconcerningthisinsertionproceduremay be summed upasfollows: If F(T,)
denotes the permutation that results when nis insertedinto positiong
ofT,then(9.5) (i)
(ii)
F" Z[n 1]x{0,1 n 1}
--
J:[n]is abijection and rmajF(7,
{)
+ rmaj7.For
instance,ifTis
the permutation of(9.4),thenF(T,2)
47836215 andrmajF(T,2)
13 2A game which is compatible with the "insertion" decomposition F may now be
stated:
(9.6) The
rffv[aj
Gamo.
Players 1, 2 n areto be rankedina linearorder. For1<k<n, assumethatplayers1, 2 (k-l) havebeen ranked according to
a permutation y [k- 1]. Player k then determines his/her ranking
relative to players1, 2 (k 1)byflippinga coinuntil heads occurs: If theheads occursonthe (mk + /
1)th
toss where0 <g
< k-1,thenplayerkisinsertedintoposition
g
of ?. Thecoin isthenpassedtoplayer(k+1).roblem.
If theprobabilityofheadsispand oftailsisq 1 p, then whatis the probability that the players will be ranked according to a given
permutation [n ?
Toestablishthat thesolution to theproblem of(9.6) isgivenby the formula
(9.7)
qrma]
c
Pr
(<)1(nlq!
foroe: J[n], first note thatit isclearly true forn 1. Then, forn
e
2, assumethat (9.7) holdsforall ? E [n 1]. By(9.5i), any)E [n]isof the form F(?,g) forsome?E,l:[n 1] and 0 <
g
<n -1. Itthen follows thatpr(
(q,
+qg+n+
qg+2n+
PPr
(?)q(1-q)
(l_qn)
qrmaj
qr
maj(n-1)q!
(n)q!
Thus, (9.7) holds for alln > 1.
As
for random variables,there is onethat is very natural: For E J:[n] and 1 < k <n 1, suppose that?k
[k] and 0<gk
< k aresuchthat(9.8)
l(?n-1
{n-1
)’?n-1
l(?n-2
n-2
72
1(?1
{1
where?1
---
1. Thendefine(9.9)
"X’k
()-=
%(k
is a"bottom"row label)wheretop and bottomrowlabels are asexemplifiedin(9.4). Itthen follows that
(9.10)
rares
c"1()
+ "X"2(c)
+ +,n.l(O)
Unfortunatelythough, the random variables "X"
310 D. RAWLINGS
Usingthe properties of F as listedin (9.5), the distributionof roles relativeto
Pr
defined by
(9.11)
Rn,
k(q)
E
%(rtfzz
k)Pr(()
( ,r.[n
may be easily verified to satisfy therecurrence relationship
(9.12) (n+
1)q Rn+l,k(q)
(r+k)q
Rn,
k(q)
+qk
+r-l(n
+ 2 kr)q
Rn,
k_l(q)
where
Rr,
o(q)
(r)q!.
Ofcourse, (9.12)reduces to(5.6ii)whenr 1.In closingthis section, it is noted that the game of (9.6) and the measure of (9.7) readily extend to the set of multipermutations ,1:[1jl
2/2...
nin]
Therelevantinsertionprocedure andidentities maybe foundin[R3].
10. CONCLUDING REMARKS The asymptotic results mentionedinthe introduction suggestahost of tantalizingproblems.
In
view of the factthat the descent number, theinversion number, and the number of records (see Table 1) are all known to be asymptotically normal relative to the equiprobable measure on]:[n],it isonlynatural to consider thefollowing questions:
(10.1) (i) What class of binarytreestatistics areasymptotically normalrelative
to the equiprobable measure on ]:[n] ? What aboutrelative tothe
measures
Peru,
Pm
Pi
andPbt
?(ii)
Is
re
asymptotically normal relative tothemeasurePr
onJ:[n]?
What aboutonmultipermutations?
(iii) Which statistics on multipermutations are asymptotically normal relative to
Pcm,
Pro,
orPi
?B.
C1.
C2.
Cr.
Reference
E. A. Bender, Central and local limit theorems applied to asymptotic
enumeration,J.Comb.TheorySer. A15(1973), 91-111.
L. Carlitz, Enumeration
of
permutations by rises and cycle structure,J. Math.262/263(1973), 220-233.
L. Carlitz,Anote onq-Eulerian numbers,J. Combin.TheorySer. A25(1978),
90-94.
CS. L. Carlitz and R. Scoville, Generalized Eulerian numbers: Combinatorial Applications,J.Math265(1974),110-137.
Do
H.
E. Daniels, The relation between measures ofcorrelation in the universe of samplepermutations,Biometrika33(1944),129-135.D1. P.Diaconis, "Group Represenations in Probabilityand Statistics,"Lecture Notes-Monographseries, Ins. Math.Stat., 1988.
D2. P. Diaconis, On a Poisson distribution relative to Mallow’s model, personal
communication.
DB. F.N. David andD. E. Barton, "Combinatorial Chance," Hefner Publishing Co., NewYork,1962.
DF. J. D. Dsarmenin and D.
Foata,
Fonctions symdtriques et sd.ries hypogeometriques basiques multinarides, Bull.Soc.
Math.France
113 (1985), 3-22. FS.D.
Foata and M. P. Schiitzenberger, Theorie gdometrique des polyn6mesEulerians,
Lecture
notesinMath. 138 (1970), Springer-Verlag.J. Francon and G. Viennot, Permutations selon les pics, creux, doubles descentes, nombres d’Euler etnombres de Genocchi,Discrete Math. 28 (1979),
21-35.
GG.
A.M.
Garsia and I. Gessel,Permutation statistics andpartitions,dv.
inMath.31(1979), 288-305.
GJ.
I.P.
Goulden andD. M.Jackson, "Combinatorial Enumeration," Wiley andSons,1983.
H.
W.
Hoeffding,Acombinatoriallimittheorem,Ann.
Math.Stat.
22 (1951), 558-566. P. A. MacMahon, The indicesof
permutationsAmer. J.
Math. 35 (1913), 281-322. Reprinted in"Percy
Alexander MacMahon: CollectedPapers
Vol. 1 (G.E.
Andrews,ed.),
M.I.T. Press,
Cambridge,MA,
1978, pp. 508-549.M2. P.A. MacMahon, "Combinatory Analysis," Cambridge Univ. Press, London/New
York,1915(reprinted byChelsea,
New.
York, 1960).MW. R. H. Moritz and R. C. Williams, A coin-tossing problem and some related
combina,
torics,Mathematics Magazine(1) 61 (1988),24-29.R1. D. P. Rawlings, Generalized Worpitzky identities with applications to permutation enumeration,
Europ._JJ.
Combin.2(1981),67-78.R2. D.P.Rawlings,Ther-major index,
J.
Comb. TheorySer. A31 (1981),175-183.R3. D.P. Rawlings, The (q,r)-Simon Newcomb problem,
.J.
Linear andMultilinear
Alg.10(1981).R4. D.P. Rawlings, TheABCs
of
classical enumeration,Ann. Sc. MathQuebec(Dec. 1986)R5. D.P. Rawlings, A binary tree decomposition space
of
permutation statistics,J.Combin.TheorySer.
A,
to appear.RT. D.P. Rawlings and J. A. Treadway, Moritz and Williams’ game revisited, submitted to Mathematics
Magazi..n.e.
S. R.P.Stanley, Binomial posets, MObius inversion, and permutation enumeration,
J.Combin.TheorySer. A20(1976), 336-356.
St. M.J. Steele, Gibb’s measures on combinatorial objects and the central limit
theorem
for
an exponential familyof
random trees, Prob. Eng. and Inf. Sci. 1