unidlike
Discrete uniform negative log-likelihood
📝Syntax
nlogL = unidlike(n, x)
[nlogL, avar] = unidlike(n, x)
📥Input Arguments
Parameter Description
n positive integer scalar: maximum value.
x positive integer finite real nonempty array: sample data.
📤Output Arguments
Parameter Description
nlogL scalar: negative log-likelihood.
avar scalar: asymptotic variance estimate.
📄Description

unidlike returns the negative log-likelihood for discrete uniform distribution data.

💡Examples
x = [1 2 4 5 5];
[nlogL, avar] = unidlike(5, x);
🔗See Also
unidfitunidpdfunidcdfunidrnd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub