Student's t Loss Function
Syntax
loss = curvefit.core.loss_fun.st_loss(r, nu = 1.0)
t
is a numpy vector of residual values. We use
for the length of the vector.
The elements of this vector can be float or a_double values.
nu
is the number of degrees of freedom in the t distribution .
This can be a float or a_double value.
Distribution
The student's t-distribution is where is the number of degrees of freedom and is the gamma function.
Negative log
Taking the negative log of the distribution function we get where is constant w.r.t. .
loss
The return value loss is a scalar equal to