Virtual Laboratories > Special Distributions > 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15
The logistic distribution has been used for various growth models, and is used in a certain type of regression, known appropriately as logistic regression.
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.
2. Suppose that X has the logistic distribution. Find P(-1
< X < 2).
3. Show that the density function f of the logistic distribution
is given by
f(x) = ex / (1 + ex)2 for x in R.
4. Sketch the graph of the logistic density function f. In
particular, show that
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.
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.
7. Find the first and third quartiles of the logistic distribution and
compute the interquartile range.
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.
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).
10. Suppose that X has the logistic distribution. Show that
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 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.
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.
13. Sketch the graph of the density function f. In
particular, show that
14.
Show that the distribution function is
F(x) = exp[(x - a) / b] / {1 + exp[(x - a) / b]}for x in R.
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.
16. Show that the moment generating function
is
M(t) = exp(ta) beta(1 + tb, 1 - tb) for -1 < t < 1.
17. Show that the mean and variance are
18. Suppose that X has the Pareto distribution with shape
parameter a = 1. Show that Y = ln(X - 1) has the standard logistic
distribution.