Click or drag to resize

ShapiroWilkTest Class

Class ShapiroWilkTest tests the null hypothesis that the sample comes from a normally distributed population.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreShapiroWilkTest

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class ShapiroWilkTest : ICloneable

The ShapiroWilkTest type exposes the following members.

Constructors
  NameDescription
Public methodShapiroWilkTest(Double)
Constructs a ShapiroWilkTest intance with the provided sample data, default alpha and default hypothesis type.
Public methodShapiroWilkTest(Int32)
Constructs a ShapiroWilkTest intance with the provided sample data, default alpha and default hypothesis type.
Public methodShapiroWilkTest(DoubleVector)
Constructs a ShapiroWilkTest intance with the provided sample data, default alpha and default hypothesis type.
Public methodShapiroWilkTest(IDFColumn)
Constructs a ShapiroWilkTest intance with the provided sample data, default alpha and default hypothesis type.
Public methodShapiroWilkTest(Double, HypothesisType)
Constructs a ShapiroWilkTest intance with the provided sample, provided hypothesis type and default alpha.
Public methodShapiroWilkTest(Double, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and default hypothesis type.
Public methodShapiroWilkTest(Int32, HypothesisType)
Constructs a ShapiroWilkTest intance with the provided sample, provided hypothesis type and default alpha.
Public methodShapiroWilkTest(Int32, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and default hypothesis type.
Public methodShapiroWilkTest(DoubleVector, HypothesisType)
Constructs a ShapiroWilkTest intance with the provided sample, provided hypothesis type and default alpha.
Public methodShapiroWilkTest(DoubleVector, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and default hypothesis type.
Public methodShapiroWilkTest(IDFColumn, HypothesisType)
Constructs a ShapiroWilkTest intance with the provided sample, provided hypothesis type and default alpha.
Public methodShapiroWilkTest(IDFColumn, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and default hypothesis type.
Public methodShapiroWilkTest(Double, HypothesisType, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and hypothesis type.
Public methodShapiroWilkTest(Int32, HypothesisType, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and hypothesis type.
Public methodShapiroWilkTest(DoubleVector, HypothesisType, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and hypothesis type.
Public methodShapiroWilkTest(IDFColumn, HypothesisType, Double)
Constructs a ShapiroWilkTest intance with the provided sample, alpha and hypothesis type.
Top
Properties
  NameDescription
Public propertyAlpha
Gets and sets the alpha level associated with this hypothesis test.
Public propertyData
Data used to calculate the Shapiro Wilk test statistic. The data is modified for calculation by removing NaNs and sorting.
Public propertyStatic memberDefaultAlpha
Gets and sets the default alpha level associated with the PearsonChiSquareTest. Used to determine whether or not to reject the null hypothesis.
Public propertyStatic memberDefaultType
Gets and sets the default alpha level associated with the PearsonChiSquareTest. Used to determine whether or not to reject the null hypothesis.
Public propertyN
Gets the sample size.
Public propertyP
Gets the p-value associated with the test statistic.
Public propertyReject
Returns true if the null hypothesis can be rejected, using the current hypothesis type and alpha level; otherwise, false.
Public propertyS
Gets the sample standard deviation.
Public propertyStatistic
Shapiro Wilk Test statistic, generally referred to as W
Public propertyType
Hypothesis type
Public propertyXbar
Sample mean
Top
Methods
  NameDescription
Public methodCalculateSWStatistic
Calculates the Shapiro-Wilk statistic.
Public methodClone
Creates a deep copy of this ShapiroWilkTest.
Public methodToString
Returns a formatted string representation of the test results.
(Overrides ObjectToString.)
Public methodUpdate(Double)
Updates the test statistic with new sample data.
Public methodUpdate(Int32)
Updates the test statistic with new sample data.
Public methodUpdate(DoubleVector)
Updates the test statistic with new sample data.
Public methodUpdate(IDFColumn)
Updates the test statistic with new sample data.
Top
Remarks
ShapiroWilkTest comes from Shapiro, S. S.; Wilk, M. B. (1965). "An analysis of variance test for normality (complete samples)". Biometrika 52 (3-4): 591–611. Implementation based on Royson R94. The sample data provided must be of size between 3 and 5000. If the size becomes too large, then the test begins to perform poorly.
See Also