A cumulant generating function (CGF) takes the moment of a probability density function and generates the *cumulant*. A cumulant of a probability distribution is a sequence of numbers that describes the distribution in a useful, compact way. The first cumulant is the mean, the second the variance, and the third cumulant is the skewness or third central moment.

The CGF is given by:

**K(h)= log (M(h))**

Here M(t) is the moment generating function.

log (M(h)) here is equal to

where each of the k_{1}, k_{2}, k_{3} etc. are the cumulants.

## Properties of the Cumulant Generating Function

- The cumulant generating function is infinitely differentiable, and it passes through the origin. Its first derivative is monotonic from the least to the greatest upper bounds of the probability distribution. Its second derivative is positive everywhere where it is defined.
- Cumulants accumulate: the k
^{th}cumulant of a sum of independent random variables is just the sum of the k^{th}cumulants of the summands. - Cumulants also have a scaling property: the nth cumulant of n X is c
^{n}times the nth cumulant of X.

## Why the Cumulant Generating Function is Important

The cumulant generating function is important because both it and the cumulants lend themsleves so well to mathematical analysis, besides (in the case of the cumulants) being meaningful in their own right. They change in simple, easy to understand ways when their underlying PDF (probability density function) is changed, and they are easy to define on most spaces.

## References

Lockhart, R. (2001). Stat 830 Lecture Notes: Generating Functions. Retrieved January 6, 2018 from: from http://people.stat.sfu.ca/~lockhart/richard/830/11_3/lectures/generating_functions/web.pdf.

Wichura, Michael J. (2001). Stat 304 Lecture Notes: Cumulants. Retrieved January 6, 2018 from: https://galton.uchicago.edu/~wichura/Stat304/Handouts/L18.cumulants.pdf

If you prefer an online interactive environment to learn R and statistics, this *free R Tutorial by Datacamp* is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try *this Statistics with R track*.

*Facebook page*and I'll do my best to help!