The probability density function of Logistic distribution $f(x) = e^{-x} (1+e^{-x})^{-2}$
LL_cdf <- function(x) ((1+exp(-x))^(-1) # cumulative distribution function of logistic distribution
LL_pdf <- function(x) ( (exp(-x))*(1+exp(-x))^-2 ) # Probability density function (pdf) of logistic distribution
The integration of the pdf of any distribution on its support must be one. We integrate the pdf of logistic distribution on its support $x \in [-\infty,\infty]$ but It gives error message. We mention the the error message in code below. Why the pdf of the logistic distribution does not integrate over its support $x \in [-\infty,\infty]$ in R?
integrate( LL_pdf, lower = -Inf, upper = Inf)$value
Error in integrate(LL_pdf, lower = -Inf, upper = Inf) :
non-finite function value