NMath Reference Guide

## Two |

Class TwoSampleUnpairedTTest tests the null hypothesis that the two population
means corresponding to two random samples are equal.

Inheritance Hierarchy

Syntax

The TwoSampleUnpairedTTest type exposes the following members.

Constructors

Name | Description | |
---|---|---|

TwoSampleUnpairedTTest | Default constructor. Constructs a TwoSampleUnpairedTTest instance with default sample parameters, alpha level, and hypothesis type. | |

TwoSampleUnpairedTTest(Double, Double) | Constructs a TwoSampleUnpairedTTest instance using the given arrays of sample data. | |

TwoSampleUnpairedTTest(DoubleVector, DoubleVector) | Constructs a TwoSampleUnpairedTTest instance using the given vectors of sample data. | |

TwoSampleUnpairedTTest(IDFColumn, IDFColumn) | Constructs a TwoSampleUnpairedTTest instance using the given columns of sample data. | |

TwoSampleUnpairedTTest(Int32, Int32) | Constructs a TwoSampleUnpairedTTest instance using the given arrays of sample data. | |

TwoSampleUnpairedTTest(Double, Double, Double, HypothesisType) | Constructs a TwoSampleUnpairedTTest instance using the given arrays of sample data, and the given hypothesis parameters. | |

TwoSampleUnpairedTTest(DoubleVector, DoubleVector, Double, HypothesisType) | Constructs a TwoSampleUnpairedTTest instance using the given vectors of sample data, and the given hypothesis parameters. | |

TwoSampleUnpairedTTest(IDFColumn, IDFColumn, Double, HypothesisType) | Constructs a TwoSampleUnpairedTTest instance using the given columns of sample data, and the given hypothesis parameters. | |

TwoSampleUnpairedTTest(Int32, Int32, Double, HypothesisType) | Constructs a TwoSampleUnpairedTTest instance using the given arrays of sample data, and the given hypothesis parameters. | |

TwoSampleUnpairedTTest(Double, Double, Int32, Double, Double, Int32) | Constructs a TwoSampleUnpairedTTest instance with the given sample parameters. | |

TwoSampleUnpairedTTest(Double, Double, Int32, Double, Double, Int32, Double, HypothesisType) | Constructs a TwoSampleUnpairedTTest instance with the given sample and and hypothesis parameters. |

Properties

Name | Description | |
---|---|---|

Alpha | Gets and sets the alpha level associated with this hypothesis test. | |

DefaultAlpha | Gets and sets the default alpha level associated with TwoSampleUnpairedTTests. | |

DefaultType | Gets and sets the default form of the alternative hypothesis associated with TwoSampleUnpairedTTests. | |

DegreesOfFreedom | Gets the degrees of freedom. | |

Distribution | Gets the distribution of the test statistic associated with this hypothesis test. | |

LeftCriticalValue | Gets the left critical value based on the current probability distribution and alpha level associated with this hypothesis test. | |

LeftProbability | Gets the area under the probability distribution to the left of the test statistic. | |

LowerConfidenceLimit | Gets the 1 - alpha lower confidence limit for the true mean. | |

N1 | Gets the size of the first sample. | |

N2 | Gets the size of the second sample. | |

P | Gets the p-value associated with the test statistic. | |

Reject | Tests whether the null hypothesis can be rejected, using the current hypothesis type and alpha level. | |

RightCriticalValue | Gets the right critical value based on the current probability distribution and alpha level associated with this hypothesis test. | |

RightProbability | Gets the area under the probability distribution to the right of the test statistic. | |

S1 | Gets the standard deviation of the first sample. | |

S2 | Gets the standard deviation of the second sample. | |

SEM | Gets the standard error of the mean. | |

SPooled | Gets the pooled estimate of the standard deviation. | |

Statistic | Gets the value of the test statistic associated with this hypothesis test. | |

Type | Gets and sets the form of the alternative hypothesis associated with this hypothesis test. | |

UpperConfidenceLimit | Gets the 1 - alpha upper confidence limit for the true mean. | |

Xbar1 | Gets the mean of the first sample. | |

Xbar2 | Gets the mean of the second sample. |

Methods

Name | Description | |
---|---|---|

Clone | Creates a deep copy of this TwoSampleUnpairedTTest. | |

ToString |
Returns a formatted string representation of the test results.
(Overrides ObjectToString) | |

Update(Double, Double) | Updates the test statistic with new sample data. | |

Update(DoubleVector, DoubleVector) | Updates the test statistic with new sample data. | |

Update(IDFColumn, IDFColumn) | Updates the test statistic with new sample data. | |

Update(Int32, Int32) | Updates the test statistic with new sample data. | |

Update(Double, Double, Int32, Double, Double, Int32) | Updates the test statistic with new sample parameters. |

Remarks

The two samples are assumed to be independent of each other. (For dependent,
or paired, samples, see class TwoSamplePairedTTest.) The samples are also
assumed to come from populations with the same variance, allowing for a pooled
estimate of the variance.

See Also