Examples - pi.science.hypothesistesting.PIKurtosisTest
1. How to check if sample belongs to a normal distribution using Kurtosis test ?
PIVariable var = new PIVariable(); var.AddValues( new int[] { 34, 56, 39, 71, 84, 92, 44, 67, 98, 49, 55, 73, 50, 62, 75, 44, 88, 53, 61, 25, 36, 66, 77, 35 } ); PIKurtosisTest test = new PIKurtosisTest( var ); test.Evaluate(); Console.WriteLine( "Z value = " + test.Z ); Console.WriteLine( "p-value = " + test.PValue ); Console.WriteLine( test.ToString() );
Output:
Z value = -0,855883037524514 p-value = 0,196031238438329 The sample belongs to a normal distribution -> accepted (0,05).