Logistic function: Difference between revisions
Line 43: | Line 43: | ||
We can write this in an alternate way that is sometimes more useful. We split the expression as a product: | We can write this in an alternate way that is sometimes more useful. We split the expression as a product: | ||
<math>g'(x) = \frac{1}{1 + e^{-x}} \frac{e^{-x}}{1 + e^{-x}}</math> | <math>g'(x) = \left( \frac{1}{1 + e^{-x}} \right) \left(\frac{e^{-x}}{1 + e^{-x}}\right)</math> | ||
The first factor on the right is <math>g(x)</math>, and the second factor is <math>1 - g(x)</math>, so this simplifies to: | The first factor on the right is <math>g(x)</math>, and the second factor is <math>1 - g(x)</math>, so this simplifies to: |
Revision as of 18:04, 12 September 2014
Definition
The logistic function is a function with domain and range the open interval , defined as:
Equivalently, it can be written as:
For this page, we will denote the function by the letter .
We may extend the logistic function to a function , where and .
Probabilistic interpretation
The logistic function transforms the logarithm of the odds to the actual probability. Explicitly, given a probability (strictly between 0 and 1)of an event occurring, the odds in favor of are given as:
This could take any value in
The logarithm of odds is the expression:
If equals the above expression, then the function describing in terms of is the logistic function.
Differentiation
First derivative
Consider the expression for :
We can differentiate this using the chain rule for differentiation (the inner function being and the outer function being the reciprocal function . We get:
Simplifying, we get:
We can write this in an alternate way that is sometimes more useful. We split the expression as a product:
The first factor on the right is , and the second factor is , so this simplifies to:
Functional equations
Symmetry equation
The logistic function has the property that its graph has symmetry about the point . Explicitly, it satisfies the functional equation:
We can see this algebraically:
Multiply numerator and denominator by , and get:
Differential equation
As discussed in the #First derivative section, the logistic function satisfies the condition:
Therefore, is a solution to the autonomous differential equation:
The general solution to that equation is the function where . The initial condition at pinpoints the logistic function uniquely.
Key data
Item | Value |
---|---|
default domain | all of , i.e., all reals |
range | the open interval , i.e., the set |
derivative | the derivative is . If we denote the logistic function by the letter , then we can also write the derivative as |
second derivative | If we denote the logistic function by the letter , then we can also write the derivative as |
logarithmic derivative | the logarithmic derivative is If we denote the logistic function by , the logarithmic derivative is |
critical points | none |
critical points for the derivative (correspond to points of inflection for the function) | ; the corresponding point on the graph of the function is . |
local maximal values and points of attainment | none |
local minimum values and points of attainment | none |
intervals of interest | increasing and concave up on increasing and concave down on |
horizontal asymptotes | asymptote at corresponding to the limit for asymptote at corresponding to the limit for |
inverse function | inverse logistic function or log-odds function given by |