Click or drag to resize

GoodnessOfFitRSquared Method

Calculates r^2, the square of the sample correlation coefficient between the observed outcomes and the observed predictor values. Not to be confused with R^2, the coefficient of determination, see CoefficientOfDetermination(IEnumerableDouble, IEnumerableDouble).

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double RSquared(
	IEnumerable<double> modelledValues,
	IEnumerable<double> observedValues
)

Parameters

modelledValues  IEnumerableDouble
The modelled/predicted values
observedValues  IEnumerableDouble
The observed/actual values

Return Value

Double
Squared Person product-momentum correlation coefficient.
See Also