// 2. Generate 1000 samples of the ChiSquare(5) distribution
Console.WriteLine(@"2. Generate 1000 samples of the ChiSquare(5) distribution");
vardata=newdouble[1000];
@ -120,12 +120,14 @@ namespace Examples
// 5. Correlation coefficient between 1000 samples of ChiSquare(5) and ChiSquare(2.5)
Console.WriteLine(@"5. Correlation coefficient between 1000 samples of ChiSquare(5) and ChiSquare(2.5) is {0}",Correlation.Pearson(data,dataB).ToString("N04"));
Console.WriteLine(@"6. Ranked correlation coefficient between 1000 samples of ChiSquare(5) and ChiSquare(2.5) is {0}",Correlation.Spearman(data,dataB).ToString("N04"));
Console.WriteLine();
// 6. Correlation coefficient between 1000 samples of f(x) = x * 2 and f(x) = x * x
Console.WriteLine(@"6. Correlation coefficient between 1000 samples of f(x) = x * 2 and f(x) = x * x is {0}",Correlation.Pearson(data,dataB).ToString("N04"));
Console.WriteLine(@"7. Correlation coefficient between 1000 samples of f(x) = x * 2 and f(x) = x * x is {0}",Correlation.Pearson(data,dataB).ToString("N04"));
Console.WriteLine(@"8. Ranked correlation coefficient between 1000 samples of f(x) = x * 2 and f(x) = x * x is {0}",Correlation.Spearman(data,dataB).ToString("N04"));