Click or drag to resize
Accord.NET (logo)

ToolsDetermination Method

Gets the coefficient of determination, as known as the R-Squared (R²)

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
public static double Determination(
	double[] actual,
	double[] expected
Request Example View Source


Type: SystemDouble
Type: SystemDouble

Return Value

Type: Double
The coefficient of determination is used in the context of statistical models whose main purpose is the prediction of future outcomes on the basis of other related information. It is the proportion of variability in a data set that is accounted for by the statistical model. It provides a measure of how well future outcomes are likely to be predicted by the model. The R^2 coefficient of determination is a statistical measure of how well the regression approximates the real data points. An R^2 of 1.0 indicates that the regression perfectly fits the data.
See Also