|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.regression.linear.glm.distribution.Family
public abstract class Family
Family is a description of the error distribution and link function to be used in the GLM model.
The R equivalent function is family.
| Constructor Summary | |
|---|---|
Family(LinkFunction link)
Construct an instance of Family. |
|
| Method Summary | |
|---|---|
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. |
LinkFunction |
link()
Get the link function of this distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.numericalmethod.suanshu.stats.regression.linear.glm.distribution.ExponentialDistribution |
|---|
AIC, cumulant, dispersion, overdispersion, theta, variance |
| Constructor Detail |
|---|
public Family(LinkFunction link)
link - the link function of this distribution| Method Detail |
|---|
public LinkFunction link()
public 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.
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 ExponentialDistributiony - the observed valuemu - the estimated mean, μ^
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||