Click or drag to resize

TwoSamplePairedTTest Class

Class TwoSamplePairedTTest tests if two paired sets of observed values differ from each other in a significant way.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreTwoSamplePairedTTest

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

The TwoSamplePairedTTest type exposes the following members.

Constructors
 NameDescription
Public methodTwoSamplePairedTTest Default constructor. Constructs a TwoSamplePairedTTest instance with default sample parameters, alpha level, and hypothesis type.
Public methodTwoSamplePairedTTest(Double, Double) Constructs a TwoSamplePairedTTest instance using the given paired arrays of sample data.
Public methodTwoSamplePairedTTest(DoubleVector, DoubleVector) Constructs a TwoSamplePairedTTest instance using the given paired vectors of sample data.
Public methodCode exampleTwoSamplePairedTTest(IDFColumn, IDFColumn) Constructs a TwoSamplePairedTTest instance using the given paired columns of sample data.
Public methodTwoSamplePairedTTest(Int32, Int32) Constructs a TwoSamplePairedTTest instance using the given paired arrays of sample data.
Public methodTwoSamplePairedTTest(Double, Double, Int32) Constructs a TwoSamplePairedTTest instance with the given sample parameters.
Public methodTwoSamplePairedTTest(Double, Double, Double, HypothesisType) Constructs a TwoSamplePairedTTest instance using the given paired arrays of sample data, and the given hypothesis parameters.
Public methodTwoSamplePairedTTest(DoubleVector, DoubleVector, Double, HypothesisType) Constructs a TwoSamplePairedTTest instance using the given paired vectors of sample data, and the given hypothesis parameters.
Public methodCode exampleTwoSamplePairedTTest(IDFColumn, IDFColumn, Double, HypothesisType) Constructs a TwoSamplePairedTTest instance using the given paired columns of sample data, and the given hypothesis parameters.
Public methodTwoSamplePairedTTest(Int32, Int32, Double, HypothesisType) Constructs a TwoSamplePairedTTest instance using the given paired arrays of sample data, and the given hypothesis parameters.
Public methodTwoSamplePairedTTest(Double, Double, Int32, Double, HypothesisType) Constructs a TwoSamplePairedTTest instance with the given sample and hypothesis parameters.
Top
Properties
 NameDescription
Public propertyAlpha Gets and sets the alpha level associated with this hypothesis test.
Public propertyStatic memberDefaultAlpha Gets and sets the default alpha level associated with TwoSamplePairedTTests.
Public propertyStatic memberDefaultType Gets and sets the default form of the alternative hypothesis associated with TwoSamplePairedTTests.
Public propertyDegreesOfFreedom Gets the degrees of freedom.
Public propertyDistribution Gets the distribution of the test statistic associated with this hypothesis test.
Public propertyLeftCriticalValue Gets the left critical value based on the current probability distribution and alpha level associated with this hypothesis test.
Public propertyLeftProbability Gets the area under the probability distribution to the left of the test statistic.
Public propertyLowerConfidenceLimit Gets the 1 - alpha lower confidence limit for the true mean.
Public propertyN Gets the sample size.
Public propertyP Gets the p-value associated with the test statistic.
Public propertyReject Tests whether the null hypothesis can be rejected, using the current hypothesis type and alpha level.
Public propertyRightCriticalValue Gets the right critical value based on the current probability distribution and alpha level associated with this hypothesis test.
Public propertyRightProbability Gets the area under the probability distribution to the right of the test statistic.
Public propertyS Gets the standard deviation of the differences between paired observations.
Public propertySEM Gets the standard error of the mean.
Public propertyStatistic Gets the value of the test statistic associated with this hypothesis test.
Public propertyType Gets and sets the form of the alternative hypothesis associated with this hypothesis test.
Public propertyUpperConfidenceLimit Gets the 1 - alpha upper confidence limit for the true mean.
Public propertyXbar Gets the mean of the differences between paired observations.
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this TwoSamplePairedTTest.
Public methodToString Returns a formatted string representation of the test results.
(Overrides ObjectToString)
Public methodUpdate(Double, Double) Updates the test statistic with new sample data.
Public methodUpdate(DoubleVector, DoubleVector) Updates the test statistic with new sample data.
Public methodCode exampleUpdate(IDFColumn, IDFColumn) Updates the test statistic with new sample data.
Public methodUpdate(Int32, Int32) Updates the test statistic with new sample data.
Public methodUpdate(Double, Double, Int32) Updates the test statistic with new sample parameters.
Top
Remarks
Paired samples often occur in pre-test/post-test studies in which subjects are measured before and after an intervention. They also occur in matched-pairs (for example, matching on age and sex), cross-over trials, and sequential observational samples. Paired samples are also called matched samples and dependent samples.
See Also