StatisticalProceduresPearsonR Method Mathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library
Computes the Pearson product-moment correlation coefficient for a sample

Namespace: Mathos.Statistics
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax

public static decimal PearsonR(
	this List<decimal> x,
	List<decimal> y
)

Parameters

x
Type: System.Collections.GenericListDecimal
A list of numbers
y
Type: System.Collections.GenericListDecimal
A list of numbers

Return Value

Type: Decimal
Returns the Pearson product-mean correlation coefficient of a sample

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListDecimal. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

An ArgumentException will be thrown if x and y are of different size
See Also

Reference