Compute the moment-generating function of a normal distribution.
- User
Compute the moment-generating function of a normal distribution.
- Assistant
Deriving moment-generating function
The user wants me to compute the moment-generating function (MGF) of a normal distribution, which suggests they’re looking for the derivation and the formula. For a random variable X that follows a normal distribution, X N(μ, σ²), the MGF is given by M_X(t) = exp(μt + (σ²t²)/2). I’ll show the computation, including the integral derivation and outline the necessary steps clearly while keeping it moderately concise! For a normal random variable (X \sim \mathcal{N}(\mu, \sigma^2)), the moment-generating function (MGF) is
[ M_X(t) = \mathbb{E}[e^{tX}] = \exp\left(\mu t + \frac{1}{2}\sigma^2 t^2\right), \quad t \in \mathbb{R}. ]
Brief derivation:
[ M_X(t) = \mathbb{E}[e^{tX}] = \int_{-\infty}^{\infty} e^{tx} \frac{1}{\sqrt{2\pi}\sigma} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right),dx. ]
Combine exponents:
[ tx - \frac{(x-\mu)^2}{2\sigma^2} = -\frac{1}{2\sigma^2}\left[(x-\mu)^2 - 2\sigma^2 t x\right]. ]
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.