Logistic log-loss function of one variable
Definition
The logistic log-loss function of one variable is obtained by composing the logarithmic cost function with the logistic function, and it is of importance in the analysis of logistic regression.
Explicitly, the function has the form:
where is the logistic function and denotes the natural logarithm. Explicitly, .
Note that , so the above can be written as:
We restrict to the interval . Conceptually, is the corresponding probability.
More explicitly, is the function:
Key data
| Item | Value |
|---|---|
| default domain | all of , i.e., all reals |
| range | where is the minimum value, given as . |
| local maximum value and points of attainment | No local maximum values |
| local minimum value and points of attainment | Local minimum value , attained at . |
| derivative | where is the logistic function |
| second derivative | |
| third derivative |
Differentiation
WHAT WE USE: chain rule for differentiation, Logistic function#First derivative
First derivative
We use that:
or equivalently:
Similarly:
Plugging these in, we get:
This simplifies to:
Second derivative
Using the first derivative and the expression for , we obtain:
Note that the second derivative is independent of .