kumulant

Identity

@Serializable
@SerialName(value = "Identity")
data object Identity : Link(source)

Gaussian response with unit variance: mean eta, curvature 1, loss (eta - y)^2. The loss is twice the negative log-likelihood so regression results retain squared-error units.

Functions

curvature

open override fun curvature(eta: Double): Double(source)

Second derivative of the per-observation negative log-likelihood at eta.

invMean

open override fun invMean(eta: Double): Double(source)

Inverse link: maps the linear predictor eta to the response mean.

loss

open override fun loss(eta: Double, y: Double): Double(source)

Per-observation fit error: squared error for Identity, negative log-likelihood up to response-only constants for Logit and Log.