﻿ CorrelationCoefDeterminantion(String,Series) Method
 Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C#
 dotnetCHARTING Namespace > StatisticalEngine Class > CorrelationCoefDeterminantion Method : CorrelationCoefDeterminantion(String,Series) Method

elementName
The name of the element which will be displayed on the chart, i.e. its label.
s
A statistical series.
Calculates the coefficient of determination for the YValues of the series.

# Syntax

Visual Basic (Declaration)
```Public Overloads Shared Function CorrelationCoefDeterminantion( _
ByVal elementName As String, _
ByVal s As Series _
) As Element```
Visual Basic (Usage)Copy Code
``````Dim elementName As String
Dim s As Series
Dim value As Element

value = StatisticalEngine.CorrelationCoefDeterminantion(elementName, s)``````
C#
```public static Element CorrelationCoefDeterminantion(
string elementName,
Series s
)```

#### Parameters

elementName
The name of the element which will be displayed on the chart, i.e. its label.
s
A statistical series.

#### Return Value

The coefficient of determination of the series

# Remarks

#### Explanation of the Coefficient of Determination

The coefficient of determination is the amount of variation in the second variable (i.e. `Y`) which is explained by the regression line of the second variable `Y` on the first variable `X` (see LeastSquaresEstimateY), divided by the total amount of variation of the second variable (i.e. `Y`).