Panjer recursion
The Panjer recursion is an algorithm to compute the probability distribution approximation of a compound random variable S = ∑ i = 1 N X i {\displaystyle S=\sum _{i=1}^{N}X_{i}\,} where both N {\displaystyle N\,} and X i {\displaystyle X_{i}\,} are random variables and of special types. In more general cases the distribution of S is a compound distribution.