Allocation to labelled bins Created 2026-10-18 Updated 2026-10-20
Allocate distinct objects to labelled bins of specified nonnegative sizes , with . Order within a bin is ignored. The number of allocations is the multinomial coefficient
To prove this, order all the objects in a permutation and assign the first to the first bin, the next to the second, and so on. Every allocation comes from exactly internal orderings. These disjoint classes exhaust the permutations, proving the formula by the multiplication principle. Empty bins are allowed because .
For two bins of sizes and , the count is and every allocation has multiplicity in the permutation sample space. Exchanging two equal-sized labelled bins generally gives a different allocation. In contrast, a set partition uses unlabelled nonempty blocks; forgetting bin labels changes the counting problem and must not be done silently.
For an attainable empirical distribution on a fixed finite alphabet of size ,
Thus differs from by at most , uniformly over attainable profiles. Information entropy is the leading logarithmic count; the polynomial factor matters at short lengths.[ref]
The upper bound has a short explanation. Under an independent and identically distributed source whose law is itself, each string in has probability . Multiplying by the number of such strings cannot give a probability above one. A corresponding polynomial lower bound follows from the multinomial coefficient; the Stirling's approximation gives sharper prefactors when needed.
For the balanced four-symbol class, , so the upper bound is , while the exact size is six. Information entropy is not an exact count for a short string. On the leading scale it becomes precise: the difference divided by tends to zero as grows with the alphabet fixed.
Generalized Leibniz rule 2026-10-20
For functions with sufficiently many derivatives, the th derivative of their product distributes the differentiations among all factors. If factor is differentiated times, its term has the multinomial coefficient , where the nonnegative integers sum to . Induction on the number of factors proves this from the two-factor Leibniz rule: splitting off the final factor gives a binomial coefficient, which multiplies the previous multinomial coefficient to give the one displayed above. Equivalently, count the ways to choose which of the successive applications of the product rule differentiate each factor.
For and positive integers with , the number of labelled trees having vertex degree at label is
By the Prüfer degree formula, this is the multinomial coefficient counting sequences with occurrences of each label. If a degree is zero or the sum is wrong, there are no such trees. For the example degree sequence , there are labelled trees, one for each ordering of the labels . Knowing the vertex degrees thus constrains, but usually does not determine, the tree.
An ordered state records the classes and positions of customers at a single server. Class- arrivals have rate and exponential service parameter . Under a symmetric service discipline, its stationary distribution is , where . If every , class-independent insertion and service position rules need not be equal: time reversal of a continuous-time Markov chain interchanges them and proves the same law. Aggregating words gives by the multinomial coefficient. With class-dependent service rates, first come first served need not have this product law.
Multinomial coefficient Created 2026-09-24 Updated 2026-09-24
For nonnegative integers with , the multinomial coefficient
counts arrangements of a multiset containing copies of symbol .
Multinomial distribution Created 2026-09-24 Updated 2026-10-14
A multinomial distribution describes category counts from independent trials, each choosing exactly one of categories with the same probabilities . Require to be an integer, , and . If counts the trials in category , then and
The are integers, and the mass is zero for other count patterns. A category with has count zero almost surely, with in this formula. For a specified ordered trial sequence, independence gives the product of numbers ; the multinomial coefficient counts the different sequences with that same count pattern.
For four trials with category probabilities , the count pattern can occur in orders, each of probability . Thus its total probability is . This is a constructed independent-trial example, distinct from drawing four objects without replacement from a ten-object population of composition , where the multivariate hypergeometric distribution gives .
Figure 1.
Three category counts from four independent trials: every point fixes the third count through the total
. Details.
The diagram shows all fifteen possible count patterns. Coordinates determine ; the triangle is a constraint on integer counts, not a continuous probability density. The mode is , where the probability mass function is largest, but the expected values are not a possible count pattern.
Each single count has a binomial distribution, because recording category versus all other categories reduces every trial to a Bernoulli trial. Consequently,
These statements about the joint count model are summarized in Aditya Guntuboyina's lecture notes.[ref]
Independent trials do not make the resulting counts independent random variables. Within one trial the indicator random variables for two distinct categories cannot both equal one, so their product is zero and their covariance is . Summing over independent trials gives . In the four-trial example, the variances are and the pairwise covariances are . Knowing that all four trials were in the first category fixes the other two counts at zero.
The attraction is that one formula describes any fixed-total list of category counts while preserving the constraint that they add up to . It underlies multinomial likelihood calculations and uniform balls-in-bins allocation. The multinomial aggregation rule lets us merge categories without leaving this family of probability distributions. Allowing independent category counts with an unfixed total instead leads to a different model, related through Poisson-multinomial conditioning.
A multiclass queue must specify its service discipline as well as its arrival and service rates. Here is an ordered-queue model that includes the usual class-independent exponential single-server queue. Let class- arrivals be independent Poisson processes of rates , and let a class- service requirement have the exponential distribution of rate . A state is a finite word of customer classes.
Choose service fractions with , and insertion probabilities with . The customer at position departs at rate ; a class- arrival is inserted at position at rate . All rates leading to the same word are added. For class-dependent , impose the symmetric service discipline . If all , arbitrary class-independent are permitted, including first come first served with insertion at the tail and service at the head.
Put and . For , the equilibrium word law is
For the symmetric service discipline, insertion and deletion satisfy detailed balance for a continuous-time Markov chain because
For the common-service-rate case, use time reversal of a continuous-time Markov chain instead: the reversed queue inserts with probabilities and serves with fractions . A forward insertion gives a reverse deletion rate , and a forward deletion gives a reverse insertion rate . Forward and reverse total rates both equal , proving global balance for a continuous-time Markov chain.
Summing the weights of all words of length gives , so the law is normalized. If counts class- customers and , the multinomial coefficient counting class orderings gives
For processor sharing, , the class-count vector itself is a Markov chain, with arrival rate and departure rate . Under first come first served, the ordered word is generally necessary. Class-dependent service rates combined with first come first served do not in general have the displayed simple equilibrium law; the discipline assumption matters.
For occupations of distinguishable copies, the number of arrangements is the multinomial coefficient . The ensemble entropy is . Stirling's formula and give
Dividing by the number of independent copies and taking the large-ensemble limit recovers . Terms with zero occupation are interpreted by the usual convention.
Let and let each increment of the simple symmetric random walk be uniformly chosen from . A return requires an even number of steps. In steps returning to zero, let be the respective numbers of positive steps in the three directions; there must also be negative steps, so . Counting step sequences gives
The terms form a multinomial distribution, so . The permitted combinatorial inequalities give and for . The second bound also follows by noting that the largest multinomial coefficient occurs when differ by at most one and then applying Stirling formula. Thus
To prove the origin is a transient state, let be the probability of at least one return after time zero. The Strong Markov property at successive returns gives for the number of later returns. Therefore would be infinite if . The bound forces , proving that the origin is a transient state. Translation invariance gives the same conclusion at every lattice point. The coordinate walks need not be treated as independent; the counting via multinomial coefficients already incorporates their dependence.
Let denote the constant term, retaining the dimension as a subscript when it changes. We use the Good recurrence for the Dyson constant term. For algebraically independent variables, Lagrange interpolation polynomial applied to the constant polynomial one gives
At , this becomes the rational identity
When every , multiplying by the given Laurent polynomial cancels one factor in row of the product and gives
This is a polynomial identity after cancellation; no choice of an expansion of a rational function is involved.
The boundary case is essential. If , the factors in row are absent. The only factors involving are then for , and all their powers of are nonpositive. To obtain power zero in , one must select the constant term one from each of them. Taking the constant term in therefore deletes that variable and exponent:
For , the empty product is one, so . The all-zero exponent vector also gives one.
Now put , where . This multinomial coefficient obeys the same deletion rule for a zero exponent. For positive exponents,
Induction on , and within each dimension on , consequently determines uniquely and identifies it with . This proves the Dyson constant-term identity:
The mean extension in an ensemble of molecules is
with constraints and . For occupancies , the number of assignments of the distinguishable ensemble members to the states is the multinomial coefficient
Thus maximizing the probability at fixed and is equivalent to maximizing the stated Lagrange multiplier expression.
Because , the Stirling formula gives . Differentiating with respect to each gives
Normalization by therefore yields the probability mass function
Here is the fixed-tension partition function that normalizes the probabilities.
Let denote the stated constant term and suppose every . The rational identity
can be verified after clearing denominators, or by Lagrange interpolation. Multiplying it by the Dyson product and taking constant terms gives the recursion
The multinomial coefficient
obeys the same recursion by the multinomial form of Pascal's identity.
If , taking the constant term in forces the zero term from every factor involving and reduces the expression to the -variable Dyson product with omitted. The same boundary reduction holds for . Finally . Induction on and on therefore proves the Dyson constant-term identity
Under complete randomization, every assignment vector with exactly patients receiving treatment is equally likely. Thus, for and ,
The reciprocal probability is the multinomial coefficient counting assignments with those arm sizes.
Protein primary structure 2026-10-13
The protein primary structure specifies the ordered amino acid residues of each polypeptide chain, joined through peptide bonds. A chain is conventionally written from its N-terminus to its C-terminus. In the broader chemical sense, a complete protein primary structure also specifies covalent bond crosslinks between chain positions, including protein disulfide bonds; a bare sequence string leaves that information unstated. This describes chemical connectivity rather than the spatial arrangement of protein tertiary structure or protein quaternary structure. See IUPAC Gold Book: primary structure, sequence and chain crosslinking and IUPAC-IUB, 3AA-16: writing residue sequences from the amino end. Some conventions reserve protein primary structure for sequence alone and call the complete chemical connectivity the covalent structure; the distinction should be stated when comparing descriptions. See IUPAC-IUB polypeptide-conformation recommendations, section 6.1: the narrower sequence-only convention.
Figure 1.
Equal amino acid composition and equal termini do not determine protein primary structure
. Original toy polypeptide chains MAGAMG and MMAAGG, read from the N-terminus to the C-terminus. Each contains two methionine, two alanine and two glycine amino acid residues, but their internal order differs. Letters denote chain positions rather than free amino acids; lines denote peptide bonds. Neither string is identified as a natural protein or a measured sequence. Details.
In this toy example M denotes methionine, A alanine and G glycine. Both polypeptide chains have six amino acid residues, five peptide bonds, an M at the N-terminus and a G at the C-terminus. Their amino acid composition is identical, yet position 2 is A in MAGAMG and M in MMAAGG. There are distinct orders with these counts, a multinomial coefficient. Even fixing those two end residues leaves orders. The counts constrain the answer without determining it.
For multiple polypeptide chains, record each sequence separately and specify any protein disulfide bonds between cysteine positions. Mature insulin, for example, has an A chain of 21 amino acid residues and a B chain of 30 amino acid residues. Their combined 51 residues give peptide bonds, rather than the 50 of one unbroken 51-residue chain. See Cooper, The Cell: insulin's two chains and cysteine crosslinks, figure 2.16. A protein disulfide bond joins side groups; it does not concatenate the C-terminus of one chain with the N-terminus of another. The three insulin protein disulfide bonds connect A6 to A11 within the A chain, and A7 to B7 and A20 to B19 between chains. Positions are numbered from each chain's N-terminus. See Replacement of the interchain disulfide bridge-forming amino acids A7 and B7 by glutamate impairs the structure and activity of insulin: native disulfide positions.
Why keep this information? Protein primary structure lets us distinguish changes of chemical identity from changes of shape, and compare corresponding positions between proteins. Protein folding can bring distant amino acid residues together at a protein binding site while preserving their sequence. The attractive idea is that a readable linear record can constrain a complicated three-dimensional object; it is not, by itself, a guarantee of a unique fold in every environment. See protein folding and the ribonuclease A refolding experiment. Merely bending an intact chain preserves its protein primary structure; hydrolysis of a peptide bond, or changing which positions a protein disulfide bond connects, changes its chemical connectivity.
Size of a type class 2026-10-14
Write . Arranging copies of each symbol gives the multinomial coefficient
The division by the factorials removes permutations among identical copies. In the balanced four-symbol example, . For binary symbols this becomes the binomial coefficient ; for three symbols with counts , the class contains strings.