Statistics Toolbox    
unidstat

Mean and variance for the discrete uniform distribution

Syntax

Description

[M,V] = unidstat(N) returns the mean and variance for the discrete uniform distribution with parameter N.

The mean of the discrete uniform distribution with parameter N is . The variance is .

Examples

See Also

unidcdf, unidinv, unidpdf, unidrnd


  unidrnd unifcdf