geolike
Geometric negative log-likelihood
📝Syntax
nlogL = geolike(p, x)
[nlogL, avar] = geolike(p, x)
📥Input Arguments
Parameter Description
p scalar in the range [0, 1]: success probability.
x nonnegative integer finite real nonempty array: failure counts before success.
📤Output Arguments
Parameter Description
nlogL scalar: negative log-likelihood.
avar scalar: asymptotic variance estimate.
📄Description

geolike returns the negative log-likelihood for geometric distribution data and the asymptotic variance estimate.

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