In Force

BIPM Brochure

BIPM 237 : 1994
A note on recurrences
Jörg W. Müller ().
BIPM Brochure

In Force



A note on recurrences

1.  A note on recurrences

Algebraic rearrangements are invariably dull to perform. In addition, they require permanent attention if we want to avoid any error that would render the final result useless. Occasionally, one encounters in such calculations a small problem which may be worth a few moments’ thought.

Thus, in the lengthy attempt to evaluate parities for observed counts, when the original Poisson process has been distorted by an extendable dead time, a problem was met which involves summing over alternate moments, defined [1] by

m r ± = k = 0 1 k k r p k .   (1)

If the probabilities p k follow the Poisson law (with mean value μ ), the moment of order r 1 is known [1] to be

m r ± = e 2 μ j = 1 r S r , j μ j ,   (2)

where S is a Stirling number of the second kind [2].

In the problem encountered, the expression to be evaluated is of the form

F = j = 0 r 1 r 1 j m j + 1 ± ,

which can be rearranged to become

F = e 2 μ k = 1 j + 1 μ k T r , k ,

where

T r , k = j = 0 r 1 r 1 j S j + 1 , k   (3)

is now the quantity in which we are interested.

Consider, for the sake of curiosity, both the binomial coefficients and the Stirling numbers as triangular matrices of infinite order. In a simplified notation, these are

B _ = 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

r = 4

and

S _ = 1 1 1 1 3 1 1 7 6 1 1 15 25 10 1 ,

k = 2

where we have put 0 0 = 1 and omitted the Stirling numbers S j , 0 as they are not needed in Equation (3).

If we choose, for example. the values r = 4 and k = 2 , the evaluation of T 4 , 2 , according to Equation (3), involves pairwise multiplication of the terms within rectangles in the above matrices. It is readily seen that this corresponds to a matrix multiplication; hence we can write symbolically

T _ = B _ × S _ ,   (4)

where T _ is now also a matrix.

If we evaluate, for a few arguments, the numerical values of T r , k , we find the coefficients assembled in Table 1.

Table 1.  Some numerical values of T r , k .

k = 1 2 3 4 5 6
r = l 1
2 2 1
3 4 5 1
4 8 19 9 1
5 16 65 55 14 1
6 32 211 285 125 20 1

A closer inspection of Table 1 reveals that its values follow a simple recurrence relation1, namely

T r , k = k + l T r l , k + T r l , k l .   (5)

This reminds us of the fact that there exist similar recurrences for the binomial coefficients and for the Stirling numbers. These are known to be

B n , k = B n l , k + B n l , k l

and

S n , k = k S n l , k + S n l , k l ,   (6)

respectively.

A comparison with Equation (5) and Equation (4) immediately raises the question whether the “transfer’ of recurrences is a general feature of matrix multiplication.

To approach this problem, consider a general matrix multiplication A _ × B _ = C _ and start with the assumed recurrences

A i , j = α 1 A i 1 , j + α 2 A i 1 , j 1 ,

B j , k = β 1 B j 1 , k + β 2 B j 1 , k 1 .   (7)

This gives for the element C i , k of the product matrix

C i , k = j A i , j B j , k

= j α 1 A i 1 , j + α 2 A i 1 , j 1 β 1 B j 1 , k + β 2 B j 1 , k 1

= α 1 A i 1 , j β 1 B j 1 , k + β 2 B j 1 , k 1 + α 2 A i 1 , j 1 β 1 B j 1 , k + α 2 A i 1 , j 1 β 2 B j 1 , k 1

= α 1 A i 1 , j B j , k + α 2 β 1 C i 1 , k + α 2 β 2 C i 1 , k 1

= α 1 C i 1 , k + α 2 β 1 C i 1 , k + α 2 β 2 C i 1 , k 1

= α 1 + α 2 β 1 C i 1 , k + α 2 β 2 C i 1 , k 1   (8)

As expected, we return to the situation given in Equation (5) by putting α 1 = α 2 = 1 ,   β 1 = k and β 2 = 1 .

It is interesting to note in Equation (8) that the coefficients γ , for the product element

C i , k = γ 1 C i 1 , k + γ 2 C i 1 , k 1 ,   (9)

involve not only sums, but also products of the coefficients α and β . The coefficients γ are thus not symmetric in α and β .

It may therefore be worthwhile also to consider triple recurrences, i.e. relations of the form

A i , j = α 1 A i 1 , j + α 2 A i 1 , j 1 + α 3 A i 1 , j 2 ,

B j , k = β 1 B j 1 , k + β 2 B j 1 , k 1 + β 3 B j 1 , k 2 .   (10)

After a similar, although longer calculation, we can show that the form of the product element C i , k is

C i , k = α 1 + β 1 α 2 + α 3 β 1 C i 1 , k + β 2 α 2 + 2 α 3 β 1 C i 1 , k 1

+ β 3 α 2 + 2 α 3 β 1 + α 3 β 2 2 C i 1 , k 2 + 2 α 3 β 2 β 3 C i 1 , k 3 + α 3 β 3 2 C i 1 , k 4 .   (11)

Obviously, for α 3 = β 3 = 0 this reduces to Equation (8).

It is worth noting that not only the new coefficients γ , introduced in Equation (9), become more complicated, but also that their number no longer agrees with those of α and β .

I have just been informed by Mme M. Boutillon, a colleague at the BIPM, that the following general rule holds: If the recurrence formulae for both A and B have m terms (in α and β ), the recurrence for C includes m 1 2 + 1 terms ( γ ).

This nice result explains why we find five terms in the product of triple recursions m = 3 . In addition, it shows that only in the case of a double recursion m = 2  — the case m = 1 is of no interest — the elements of the product matrix have the same number of terms in the recurrence.


References

[1]  J.W. Müller: “Alternate moments and parity moments”, Rapport bipm92-5 (1992)

[2]  J. Riordan: “An Introduction to Combinatorial Analysis” (Wiley, New York, 1958)

[3]  J.W. Müller: “Shifted developments of power functions”, Rapport bipm92-9 (1992)