# pdflogistic¶

## Purpose¶

Computes the probability density function for the logistic distribution.

## Format¶

p = pdflogistic(x, a, b)
Parameters
• x (NxK matrix or an Nx1 vector or scalar) – data

• a (NxK matrix, Nx1 vector or scalar) – Location parameter, ExE conformable with x.

• b (NxK matrix, Nx1 vector or scalar) – Scale parameter, ExE conformable with x. b must be greater than 0.

Returns

p (NxK matrix, Nx1 vector or scalar) – the probability density function for the logistic distribution at the elements in x.

## Remarks¶

The probability density function for the logistic distribution is defined as

$\begin{split}f(x) = \frac{exp⁡(z)}{b(1 + exp⁡(z))^2}\\ z = -⁡ \bigg(\frac{x-a}{b}\bigg)\end{split}$

Functions cdflogistic()