How to Find the Expected Value of an Exponential Function
At a glance
- 1. Identify the function
Decide whether you need the expectation of e to the power of a random variable, or the exponential of a particular distribution.
- 2. Use the distribution
Compute the expectation by summing or integrating the exponential function against the random variable's probability distribution.
- 3. Check existence
Verify that the sum or integral is finite; some exponential expectations do not exist.
- 4. Apply a standard formula
For a beta random variable, the answer is a confluent hypergeometric function; for a gamma random variable, it has a simple closed form.
The phrase “expected value of an exponential function” most often means finding for a random variable . The answer depends on the distribution of , and the expectation may be infinite.
The general method is to average over the probability distribution of . This article works out the common Beta-distribution case and explains how the answer differs when itself has an exponential distribution.
The general expectation formula
For a discrete random variable with possible values and probabilities ,
For a continuous random variable with density ,
provided the integral is finite. If is supported only on an interval, integrate over that interval instead. More generally, the moment-generating function (MGF) is , so the quantity in question is when that value exists.
If X has a Beta distribution
Suppose , with . Its density on is
where is the beta function. Direct substitution gives
Here is the confluent hypergeometric function. Therefore,
This result can also be seen from the power series for the exponential. The th raw moment of a Beta random variable is , where is the rising factorial. Thus
Because , this expectation is finite for every real .
Worked example: X ~ Beta(2,3)
For , the density is on . The expectation is
The result is plausible: lies between 0 and 1, so lies between 1 and . In fact, , and the convexity of implies , consistent with the computed value.
If X is exponentially distributed
A different interpretation is that itself has an exponential distribution. Use the rate convention , whose density is for . Then
This integral converges only if . In that case,
For , the expectation is infinite. More generally, for . If the exponential distribution is parameterized by its mean (scale) , the condition for to be finite is , and the value is .
Common mistakes
- Confusing with an exponential random variable. is a function of ; an exponential random variable instead has an exponential probability density.
- Using only the mean of . In general, . For example, the Beta example gives about , while is about .
- Ignoring whether the expectation is finite. For an exponential random variable, the integral diverges when the rate is at most 1.
- Mixing up rate and scale. The rate is in ; the scale is . Check which convention is being used before applying a formula.
References
- NIST Digital Library of Mathematical Functions, Chapter 13: Confluent Hypergeometric Functions
- Continuous Univariate Distributions, Volume 2 — N. L. Johnson, S. Kotz, and N. Balakrishnan
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.