{"id":2993,"date":"2019-06-28T14:40:37","date_gmt":"2019-06-28T14:40:37","guid":{"rendered":"https:\/\/analystprep.com\/study-notes\/?p=2993"},"modified":"2026-01-30T18:06:21","modified_gmt":"2026-01-30T18:06:21","slug":"define-probability-generating-functions-and-moment-generating-functions","status":"publish","type":"post","link":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/","title":{"rendered":"Probability Generating Functions and Moment Generating Functions"},"content":{"rendered":"<h2 data-tadv-p=\"keep\"><strong>Probability Generating Function<\/strong><\/h2>\n<p>The<strong> probability generating function of a discrete random variable<\/strong> is a power series representation of the random variable\u2019s probability density function as shown in the formula below:<\/p>\n<p>$$ \\begin{align*} \\text{G}\\left(\\text{n}\\right)&amp;=\\text{P}\\ \\left(\\text{X}\\ =\\ 0\\right)\\bullet \\ \\text{n}^0\\ +\\ \\text{P}\\ \\left(\\text{X}\\ =\\ 1\\right)\\bullet\\ \\text{n}^1\\ +\\ \\text{P}\\ \\left(\\text{X}\\ =\\ 2\\right)\\bullet\\ \\text{n}^2\\ \\\\ &amp;+\\ \\text{P}\\ \\left(\\text{X}\\ =\\ 3\\right)\\bullet \\ \\text{n}^3\\ +\\ \\text{P}\\ \\left(\\text{X}=4\\right)\\bullet \\ \\text{n}^4+\\cdots \\\\ &amp;=\\sum_{\\text{i}=0}^{\\infty}{\\text{P}\\left(\\text{X}=\\text{x}_\\text{i}\\right).\\text{n}^\\text{i}}=\\text{E}\\left(\\text{n}^\\text{i}\\right) \\end{align*} $$<\/p>\n<p>Note: \\( G\\left( 1 \\right) =P\\left( X=0 \\right) +P\\left( X=1 \\right) +P\\left( X=2 \\right) +P\\left( X=3 \\right) +P\\left( X=4 \\right) +\\cdots P\\left( X=r \\right) =1 \\)<\/p>\n<h4><strong>Example: Probability Generating Function of a Discrete Random Variable<\/strong><\/h4>\n<p>Given the experiment of rolling a single die, find the probability generating function.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>We know that:<\/p>\n<p>$$ \\begin{align*} \\text{G}\\ \\left(\\text{n}\\right)&amp;=\\text{E}\\left(\\text{n}^\\text{i}\\right)\\\\ &amp;=0\\times \\text{n}^0+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^1+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^2+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^3+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^4+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^5 \\\\ &amp;+\\left(\\frac{1}{6}\\right)\\times\\ \\text{n}^6 \\end{align*} $$<\/p>\n<p>It can be useful to express \\(E(X)\\) and \\(Var(X)\\) as a function of the probability generating function as shown below:<\/p>\n<p>$$ \\begin{align*} E\\left( X \\right) &amp;=G^{ \\prime }\\left( 1 \\right) \\\\ \\text{Var}\\left(\\text{X}\\right)&amp;=\\text{G}^{\\prime \\prime}\\left(1\\right)+\\text{G}^{\\prime}\\left(1\\right)-\\left[\\text{G}^{\\prime}\\left(1\\right)\\right]^2 \\\\ \\end{align*} $$<\/p>\n<h4 data-tadv-p=\"keep\"><strong>Example: Probability Generating Function of a Discrete Random Variable<\/strong><\/h4>\n<p>Given the experiment of rolling a single die, find \\(E(X)\\) and \\(Var(X)\\) using the probability generating function.<\/p>\n<p>$$ \\begin{align*} &amp; G\\left( n \\right) =0\\bullet n^{ 0 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 1 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 2 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 3 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 4 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 5 }+\\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 6 } \\\\ &amp; G^{ \\prime }\\left( n \\right) =\\left( \\frac { 1 }{ 6 } \\right) +2\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n+3\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 2 }+4\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 3 }+5\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 4 }+6\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 5 } \\\\ &amp; G^{ \\prime }\\left( 1 \\right) =\\left( \\frac { 1 }{ 6 } \\right) +2\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1+3\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 2 }+4\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 3 }+5\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 4 }+6\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 5 }=3.5 \\\\ &amp; G^{ \\prime \\prime }\\left( n \\right) =2\\bullet \\left( \\frac { 1 }{ 6 } \\right) +3\\bullet 2\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n+4\\bullet 3\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 2 }+5\\bullet 4\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 3 }+6\\bullet 5\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet n^{ 4 } \\\\ &amp; G^{ \\prime \\prime }\\left( 1 \\right) =2\\bullet \\left( \\frac { 1 }{ 6 } \\right) +3\\bullet 2\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1+4\\bullet 3\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 2 }+5\\bullet 4\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 3 }+6\\bullet 5\\bullet \\left( \\frac { 1 }{ 6 } \\right) \\bullet 1^{ 4 } = 11.667 \\\\ &amp; Var\\left( X \\right) =G^{ &#8221; }\\left( 1 \\right) +G^{ &#8216; }\\left( 1 \\right) -\\left[ G^{ &#8216; }\\left( 1 \\right) \\right] ^{ 2 }=11.667+3.5-3.5^{ 2 }=2.92 \\\\ \\end{align*} $$<\/p>\n<h3>Moment Generating Function<\/h3>\n<p>A moment generating function \\(M(t)\\) of a random variable \\(X\\) is defined for all real value of \\(t\\) by:<\/p>\n<p>$$ \\text{M}\\left( \\text{t} \\right) =\\text{E}\\left( { \\text{e} }^{ \\text{tX} } \\right) =\\begin{cases} \\sum _{ \\text{x} }^{ }{ { \\text{e} }^{ \\text{tX} } } \\text{p}\\left( \\text{x} \\right) , \\text{ if X is a discrete with mass function } \\text{p}\\left(\\text{x}\\right) \\\\ \\int _{ -\\infty }^{ \\infty }{ { \\text{e} }^{ \\text{tX} } } \\text{f}\\left( \\text{x} \\right) \\text{dx}, \\text{ if X is continous with density function } \\text{f}\\left(\\text{x}\\right) \\end{cases} $$<\/p>\n<h4>Example: Moment Generating Function of a Discrete Random Variable<\/h4>\n<p>Given the experiment of rolling a single die, find the moment generating function.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>We know that:<\/p>\n<p>\\(M\\left( t \\right) =e^{ t1 }P\\left( X=1 \\right) +e^{ t2 }P\\left( X=2 \\right) +e^{ t3 }P\\left( X=3 \\right) +e^{ t4 }P\\left( X=4 \\right) +e^{ t5 }P\\left( X=5 \\right) +e^{ t6 }P\\left( X=6 \\right) \\)<\/p>\n<p>\\( M\\left( t \\right) =e^{ t }\\left( \\frac { 1 }{ 6 } \\right) +e^{ 2t }\\left( \\frac { 1 }{ 6 } \\right) +e^{ 3t }\\left( \\frac { 1 }{ 6 } \\right) +e^{ 4t }\\left( \\frac { 1 }{ 6 } \\right) +e^{ 5t }\\left( \\frac { 1 }{ 6 } \\right) +e^{ 6t }\\left( \\frac { 1 }{ 6 } \\right) \\)<\/p>\n<p>As with the probability generating function, it can also be useful to use the moment generating function to calculate \\(E(X)\\) and \\(Var(X)\\) as shown in the formulas below:<\/p>\n<p>$$ \\begin{align*} &amp; E \\left(X \\right)= \\mu =M^{\\prime} \\left(0 \\right) \\\\ &amp; E \\left(X^2 \\right)=M^{\\prime\\prime}\\left(0 \\right) \\\\ &amp; Var \\left(X \\right)= {\\sigma}^2= M^{\\prime\\prime} \\left(0 \\right)-\\left[M^{&#8216;} \\left(0 \\right) \\right]^2 \\\\ \\end{align*} $$<\/p>\n<p>Consider the moment generating function above. We wish to calculate \\(\\text{E}\\left(\\text{X}\\right)\\) and \\(\\text{Var}\\left(\\text{X}\\right)\\).<\/p>\n<p>We know that:<\/p>\n<p>$$ \\text{E}\\left(\\text{X}\\right)=\\mu=\\text{M}\\prime(0) $$<\/p>\n<p>The moment generating function is given by:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\text{e}^\\text{t}\\left(\\frac{1}{6}\\right)+\\text{e}^{2\\text{t}}\\left(\\frac{1}{6}\\right)+\\text{e}^{3\\text{t}}\\left(\\frac{1}{6}\\right)+\\text{e}^{4\\text{t}}\\left(\\frac{1}{6}\\right)+\\text{e}^{5\\text{t}}\\left(\\frac{1}{6}\\right)+\\text{e}^{6\\text{t}}\\left(\\frac{1}{6}\\right) $$<\/p>\n<p>Taking the first derivative, we have:<\/p>\n<p>$$ \\text{M}^\\prime\\left(\\text{t}\\right)=\\left(\\frac{1}{6}\\right)\\text{e}^\\text{t}+\\left(\\frac{2}{6}\\right)\\text{e}^{2\\text{t}}+\\left(\\frac{3}{6}\\right)\\text{e}^{3\\text{t}}+\\left(\\frac{4}{6}\\right)\\text{e}^{4\\text{t}}+\\left(\\frac{5}{6}\\right)\\text{e}^{5\\text{t}}+\\left(\\frac{6}{6}\\right)\\text{e}^{6\\text{t}} $$<\/p>\n<p>Substituting \\(t=0\\) in the above equation, we have:<\/p>\n<p>$$ \\text{M}^\\prime\\left(0\\right)=\\left(\\frac{1}{6}\\right)+\\left(\\frac{2}{6}\\right)+\\left(\\frac{3}{6}\\right)+\\left(\\frac{4}{6}\\right)+\\left(\\frac{5}{6}\\right)+\\left(\\frac{6}{6}\\right)=3.5 $$<\/p>\n<p>For the variance, we know that:<\/p>\n<p>$$ \\text{Var}\\left(\\text{X}\\right)=\\sigma^2=\\text{E}\\left(\\text{X}^2\\right)-\\left[\\text{E}\\left(\\text{X}\\right)\\right]^2=\\text{M}^{\\prime\\prime}\\left(0\\right)-\\left[\\text{M}^\\prime\\left(0\\right)\\right]^2 $$<\/p>\n<p>Now taking the second derivative of the moment generating function, we have:<\/p>\n<p>$$ \\begin{align*} \\text{M}^{\\prime \\prime}\\left(\\text{t}\\right)&amp;=\\left(\\frac{1}{6}\\right)\\text{e}^\\text{t}+\\left(\\frac{4}{6}\\right)\\text{e}^{2\\text{t}}+\\left(\\frac{9}{6}\\right)\\text{e}^{3\\text{t}}+\\left(\\frac{16}{6}\\right)\\text{e}^{4\\text{t}}+\\left(\\frac{25}{6}\\right)\\text{e}^{5\\text{t}}+\\left(\\frac{36}{6}\\right)\\text{e}^{6\\text{t}} \\\\ \\Rightarrow\\ \\text{M}^\\prime\\left(0\\right)&amp;=\\left(\\frac{1}{6}\\right)+\\left(\\frac{4}{6}\\right)+\\left(\\frac{9}{6}\\right)+\\left(\\frac{16}{6}\\right)+\\left(\\frac{25}{6}\\right)+\\left(\\frac{36}{6}\\right)=15.167 \\\\ \\text{Var}\\left(\\text{X}\\right)&amp;=\\sigma^2=\\text{M}^{\\prime\\prime}\\left(0\\right)-\\left[\\text{M}^\\prime\\left(0\\right)\\right]^2=15.167-{3.5}^2=2.92 \\end{align*} $$<\/p>\n<h4>Example: Moment Generating Function of Discrete Random Variables<\/h4>\n<p>Suppose that the discrete random variable \\(X\\) has a distribution:<\/p>\n<p>$$ \\text{f}\\left(\\text{x}\\right)= \\begin{cases} \\frac { 1 }{ 2 } ,\\text{x}=1 \\\\ \\frac { 3 }{ 8 } ,\\text{x}=2 \\\\ \\frac { 1 }{ 8 } ,\\text{x}=3 \\end{cases} $$<\/p>\n<p>a. Find the moment generating function \\(M(t)\\).<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>We know that:$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)&amp;=\\text{E}\\left(\\text{e}^{\\text{xt}}\\right)=\\left(\\text{x}+\\text{a}\\right)^\\text{n}=\\sum_{\\text{x}}{\\text{e}^{\\text{xt}}\\text{f}(\\text{x})}\\ \\\\ &amp;=\\text{e}^\\text{tf}\\left(1\\right)+\\text{e}^{2\\text{t}}\\text{f}\\left(2\\right)+\\text{e}^{3\\text{t}}\\text{f}\\left(3\\right) \\\\ &amp;=\\left(\\frac{1}{2}\\right)\\text{e}^{\\prime \\text{t}}+\\left(\\frac{3}{8}\\right)\\text{e}^{2\\text{t}}+\\left(\\frac{1}{8}\\right)\\text{e}^{3t} \\\\ &amp;\\therefore\\ \\text{M}\\left(\\text{t}\\right)=\\frac{1}{2}\\text{e}^\\text{t}+\\frac{3}{8}\\text{e}^{2\\text{t}}+\\frac{1}{8}\\text{e}^{3\\text{t}} \\end{align*} $$<\/p>\n<p>b. Use the moment generating function to find the mean of X.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>The mean of X is \\( \\text{E}\\left(\\text{X}\\right)=\\text{M}\\prime(0) \\).We are given that:$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)&amp;=\\frac{1}{2}\\text{e}^\\text{t}+\\frac{3}{8}\\text{e}^{2\\text{t}}+\\frac{1}{8}\\text{e}^{3t} \\\\ &amp;{\\Rightarrow \\text{M}}^\\prime(\\text{t})=\\frac{1}{2}\\text{e}^t+\\frac{2\\times3}{8}\\text{e}^{2\\text{t}}+\\frac{3\\times1}{8}\\text{e}^{3t} \\\\ &amp;=\\frac{1}{2}\\text{e}^t+\\frac{6}{8}\\text{e}^{2\\text{t}}+\\frac{3}{8}\\text{e}^{3\\text{t}} \\\\ \\text{M}^\\prime\\left(0\\right)&amp;=\\frac{1}{2}\\text{e}^0+\\frac{6}{8}\\text{e}^{2\\times0}+\\frac{3}{8}\\text{e}^{3\\times0}=\\frac{1}{2}+\\frac{6}{8}+\\frac{3}{8}=\\frac{13}{8} \\end{align*} $$Mean of \\( \\text{X}= \\text{M\u2019} (0) = \\frac{13}{8} \\)<\/p>\n<p>c. Use the moment generating function to find the variance of X.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>We know that:$$ \\text{Var}\\ \\left(\\text{X}\\right) \\text{E}\\left(\\text{X}^2\\right)-\\text{E}\\left(\\text{X}\\right)^2=\\text{M}^{\\prime\\prime}\\left(0\\right)-{[\\text{M}}^{\\prime}\\left(0\\right)]2 $$From (b), we have:$$ \\begin{align*} \\text{M}^{\\prime}(\\text{t})&amp;=\\frac{1}{2}e^t+\\frac{6}{8}\\text{e}^{2\\text{t}}+\\frac{3}{8}\\text{e}^{3\\text{t}} \\\\ {\\Rightarrow \\text{M}}^{\\prime\\prime}\\left(\\text{t}\\right)&amp;=\\frac{1}{2}\\text{e}^\\text{t}+\\frac{2\\times6}{8}\\text{e}^{2\\text{t}}+\\frac{3\\times3}{8}\\text{e}^{3\\text{t}}=\\frac{1}{2}\\text{e}^\\text{t}+\\frac{12}{8}\\text{e}^{2\\text{t}}+\\frac{9}{8}\\text{e}^{3\\text{t}} \\\\ &amp;{\\therefore \\text{M}}^{\\prime\\prime}\\left(0\\right)=\\frac{1}{2}\\text{e}^0+\\frac{12}{8}\\text{e}^{2\\times0}+\\frac{9}{8}\\text{e}^{3\\times0} \\\\ &amp;=\\frac{1}{2}+\\frac{12}{8}+\\frac{9}{8}=\\frac{25}{8} \\\\ \\text{Var}\\ (\\text{X})&amp;=\\text{M}^{\\prime\\prime}\\left(0\\right)-\\text{M}^{\\prime}(0)\u00b2 \\\\ &amp;=\\frac{25}{8}-\\left(\\frac{13}{8}\\right)^2=\\frac{25}{8}-\\frac{169}{64}=\\frac{31}{64} \\end{align*} $$<\/p>\n<h4>Example: Moment Generating Function of a Continuous Distribution<\/h4>\n<p>Given the following probability density function of a continuous random variable:<\/p>\n<p>$$ f\\left( x \\right) =\\begin{cases} 0.2{ e }^{ -0.2x }, &amp; 0\\le x\\le \\infty \\\\ 0, &amp; otherwise \\end{cases} $$<\/p>\n<p>Find the moment generating function.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>For a continuous distribution,<\/p>\n<p>$$ \\text{M}\\left(t\\right)=\\ \\int_{-\\infty}^{\\infty}{\\text{e}^{\\text{tx}}\\text{f}\\left(\\text{x}\\right)\\text{dx}} $$<\/p>\n<p>So, in this case:<\/p>\n<p>$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)&amp;=\\int_{0}^{\\infty}{\\text{e}^{\\text{tx}}\\times\\left(0.2\\text{e}^{-0.2\\text{x}}\\right)\\times \\text{dx}} \\\\ \\text{M}\\left(\\text{t}\\right)&amp;=\\int_{0}^{\\infty}{0.2\\text{e}^{\\text{x}\\left(\\text{t}-0.2\\right)}\\text{dx}=\\left[\\frac{0.2\\text{e}^{\\text{x}\\left(t-0.2\\right)}}{\\text{t}-0.2}\\right]_{\\text{x}=0}^{\\text{x}=\\infty}=-\\frac{0.2}{t-0.2}} \\end{align*} $$<\/p>\n<p>As with the moment generating function of the discrete distribution, we can use the moment generating function of a continuous distribution to calculate \\(E(X)\\) and \\(Var(X)\\) using the formulae below:<\/p>\n<p>$$ \\begin{align*} E \\left(X \\right) &amp; = \\mu=M^{\\prime}\\left(0 \\right) \\\\ E \\left(X^2 \\right) &amp; =M^{\\prime\\prime} \\left(0 \\right) \\\\ Var \\left(X \\right) &amp; = {\\sigma}^2= M^{\\prime\\prime} \\left(0 \\right)-\\left[M^{\\prime} \\left(0\\right) \\right]^2 \\\\ \\end{align*} $$<\/p>\n<h4 data-tadv-p=\"keep\"><strong>Example: Calculating Expectation and Variance for MGF <\/strong><\/h4>\n<p>Given the moment generating function shown below, calculate \\(E(X)\\) and \\(Var(X)\\).<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\frac{0.2}{\\text{t}-0.2\\ } $$<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>Note that we can write:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\frac{0.2}{t-0.2\\ }=-0.2\\left(\\text{t}-0.2\\right)^{-1} $$<\/p>\n<p>So that:<\/p>\n<p>$$ \\text{M}^\\prime\\left(\\text{t}\\right)=0.2\\left(\\text{t}-0.2\\right)^{-2} $$<\/p>\n<p>We know that:<\/p>\n<p>$$ \\text{E}\\left(\\text{X}\\right)=\\text{M}^\\prime\\left(0\\right)=0.2\\left(-0.2\\right)^2=\\frac{1}{0.2}=5 $$<\/p>\n<p>Also,<\/p>\n<p>$$ \\begin{align*} {\\text{E}\\left(\\text{X}^2\\right)}&amp;=\\text{M}^{\\prime\\prime} \\left(\\text{t}\\right)=-2\\times0.2\\left(\\text{t}-0.2\\right)^{-3}=-0.4\\left(\\text{t}-0.2\\right)^{-3} \\\\ \\Rightarrow \\text{M}^{\\prime\\prime}\\left(0\\right)&amp;=-0.4\\left(-0.2\\right)^{-3}=50 \\\\ \\therefore \\text{Var}\\left(\\text{X}\\right)&amp;=\\sigma^2=\\text{M}^{\\prime\\prime}\\left(0\\right)-\\left[\\text{M}^\\prime\\left(0\\right)\\right]^2=50-5^2=25 \\end{align*} $$<\/p>\n<h2 style=\"text-align: left;\"><strong>Moment Generating Functions of Common Distributions<\/strong><\/h2>\n<h3 data-tadv-p=\"keep\"><strong>Binomial Distribution<\/strong><\/h3>\n<p>The moment generating function for \\(X\\) with a binomial distribution is an alternate way of determining the mean and variance.<\/p>\n<p>Let us perform <em>n<\/em> independent Bernoulli trials, each of which has a probability of success \\(p\\) and probability of failure \\(1-p\\). Thus, the probability mass function (PMF) is:<\/p>\n<p>$$ \\text{f}\\left(\\text{x}\\right)=\\binom{\\text{n}}{\\text{x}}\\text{p}^\\text{x}\\left(1-\\text{p}\\right)^{\\text{n}-\\text{x}} $$<\/p>\n<p>Where, \\(\\binom{\\text{n}}{\\text{x}}\\) can be written as \\(\\text{C}(\\text{n},\\text{x}) \\) and denotes the number of combinations of <em>n<\/em> elements taken \\(x\\) at a time; where \\(x\\) can take on values \\(0,1,2,3, \u2026,n\\).<\/p>\n<p>Using the PMF, we can obtain the moment generating function of \\(X\\):<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\sum_{\\text{x}=0}^{\\text{n}}{\\text{e}^{\\text{tx}}\\binom{\\text{n}}{\\text{x}}\\text{p}^\\text{x}\\left(1-\\text{p}\\right)^{\\text{n}-\\text{x}}} $$<\/p>\n<p>Combine the terms with exponential of \\(x\\):<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\sum_{\\text{x}=0}^{\\text{n}}{\\left(\\text{pe}^\\text{t}\\right)^\\text{x}\\binom{\\text{n}}{\\text{x}}\\ \\left(1-\\text{p}\\right)^{\\text{n}-\\text{x}}} $$<\/p>\n<p>By using the binomial formula, the expression above is simply:<\/p>\n<p>$$ M \\left(t \\right)={\\left(p{e}^{t}+1-p \\right)}^n $$<\/p>\n<h4 data-tadv-p=\"keep\"><strong>Mean and Variance<\/strong><\/h4>\n<p>In order to calculate the mean and variance, we need to find both \\(\\text{M}\\prime(0)\\) and \\(\\text{M}\\prime\\prime(0)\\).<\/p>\n<p>First, you start by calculating the derivatives, then evaluate each of them at \\(t=0\\). The 1st derivative of the moment generating function is:<\/p>\n<p>$$ \\text{M}^\\prime\\left(\\text{t}\\right)=\\text{n}\\left(\\text{pe}^\\text{t}+1-\\text{p}\\right)^{\\text{n}-1}\\text{pe}^\\text{t} \\\\ \\Rightarrow \\text{M}^\\prime\\left(0\\right)=\\text{n}\\left(\\text{p}+1-\\text{p}\\right)^{\\text{n}-1}\\text{p}=\\text{np} $$<\/p>\n<p>If we differentiate the second time, we get:<\/p>\n<p>$$ \\text{M}^{\\prime\\prime}\\left(\\text{t}\\right)=\\text{n}\\left(\\text{n}-1\\right)\\left(\\text{pe}^t+1-\\text{p}\\right)^{\\text{n}-2}\\left(\\text{pe}^\\text{t}\\right)^2+\\text{n}\\left(\\text{pe}^\\text{t}+1-\\text{p}\\right)^{\\text{n}-1}\\text{pe}^\\text{t} $$<\/p>\n<p>So that:<\/p>\n<p>$$ \\text{E}\\left(\\text{X}^2\\right)=\\text{M}^{\\prime\\prime}\\left(0\\right)=\\text{n}\\left(\\text{n}-1\\right)\\text{p}^2+\\text{np} $$<\/p>\n<p>We know that:<\/p>\n<p>$$ \\text{Var}\\left(\\text{X}\\right)=\\text{E}\\left(\\text{X}^2\\right)-\\left[\\text{E}\\left(\\text{X}\\right)\\right]^2=\\text{n}\\left(\\text{n}-1\\right)\\text{p}^2+\\text{np}-\\text{n}^2\\text{p}^2=\\text{np}(1-\\text{p}) $$<\/p>\n<h3 data-tadv-p=\"keep\"><strong>Negative Binomial Distribution<\/strong><\/h3>\n<p>The moment generating function of a negative binomial distribution is given by:<\/p>\n<p>$$ M\\left( t \\right) ={ \\left[ \\frac { p{ e }^{ t } }{ 1-\\left( 1-p \\right) { e }^{ t } } \\right] }^{ r } $$<\/p>\n<p>Which is derived as follows:<\/p>\n<p>$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)=\\text{E}\\left[\\text{e}^{\\text{tX}}\\right]&amp;=\\sum_{\\text{k}=\\text{r}}^{\\infty}{\\text{e}^{\\text{tk}}\\binom{\\text{k}-1}{\\text{r}-1}\\left(1-\\text{p}\\right)^{\\text{k}-\\text{r}}\\text{p}^\\text{r}} \\\\ &amp;=\\sum_{\\text{k}=\\text{r}}^{\\infty}{\\text{e}^{\\text{tk}}\\binom{\\text{k}-1}{\\text{r}-1}\\left(1-\\text{p}\\right)^{\\text{k}-\\text{r}}\\text{p}^\\text{r}\\times\\frac{\\text{e}^{\\text{tr}}}{\\text{e}^{\\text{tr}}}} \\\\ &amp;=\\sum_{\\text{k}=\\text{r}}^{\\infty}{\\text{e}^{\\text{t}\\left(\\text{k}-\\text{r}\\right)}\\binom{\\text{k}-1}{\\text{r}-1}\\left(1-\\text{p}\\right)^{\\text{k}-\\text{r}}{(\\text{e}}^\\text{t}{\\text{p})}^\\text{r}} \\\\ &amp;=\\left(\\text{e}^\\text{t} \\text{p}\\right)^\\text{r}\\sum_{\\text{k}=\\text{r}}^{\\infty}{\\binom{\\text{k}-1}{\\text{r}-1}{(\\text{e}}^\\text{t}{\\left(1-\\text{p}\\right))}^{\\text{k}-\\text{r}}} \\\\ \\end{align*} $$<\/p>\n<p>Setting \\(j=k-r\\),<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)={\\text{e}^\\text{t}}{\\text{p}}^\\text{r}\\sum_{\\text{j}=0}^{\\infty}{{\\text{j}+\\text{r}-1}{\\text{r}-1}(\\text{e}^\\text{t}{\\left(1-\\text{p}\\right))}^\\text{j}} \\\\ \\frac{\\text{e}^\\text{t}{\\text{p})}^\\text{r}}{(1-\\text{e}^\\text{t}(1-{\\text{p}))}^\\text{r}}=\\text{M}\\left(\\text{t}\\right)=\\left[\\frac{\\text{pe}^\\text{t}}{1-\\left(1-\\text{p}\\right)\\text{e}^\\text{t}}\\right]^\\text{r} $$<\/p>\n<h3 data-tadv-p=\"keep\"><strong>Geometric Distribution<\/strong><\/h3>\n<p>The moment generating function of geometric distribution is given by:<\/p>\n<p>$$ M\\left( t \\right) =\\frac { p{ e }^{ t } }{ 1-\\left( 1-p \\right) { e }^{ t } } $$<\/p>\n<p>The moment generating function for \\( \\text{X}\\sim geometric \\left(\\text{p}\\right)\\) is derived as:<\/p>\n<p>$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)&amp;=\\text{E}[\\text{e}^{\\text{tX}}] \\\\ &amp;=\\sum_{\\text{x}=0}^{\\infty}{\\text{e}^{\\text{tx}}\\text{p}\\left(1-\\text{p}\\right)^\\text{x}} \\\\ \\text{Step}\\ (\\text{i})&amp;=\\text{p}\\sum_{\\text{x}=0}^{\\infty}{(\\text{e}^\\text{t}{\\left(1-\\text{p}\\right))}^\\text{x}} \\end{align*} $$<\/p>\n<p>Where the series in step (i) converges only if:<\/p>\n<p>$$ \\left(1-\\text{p}\\right)\\text{e}^\\text{t}$$<\/p>\n<p>Meaning, only if:<\/p>\n<p>$$ \\text{e}^\\text{t}&lt;\\frac{1}{(1-\\text{p})} $$<\/p>\n<p>The condition becomes \\( \\text{t}&lt;-\\ln(1-\\text{p}) \\) by taking the natural log of both sides.<\/p>\n<p>$$ \\text{M}(\\text{t})=\\frac{\\text{p}}{1-\\left(1-\\text{p}\\right)\\text{e}^\\text{t}} $$<\/p>\n<h3 data-tadv-p=\"keep\"><strong>Poisson Distribution<\/strong><\/h3>\n<p>Let \\(X\\) be a discrete random variable with a Poisson distribution with parameter \\( \\lambda \\) for some \\( \\lambda\\epsilon\\text{R}&gt;0 \\).<\/p>\n<p>Then the moment generating function \\({\\text{M} }_{\\text{X}}\\) of X is given by:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\text{e}^{\\lambda\\left(\\text{e}^\\text{t}-1\\right)} $$<\/p>\n<h4 data-tadv-p=\"keep\">Proof<\/h4>\n<p>From Poisson distribution definition, \\(X\\) has a PMF:<\/p>\n<p>$$ \\text{P}\\left(\\text{X}=\\text{n}\\right)=\\frac{\\lambda^\\text{n} \\text{e}^{-\\lambda}}{\\text{n}!} $$<\/p>\n<p>From the moment generating function definition:<\/p>\n<p>$$ \\text{M}_\\text{X}\\left(\\text{t}\\right)=\\text{E}\\left(\\text{e}^{\\text{tX}}\\right)=\\sum_{\\text{n}=0}^{\\infty}{\\text{P}\\left(\\text{X}=\\text{n}\\right)\\text{e}^{\\text{tn}}} $$<\/p>\n<p>Thus,<\/p>\n<p>$$ \\text{M}_\\text{X}\\left(\\text{t}\\right)=\\sum_{\\text{n}=0}^{\\infty}\\frac{\\lambda^\\text{n} \\text{e}^{-\\lambda}}{\\text{n}!}\\text{e}^{\\text{tn}}\\\\ =\\text{e}^ {-\\lambda}\\sum_{\\text{n}=0}^{\\infty}\\frac{\\left(\\lambda \\text{e}^\\text{t}\\right)^\\text{n}}{\\text{n}!} $$<\/p>\n<p>By the power series expansion for the exponential function:<\/p>\n<p>$$ =\\text{e}^{-\\lambda}\\sum_{\\text{n}=0}^{\\infty}\\frac{\\left(\\lambda \\text{e}^\\text{t}\\right)^\\text{n}}{\\text{n}!}{=\\text{e}}^{-\\lambda}\\text{e}^{\\lambda \\text{e}^\\text{t}\\ \\ \\ \\ \\ }\\ \\ =\\text{e}^{\\lambda\\left(\\text{e}^\\text{t}-1\\right)} $$<\/p>\n<h3>Uniform Distribution<\/h3>\n<p>Let \\(\\text{X}~\\text{U}[\\text{a}\\ .\\ .\\text{b}] \\) for some \\(\\text{a},\\ \\text{b}\\ \\epsilon\\mathbb{\\text{R}},\\ \\text{a}\\neq\\ \\text{b},\\) where U is the continuous uniform distribution<\/p>\n<p>Then the moment generating function of \\(X\\), \\({\\text{M}}_{\\text{X}}\\), is given by:<\/p>\n<p>$$ {\\text{M}}_{\\text{X}}\\left(\\text{t}\\right) = \\begin{cases} \\frac { \\text{e}^{ \\text{tb} }-\\text{e}^{ \\text{ta} } }{ \\text{t}(\\text{b}-\\text{a}) } &amp; \\text{t}\\neq 0 \\\\ 1 &amp; \\text{t}= 0 \\\\ \\end{cases} $$<\/p>\n<h4 data-tadv-p=\"keep\">Proof<\/h4>\n<p>The definition of continuous uniform distribution, \\(X\\) has a PMF of:<\/p>\n<p>$$ \\text f_{\\text X}\\left(\\text x\\right)= \\begin{cases} \\frac { 1 }{ \\text{b}-\\text{a} } &amp; \\text{a}\\le \\text{x}\\le \\text{b} \\\\ 0 &amp; \\text{otherwise} \\\\ \\end{cases} $$<\/p>\n<p>The moment generating function definition goes as follows:<\/p>\n<p>$$ \\text{M}_\\text{X}\\left(t\\right)=\\mathbb{\\text{E}}\\left[\\text{e}^{\\text{tX}}\\right]=\\int_{\\infty}^{\\infty}{\\text{e}^{\\text{tx}}\\text{f}_\\text{X}(\\text{x})\\text{dx}} $$<\/p>\n<p>Then, we first have to consider that \\(\\text{t}\\neq 0\\).<\/p>\n<p>Thus,<\/p>\n<p>$$ \\begin{align*} \\text{M}_\\text{X}\\left(\\text{t}\\right)&amp;=\\int_{\\infty}^{\\text{a}}{0\\text{e}^{\\text{tx}}\\text{dx}+\\int_{\\text{a}}^{\\text{b}}{\\frac{\\text{e}^{\\text{tx}}}{\\text{b}-\\text{a}}\\text{dx}+\\int_{\\text{b}}^{\\infty}{0\\text{e}^{\\text{tx}}\\text{dx}}}} \\\\ &amp;{=\\left[\\frac{\\text{e}^{\\text{tx}}}{\\text{t}\\left(\\text{b}-\\text{a}\\right)}\\right]}_\\text{a}^\\text{b}\\ \\text{ by primitive of e}^{\\text{ax}}\\ (\\text{a fundamental theorem of calculus}) \\\\ \\text{M}_\\text{X}(\\text{t})&amp;=\\frac{\\text{e}^{\\text{tb}}-\\text{e}^{\\text{ta}}}{\\text{t}(\\text{b}-\\text{a})} \\end{align*} $$<\/p>\n<p><strong>Note<\/strong>: For \\(t=0\\), we have \\( \\mathbb{\\text{E}}\\left[\\text{X}^0\\right]=\\mathbb{\\text{E}}\\left[1\\right]=1 \\).<\/p>\n<h3>Exponential Distribution<\/h3>\n<p>If \\(X\\) has an exponential distribution, then the formulae below apply:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\frac{\\lambda}{\\lambda-\\text{t}} $$<\/p>\n<h4 data-tadv-p=\"keep\">Proof<\/h4>\n<p>$$ \\begin{align*} \\text{M}\\left(\\text{t}\\right)&amp;=\\text{E}\\left(\\text{e}^{\\text{tX}}\\right)\\\\ &amp;=\\int_{0}^{\\infty}{\\text{e}^{\\text{tx}}\\lambda \\text{e}^{-\\lambda \\text{x}}\\text{dx}} \\\\ &amp;=\\lambda\\int_{0}^{\\infty}{\\text{e}^{-\\left(\\lambda-t\\right)\\text{x}}\\ \\text{dx}\\ }\\\\ &amp;=\\frac{\\lambda}{\\lambda-\\text{t}}\\ for\\ \\text{t}&lt;\\lambda \\end{align*} $$<\/p>\n<p>Note that:<\/p>\n<p>$$ \\begin{align*} \\text{M}^\\prime\\left(\\text{t}\\right)&amp; =\\frac{\\lambda}{\\left(\\lambda-\\text{t}\\right)^2} \\\\ \\Rightarrow \\text{M}^\\prime\\left(0\\right) &amp; =\\frac{1}{\\lambda} \\\\ \\therefore \\text{E}\\left(\\text{X}\\right) &amp; =\\frac{1}{\\lambda} \\end{align*} $$<\/p>\n<p>Also,<\/p>\n<p>$$ \\begin{align*} \\text{M}^{\\prime\\prime}\\left(\\text{t}\\right)&amp;=\\frac{2\\lambda}{\\left(\\lambda-t\\right)^3}\\\\ \\Rightarrow\\ \\text{M}^{\\prime\\prime}\\left(0\\right) &amp; =\\frac{2}{\\lambda^2} \\\\ \\therefore\\ \\text{Var}\\left(\\text{X}\\right)&amp; =\\frac{2}{\\lambda^2}-\\left(\\frac{1}{\\lambda}\\right)^2=\\frac{1}{\\lambda^2} \\end{align*} $$<\/p>\n<h3>Gamma Distribution<\/h3>\n<p>If \\(X\\) has a gamma distribution over the interval \\( [0,\\ \\infty] \\) with parameters \\(k\\) and \\({ \\lambda } \\), then the formulae below apply:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\left[\\frac{\\lambda}{\\lambda-\\text{t}}\\right]^\\text{s} $$<\/p>\n<h3>Normal Distribution<\/h3>\n<p>Let \\( \\text{x}\\sim \\text{N}(\\mu,\\ \\sigma^2) \\), then the moment generating function is:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\text{e}^{\\mu \\text{t}+\\frac{\\left(\\sigma^2\\text{t}^2\\right)}{2}} $$<\/p>\n<p>Intuitively, the MGF of a standard normal variable is:<\/p>\n<p>$$ \\text{M}\\left(\\text{t}\\right)=\\text{e}^\\frac{\\text{t}^2}{2} $$<\/p>\n<p><i>Learning Outcome<\/i><\/p>\n<p><i>Topic 2.e: Univariate Random Variables &#8211; Define probability generating functions and moment generating functions and use them to calculate probabilities and moments.<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Probability Generating Function The probability generating function of a discrete random variable is a power series representation of the random variable\u2019s probability density function as shown in the formula below: $$ \\begin{align*} \\text{G}\\left(\\text{n}\\right)&amp;=\\text{P}\\ \\left(\\text{X}\\ =\\ 0\\right)\\bullet \\ \\text{n}^0\\ +\\ \\text{P}\\&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-2993","post","type-post","status-publish","format-standard","hentry","category-univariate-random-variables","blog-post","no-post-thumbnail","animate"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Probability &amp; Moment Generating Functions | SOA P<\/title>\n<meta name=\"description\" content=\"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Probability &amp; Moment Generating Functions | SOA P\" \/>\n<meta property=\"og:description\" content=\"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"CFA, FRM, and Actuarial Exams Study Notes\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-28T14:40:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-30T18:06:21+00:00\" \/>\n<meta name=\"author\" content=\"Jasmine Keizer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jasmine Keizer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/\"},\"author\":{\"name\":\"Jasmine Keizer\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/#\\\/schema\\\/person\\\/2280b3ab50717cffd45a0f28f27eb6b5\"},\"headline\":\"Probability Generating Functions and Moment Generating Functions\",\"datePublished\":\"2019-06-28T14:40:37+00:00\",\"dateModified\":\"2026-01-30T18:06:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/\"},\"wordCount\":3655,\"articleSection\":[\"Univariate Random Variables\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/\",\"url\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/\",\"name\":\"Probability & Moment Generating Functions | SOA P\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/#website\"},\"datePublished\":\"2019-06-28T14:40:37+00:00\",\"dateModified\":\"2026-01-30T18:06:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/#\\\/schema\\\/person\\\/2280b3ab50717cffd45a0f28f27eb6b5\"},\"description\":\"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/actuarial-exams\\\/soa\\\/p-probability\\\/univariate-random-variables\\\/define-probability-generating-functions-and-moment-generating-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Probability Generating Functions and Moment Generating Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/#website\",\"url\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/\",\"name\":\"CFA, FRM, and Actuarial Exams Study Notes\",\"description\":\"Question Bank and Study Notes for the CFA, FRM, and Actuarial exams\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/#\\\/schema\\\/person\\\/2280b3ab50717cffd45a0f28f27eb6b5\",\"name\":\"Jasmine Keizer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g\",\"caption\":\"Jasmine Keizer\"},\"url\":\"https:\\\/\\\/analystprep.com\\\/study-notes\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Probability & Moment Generating Functions | SOA P","description":"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/","og_locale":"en_US","og_type":"article","og_title":"Probability & Moment Generating Functions | SOA P","og_description":"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.","og_url":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/","og_site_name":"CFA, FRM, and Actuarial Exams Study Notes","article_published_time":"2019-06-28T14:40:37+00:00","article_modified_time":"2026-01-30T18:06:21+00:00","author":"Jasmine Keizer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jasmine Keizer","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/#article","isPartOf":{"@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/"},"author":{"name":"Jasmine Keizer","@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/2280b3ab50717cffd45a0f28f27eb6b5"},"headline":"Probability Generating Functions and Moment Generating Functions","datePublished":"2019-06-28T14:40:37+00:00","dateModified":"2026-01-30T18:06:21+00:00","mainEntityOfPage":{"@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/"},"wordCount":3655,"articleSection":["Univariate Random Variables"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/","url":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/","name":"Probability & Moment Generating Functions | SOA P","isPartOf":{"@id":"https:\/\/analystprep.com\/study-notes\/#website"},"datePublished":"2019-06-28T14:40:37+00:00","dateModified":"2026-01-30T18:06:21+00:00","author":{"@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/2280b3ab50717cffd45a0f28f27eb6b5"},"description":"Learn probability and moment generating functions, compare PGF vs MGF, and see how they are used to derive moments in SOA Exam P.","breadcrumb":{"@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/analystprep.com\/study-notes\/actuarial-exams\/soa\/p-probability\/univariate-random-variables\/define-probability-generating-functions-and-moment-generating-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/analystprep.com\/study-notes\/"},{"@type":"ListItem","position":2,"name":"Probability Generating Functions and Moment Generating Functions"}]},{"@type":"WebSite","@id":"https:\/\/analystprep.com\/study-notes\/#website","url":"https:\/\/analystprep.com\/study-notes\/","name":"CFA, FRM, and Actuarial Exams Study Notes","description":"Question Bank and Study Notes for the CFA, FRM, and Actuarial exams","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/analystprep.com\/study-notes\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/2280b3ab50717cffd45a0f28f27eb6b5","name":"Jasmine Keizer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d6cbbbd1d0c7637649aa2a266d4b93d5b354480307d29433711b664817e0497?s=96&d=mm&r=g","caption":"Jasmine Keizer"},"url":"https:\/\/analystprep.com\/study-notes\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/2993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/comments?post=2993"}],"version-history":[{"count":43,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/2993\/revisions"}],"predecessor-version":[{"id":27770,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/2993\/revisions\/27770"}],"wp:attachment":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/media?parent=2993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/categories?post=2993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/tags?post=2993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}