Imports System.Windows.Forms.DataVisualization.Charting
...
' Calculate Mean(平均值)
Dim mean As Double = chart1.DataManipulator.Statistics.Mean("Series1")
' Calculate Median(中位数)
Dim median As Double = chart1.DataManipulator.Statistics.Median("Series1")
' Calculate Standard Deviation from the Variance(方差和标准偏差)
'均方差(标准偏差)其实就是方差的正值平方根
Dim variance As Double = chart1.DataManipulator.Statistics.Variance("Series1", True)
Dim standardDeviation As Double = Math.Sqrt(variance)
...
协方差 (协变值)
Dim p1 As Double = xChart.DataManipulator.Statistics.Covariance("Series1", True)