Namespaces

Types in MathNet.Numerics

Type GoodnessOfFit

Namespace MathNet.Numerics

Static Functions

Public Static Functions

double PopulationStandardError(IEnumerable<double> modelledValues, IEnumerable<double> observedValues)

Calculates the Standard Error of the regression, given a sequence of modeled/predicted values, and a sequence of actual/observed values
Parameters
IEnumerable<double> modelledValues

The modelled/predicted values

IEnumerable<double> observedValues

The observed/actual values

Return
double

The Standard Error of the regression

double R(IEnumerable<double> modelledValues, IEnumerable<double> observedValues)

Calculates the R value, also known as linear correlation coefficient, given modelled and observed values
Parameters
IEnumerable<double> modelledValues

The values expected from the modelled

IEnumerable<double> observedValues

The actual data set values obtained

Return
double

Person product-momentum correlation coefficient.

double RSquared(IEnumerable<double> modelledValues, IEnumerable<double> observedValues)

Calculates the R-Squared value, also known as coefficient of determination, given modelled and observed values
Parameters
IEnumerable<double> modelledValues

The values expected from the modelled

IEnumerable<double> observedValues

The actual data set values obtained

Return
double

Squared Person product-momentum correlation coefficient.

double StandardError(IEnumerable<double> modelledValues, IEnumerable<double> observedValues, int degreesOfFreedom)

Calculates the Standard Error of the regression, given a sequence of modeled/predicted values, and a sequence of actual/observed values
Parameters
IEnumerable<double> modelledValues

The modelled/predicted values

IEnumerable<double> observedValues

The observed/actual values

int degreesOfFreedom

The degrees of freedom by which the number of samples is reduced for performing the Standard Error calculation

Return
double

The Standard Error of the regression