Skip to content
Probability, Statistics and Financial Data / Multivariate and Derived Distributions

Sum of a Random Number of Independent Random Variables

Aggregate insurance claims are a sum of individual claim sizes — but the number of claims is itself random. Aggregate trading P&L over a day is a sum of individual trade P&Ls, and the number of trades is random too. Every result in Derived Distributions and Transforms and Moment Generating Functions assumed a fixed number of terms in a sum. This note drops that assumption: Y=X1+⋯+XNY=X_1+\cdots+X_N where NN itself is a random variable, independent of the i.i.d. XiX_i's. The law of iterated expectations and law of total variance turn out to be exactly the right tools — condition on N=nN=n (reducing to the familiar fixed-sum case), then average over NN's own randomness — and the transform machinery extends cleanly too, closing with two genuinely surprising closure results.
Learning objectives. By the end of this note you should be able to:
  • derive the mean and variance of Y=X1+⋯+XNY=X_1+\cdots+X_N using the law of iterated expectations and the law of total variance;
  • derive and apply the transform formula MY(s)=MN(log⁡MX(s))M_Y(s)=M_N(\log M_X(s));
  • recognise when a randomly-indexed sum is itself a recognisable named distribution;
  • explain why a fixed-nn sum of exponentials is not exponential, while a geometric-NN sum of exponentials is.

In this lesson

  1. Setup and the conditioning strategy
  2. Mean and variance
  3. The transform of a randomly-indexed sum
  4. Worked examples

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Probability, Statistics and Financial Data syllabus.