betalike
Beta negative log-likelihood
📝Syntax
nlogL = betalike(params, x)
[nlogL, avar] = betalike(params, x)
📥Input Arguments
Parameter Description
params two-element positive real vector: beta distribution shape parameters.
x finite real nonempty array with values in the open interval (0, 1): sample data.
📤Output Arguments
Parameter Description
nlogL scalar: negative log-likelihood.
avar 2-by-2 array: asymptotic covariance estimate.
📄Description

betalike returns the negative log-likelihood for beta distribution data and the asymptotic covariance estimate.

💡Examples
x = [0.12 0.2 0.35 0.5 0.7 0.85];
[nlogL, avar] = betalike([1.5 1.8], x);
🔗See Also
betafitbetapdfbetacdf
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub