statistics
Class DistributionTest

java.lang.Object
  extended by statistics.DistributionTest

public abstract class DistributionTest
extends java.lang.Object

A collection of statistical tests for normal distribution of data

Author:
sikoried

Constructor Summary
DistributionTest()
           
 
Method Summary
static boolean andersonDarlingNormal(double[] data, double p)
          Test whether or not a given data array satisfies a normal distribution using the Anderson Darling test at the given significance niveau.
static double andersonDarlingNormalCriticalValue(double[] data)
          Compute the Anderson Darling critical value for the given 1D data and significance niveau.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionTest

public DistributionTest()
Method Detail

andersonDarlingNormal

public static boolean andersonDarlingNormal(double[] data,
                                            double p)
Test whether or not a given data array satisfies a normal distribution using the Anderson Darling test at the given significance niveau.

Parameters:
data - sample data, will be sorted afterwards
p - significance niveau (0.1, 0.05, 0.025, 0.001, 0.0001)
Returns:
true if data seems to be normal distributed

andersonDarlingNormalCriticalValue

public static double andersonDarlingNormalCriticalValue(double[] data)
Compute the Anderson Darling critical value for the given 1D data and significance niveau. The larger the value, the more likely the data is result of a normal distribution

Parameters:
data -
Returns:

main

public static void main(java.lang.String[] args)