explike
Exponential negative log-likelihood
📝Syntax
nlogL = explike(mu, x)
[nlogL, avar] = explike(mu, x)
[nlogL, avar] = explike(mu, x, censoring, freq)
📥Input Arguments
Parameter Description
mu positive scalar: exponential mean parameter.
x nonnegative finite real nonempty array: sample data.
censoring array containing 0 or 1 values: right-censoring flags.
freq array of nonnegative finite values: observation frequencies.
📤Output Arguments
Parameter Description
nlogL scalar: negative log-likelihood.
avar scalar: asymptotic variance estimate.
📄Description

explike returns the negative log-likelihood for exponential distribution data and the asymptotic variance estimate.

💡Examples
x = [0.5 1 2 3 5 8];
[nlogL, avar] = explike(3.25, x);
🔗See Also
expfitexppdfexpcdf
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub