Statistics Toolbox
  Go to function:
    Search    Help Desk 
betalike    Examples   See Also

Negative beta log-likelihood function.

Syntax

Description

logL = betalike(params,data) returns the negative of the beta log-likelihood function for the two beta parameters, params, given the column vector, data. The length of logL is the length of data.

[logL,info] = betalike(params,data) also returns Fisher's information matrix, info. The diagonal elements of info are the asymptotic variances of their respective parameters.

betalike is a utility function for maximum likelihood estimation of the beta distribution. The likelihood assumes that all the elements in the data sample are mutually independent. Since betalike returns the negative gamma log-likelihood function, minimizing betalike using fmins is the same as maximizing the likelihood.

Example

This continues the example for betafit where we calculated estimates of the beta parameters for some randomly generated beta distributed data.

See Also



[ Previous | Help Desk | Next ]