Virtual Laboratories > Special Distributions > 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15

13. The Logistic Distribution


The logistic distribution has been used for various growth models, and is used in a certain type of regression, known appropriately as logistic regression.

The Standard Logistic Distribution

Mathematical Exercise 1. Let F(x) = ex / (1 + ex) for x in R. Show that F is a distribution function.

The distribution defined by the function in Exercise 1 is called the (standard) logistic distribution.

Mathematical Exercise 2. Suppose that X has the logistic distribution. Find P(-1 < X < 2).

Mathematical Exercise 3. Show that the density function f of the logistic distribution is given by

f(x) = ex / (1 + ex)2 for x in R.

Mathematical Exercise 4. Sketch the graph of the logistic density function f. In particular, show that

  1. f is symmetric about x = 0.
  2. f(x) is increasing for x < 0 and decreasing for x > 0. Thus the mode occurs at x = 0.

Simulation Exercise 5. In the random variable experiment, select the logistic distribution. Note the shape and location of the density function. Run the simulation 1000 times with an update frequency of 10 and note the apparent convergence of the empirical density to the true density.

Mathematical Exercise 6. Show that the quantile function is

F-1(p) = ln[p / (1 - p)] for p in (0, 1).

Recall that p : 1 - p are the odds in favor of an event with probability p. Thus, the logistic distribution has the interesting property that the quantiles are the logarithms of the corresponding odds. Indeed, this function of p is sometimes called the logit function. Note that, by symmetry, the median of the logistic distribution is 0.

Mathematical Exercise 7. Find the first and third quartiles of the logistic distribution and compute the interquartile range.

Simulation Exercise 8. In the quantile applet, select the logistic distribution. Note the shape and location of the density function and the distribution function. Find the quantiles of order 0.1 and 0.9.

The moment generating function of the logistic distribution has a simple representation in terms of the beta function, and hence also in terms of the gamma function. The moment generating function, in turn, can be used to compute the mean and variance.

Mathematical Exercise 9. Show that the moment generating function is

M(t) = beta(1 + t, 1 - t) = gam(1 + t) gam(1 - t) for -1 < t < 1.

Hint: In the integral for M(t), make the substitution u = 1 / (1 + ex).

Mathematical Exercise 10. Suppose that X has the logistic distribution. Show that

  1. E(X) = 0
  2. var(X) = 2/ 3.

Simulation Exercise 11. In the random variable experiment, select the logistic distribution. Note the shape and location of the mean/standard deviation bar. Run the simulation 1000 times with an update frequency of 10 and note the apparent convergence of the empirical moments to the true moments.

The General Logistic Distribution

The general logistic distribution is the location-scale family associated with the standard logistic distribution. Thus, if Z has the standard logistic distribution, then for any a and any b > 0,

X = a + bZ

has the logistic distribution with location parameter a and scale parameter b. Analogues of the results above for the general logistic distribution follow easily from basic properties of the location-scale transformation.

Mathematical Exercise 12. Show that the density function is

f(x) = (1 / b) exp[(x - a) / b] / {1 + exp[(x - a) / b]}2 for x in R.

Mathematical Exercise 13. Sketch the graph of the density function f. In particular, show that

  1. f is symmetric about x = a.
  2. f(x) is increasing for x < a and decreasing for x > a. Thus the mode occurs at x = a.

Mathematical Exercise 14. Show that the distribution function is

F(x) = exp[(x - a) / b] / {1 + exp[(x - a) / b]}for x in R.

Mathematical Exercise 15. Show that the quantile function is

F-1(p) = a + b ln[p / (1 - p)] for p in (0, 1).

In particular, the median occurs at x = a.

Mathematical Exercise 16. Show that the moment generating function is

M(t) = exp(ta) beta(1 + tb, 1 - tb) for -1 < t < 1.

Mathematical Exercise 17. Show that the mean and variance are

  1. E(X) = a.
  2. var(X) = b2 2/ 3.

Transformations

Mathematical Exercise 18. Suppose that X has the Pareto distribution with shape parameter a = 1. Show that Y = ln(X - 1) has the standard logistic distribution.