How to Test the Mean of an Exponential Distribution
At a glance
- 1. State the model
Assume independent observations follow an exponential distribution with unknown mean μ.
- 2. Compute the statistic
Under the null mean μ₀, calculate T = 2 times the sample sum divided by μ₀.
- 3. Use the chi-square law
Compare T with a chi-square distribution with 2n degrees of freedom.
- 4. Decide and interpret
Use the alternative hypothesis to choose a tail or two-sided p-value, then report the conclusion.
If you have a sample from an exponential distribution and want to test a proposed population mean, you can use an exact test rather than relying on a normal approximation. The method follows from the distribution of the sample sum.
Assume throughout that are independent observations from an exponential distribution with mean . Its density is
The exact test statistic
Suppose the null hypothesis is . Under this null, each observation has mean , and the sum has a gamma distribution with shape and scale . Equivalently, the scaled sum has a chi-square distribution:
The degrees of freedom are , not . This is an exact result for exponential data; it does not require a large sample.
Choose the alternative before calculating the p-value:
- For , unusually large sums count against the null. The p-value is .
- For , unusually small sums count against the null. The p-value is .
- For a two-sided alternative , an ordinary exact choice is the equal-tail p-value: twice the smaller of the two tail probabilities, capped at 1.
There is more than one possible definition of a two-sided test for a discrete distribution. The chi-square distribution here is continuous, but different two-sided rules can still differ. State the rule you use; equal-tail testing is a common, straightforward choice.
Worked example
Suppose independent waiting times have a total of time units. Test against at significance level .
First calculate the statistic:
Under the null, follows . For an equal-tail test, the 5% critical values are approximately and . Since , reject .
The upper-tail probability is approximately , while the lower-tail probability is about . The equal-tail two-sided p-value is therefore approximately . This is below , so the data provide evidence that the mean differs from 2; because the observed sum is high, the sample points toward a larger mean. The sample mean is .
Using a confidence interval instead
The same pivot produces an exact confidence interval for the mean. Let denote the quantile of a chi-square distribution with degrees of freedom (the probability to its left is ). A two-sided interval is
For the example, a 95% interval uses the 97.5th and 2.5th percentiles of :
The null value is outside this interval, consistent with rejecting the two-sided null at the 5% level. A one-sided test corresponds to a one-sided confidence bound rather than this two-sided interval.
If the parameter is the rate
Some texts write the exponential density as , where is the rate. The mean is . To test a proposed rate , use
Be careful about the direction: a larger rate means a smaller mean. Thus, testing corresponds to sums that are unusually small, not large.
Common mistakes
- Using the wrong degrees of freedom: the statistic based on the sum has degrees of freedom.
- Mixing up mean and rate: the mean is in the rate parameterization.
- Choosing the tail after seeing the data: specify whether the alternative is greater, less, or different before interpreting a p-value.
- Assuming the model fits automatically: the exact result assumes independent, identically distributed exponential observations with complete measurements. Censoring, dependence, or a poor exponential fit requires a model and test that account for those features.
- Treating a non-significant result as proof: failure to reject means the data did not provide enough evidence against the proposed mean; it does not establish that the mean equals .
References
- Statistical Inference, George Casella and Roger L. Berger
- Probability and Statistics, Morris H. DeGroot and Mark J. Schervish
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.