Parammle: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 14: | Line 14: | ||
'''Note''': Some distributions (beta, Cauchy, gamma, Gumbel, and Weibull) will take longer to find the maximum likelihood estimates as the estimators are not analytically known. They are solved for by optimizing the likelihood. | '''Note''': Some distributions (beta, Cauchy, gamma, Gumbel, and Weibull) will take longer to find the maximum likelihood estimates as the estimators are not analytically known. They are solved for by optimizing the likelihood. | ||
==== | ====Inputs==== | ||
* '''x''' = matrix (column vector) in which the sample data is stored. | * '''x''' = matrix (column vector) in which the sample data is stored. | ||
Line 20: | Line 20: | ||
* '''distname''' = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'. | * '''distname''' = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'. | ||
==== | ====Outputs==== | ||
The return value is a structure with up to 3 fields depending on the distribution (distname). | The return value is a structure with up to 3 fields depending on the distribution (distname). |
Latest revision as of 16:34, 3 September 2008
Purpose
Maximum likelihood parameter estimates.
Synopsis
- params = parammle(x,distname)
Description
Use parammle to obtain the best fit parameter estimates for a supported distribution.
Note: Some distributions (beta, Cauchy, gamma, Gumbel, and Weibull) will take longer to find the maximum likelihood estimates as the estimators are not analytically known. They are solved for by optimizing the likelihood.
Inputs
- x = matrix (column vector) in which the sample data is stored.
- distname = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'.
Outputs
The return value is a structure with up to 3 fields depending on the distribution (distname).
- a = first paramter.
- b = second parameter (if necessary).
- c = third parameter (if necessary).
Examples
params = parammle(x,'exponential')