adjDetCoefficient property

num adjDetCoefficient

Calculates the adjusted coefficient of determination. This is the strength of the data fit for a given model.

(Also known as adjusted r^2). The larger adjusted r^2, the stronger the data fit for the model.

More accurate than normal determination coefficient.

Implementation

num get adjDetCoefficient {
  var n = x.length;
  var orig = pow(corCoefficient, 2);
  return 1 - (1-orig)*((n-1)/(n-2));
}