public interface ExponentialDistribution
extends java.io.Serializable
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.
| Modifier and Type | Method and Description |
|---|---|
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 μ.
|
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 functiondouble 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, μ^