|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ExponentialDistribution
This interface represents a probability distribution from the exponential family.
fYi(yi; θi) = exp[(y * θi - b(θi)) / a(φ) + c(y)]where the parameter θi is called the canonical parameter, b(θi) the cumulant function, and φ the dispersion parameter.
| Method Summary | |
|---|---|
double |
AIC(Vector y,
Vector mu,
Vector weight,
double preLogLike,
double deviance,
int nFactors)
AIC = 2 * #param - 2 * log-likelihood |
double |
cumulant(double theta)
The cumulant function of the exponential distribution. |
double |
deviance(double y,
double mu)
Deviance D(y;μ^) measures the goodness-of-fit of a model, which is defined as the difference between the maximum log likelihood achievable and that achieved by the model. |
double |
dispersion(Vector y,
Vector mu,
int nFactors)
Different distribution models have different ways to compute dispersion, φ. |
double |
overdispersion(Vector y,
Vector mu,
int nFactors)
Overdispersion is the presence of greater variability (statistical dispersion) in a data set than would be expected based on the nominal variance of a given simple statistical model. |
double |
theta(double mu)
The canonical parameter of the distribution in terms of the mean μ. |
double |
variance(double mu)
The variance function of the distribution in terms of the mean μ. |
| Method Detail |
|---|
double variance(double mu)
mu - the distribution mean, μ
μdouble theta(double mu)
mu - the distribution mean, μ
μdouble cumulant(double theta)
theta - the input argument of the cumulant function
double dispersion(Vector y,
Vector mu,
int nFactors)
Note that in R's output, this is called "over-dispersion".
y - mu - μnFactors -
double overdispersion(Vector y,
Vector mu,
int nFactors)
For, Gamma, Gaussian, InverseGaussian, over-dispersion is the same as dispersion.
y - mu - μnFactors -
double deviance(double y,
double mu)
D(y;μ^) = 2 * [l(y;y) - l(μ^;y)]where l is the log-likelihood.
For an exponential family distribution, this is equivalent to
2 * [(y * θ(y) - b(θ(y))) - (y * θ(μ^) - b(θ(μ^)]where b() is the cumulant function of the distribution.
y - the observed valuemu - the estimated mean, μ^
double AIC(Vector y,
Vector mu,
Vector weight,
double preLogLike,
double deviance,
int nFactors)
y - mu - μweight - preLogLike - sum of y * θi - b(θi)deviance - nFactors -
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||