# `stats`::`logisticPDF`

Probability density function of the logistic distribution

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

## Syntax

```stats::logisticPDF(`m`, `s`)
```

## Description

`stats::logisticPDF(m, s)` returns the probability density function

of the logistic distribution with mean `m` and standard deviation `s` > 0.

The procedure `f := stats::logisticPDF(m, s)` can be called in the form `f(x)` with an arithmetical expression `x`. The return value of `f(x)` is either a floating-point number or a symbolic expression:

If `x` is a floating-point number and `m` and `s` can be converted to floating-point numbers, then `f(x)` returns a positive floating-point number.

`f( infinity )` and `f(- infinity )` return `0`.

In all other cases, the expression is returned symbolically.

Numerical values for `m` and `s` are only accepted if they are real and `s` is positive.

## Environment Interactions

The function is sensitive to the environment variable `DIGITS` which determines the numerical working precision.

## Examples

### Example 1

We evaluate the probability density function with `m` = 0 and `s` = 1 at various points:

`f := stats::logisticPDF(0, 1): f(1/2), f(0.5), f(x)`

`delete f:`

### Example 2

We use symbolic arguments:

`f := stats::logisticPDF(m, s): f(x), f(3)`

When numerical values are assigned to `m` and `s`, the function `f` starts to produce numerical values:

`m := 0: s := 1: f(3), f(3.0)`

`delete f, m, s:`

## Parameters

 `m` The mean: an arithmetical expression representing a real value `s` The standard deviation: an arithmetical expression representing a positive real value