Function Reference: normlike

statistics: nlogL = normlike (params, data)
statistics: [nlogL, avar] = normlike (params, data)
statistics: […] = normlike (params, data, censor)
statistics: […] = normlike (params, data, censor, freq)

Negative log-likelihood for the normal distribution.

nlogL = normlike (params, data) returns the negative of the log-likelihood for the normal distribution, evaluated at parameters params(1) = mean and params(2) = standard deviation, given data. nlogL is a scalar.

[nlogL, avar] = normlike (params, data) returns the inverse of Fisher’s information matrix, avar. If the input parameter values in params are the maximum likelihood estimates, the diagonal elements of avar are their asymptotic variances. avar is based on the observed Fisher’s information, not the expected information.

[…] = normlike (params, data, censor) accepts a boolean vector of the same size as data that is 1 for observations that are right-censored and 0 for observations that are observed exactly.

[…] = normlike (params, data, censor, freq) accepts a frequency vector of the same size as data. freq typically contains integer frequencies for the corresponding elements in data, but it may contain any non-integer non-negative values. Pass in [] for censor to use its default value.

See also: normcdf, norminv, normpdf, normrnd, normfit, normstat

Source Code: normlike