public class Poisson extends Family
The R equivalent function is poisson.
| Constructor and Description |
|---|
Poisson()
Construct an instance of
Poisson. |
Poisson(LinkFunction link)
Construct an instance of
Poisson with an overriding link function. |
| 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 μ.
|
public Poisson()
Poisson.
The canonical link is Log.public Poisson(LinkFunction link)
Poisson with an overriding link function.link - the overriding link functionpublic double variance(double mu)
ExponentialDistributionmu - the distribution mean, μμpublic double theta(double mu)
ExponentialDistributionmu - the distribution mean, μμpublic double cumulant(double theta)
ExponentialDistributiontheta - the input argument of the cumulant functionpublic double deviance(double y,
double mu)
FamilyD(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.
The definition above is the default implementation of this function, a
subclass of ExponentialDistribution may override this
function to implement a simplified expression for efficiency or handle
special values.
deviance in interface ExponentialDistributiondeviance in class Familyy - the observed valuemu - the estimated mean, μ^public double overdispersion(Vector y, Vector mu, int nFactors)
ExponentialDistributionFor, Gamma, Gaussian, InverseGaussian, over-dispersion is the same as dispersion.
mu - μpublic double dispersion(Vector y, Vector mu, int nFactors)
ExponentialDistributionNote that in R's output, this is called "over-dispersion".
mu - μpublic double AIC(Vector y, Vector mu, Vector weight, double preLogLike, double deviance, int nFactors)
ExponentialDistributionmu - μpreLogLike - sum of y * θi - b(θi)