Parammle: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Maximum likelihood parameter estimates. | Maximum likelihood parameter estimates. | ||
===Synopsis=== | ===Synopsis=== | ||
:params = parammle(x,distname) | :params = parammle(x,distname) | ||
===Description=== | ===Description=== | ||
Use parammle to obtain the best fit parameter estimates for a supported distribution. | 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. | '''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==== | ====INPUTS==== | ||
* '''x''' = matrix (column vector) in which the sample data is stored. | * '''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'. | * '''distname''' = string, optional distribution name to assume as the parent distribution for the sample. Default value is 'normal'. | ||
====OUTPUTS==== | ====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). | ||
* '''a''' = first paramter. | * '''a''' = first paramter. | ||
* '''b''' = second parameter (if necessary). | * '''b''' = second parameter (if necessary). | ||
* '''c''' = third parameter (if necessary). | * '''c''' = third parameter (if necessary). | ||
===Examples=== | ===Examples=== | ||
params = parammle(x,'exponential') | params = parammle(x,'exponential') | ||
===See Also=== | ===See Also=== | ||
[[chitest]] | [[chitest]] |
Revision as of 14:26, 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')