Represents a test that the difference between the population
means of two samples is equal to a specific
value.
Namespace: Extreme.Statistics.Tests
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class TwoSampleTTest _ Inherits TwoSampleTest |
| C# |
|---|
public sealed class TwoSampleTTest : TwoSampleTest |
| C++ |
|---|
public ref class TwoSampleTTest sealed : public TwoSampleTest |
Methods
| Icon | Type | Description |
|---|---|---|
| CalculateStatistic() |
Calculates the value of the statistic used for this test.
| |
| Equals(Object) | ||
| Finalize() | ||
| GetConfidenceInterval(Double) |
Returns the confidence interval for the test parameter for the specified confidence level.
| |
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetLowerCriticalValue() |
Gets the lower critical value for the hypothesis test's current significance level.
| |
| GetLowerCriticalValue(Double) |
Gets the lower critical value for the hypothesis test at the specified significance level.
| |
| GetType() | Gets the Type of the current instance. | |
| GetUpperCriticalValue() |
Gets the upper critical value for the test statistic at the hypothesis test's current significance level.
| |
| GetUpperCriticalValue(Double) |
Gets the upper critical value for the test statistic at the specified significance level.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Reject() |
Returns a value that indicates whether the null hypothesis is rejected
using the default significance level.
| |
| Reject(Double) |
Returns a value that indicates whether the null hypothesis is rejected using the specified significance level.
| |
| ToString() |
Constructors
| Icon | Type | Description |
|---|---|---|
| TwoSampleTTestNew() |
Constructs a new unpaired TwoSampleTTest for
the specified samples.
| |
| TwoSampleTTestNew(Int32, Double, Double, Int32, Double, Double) |
Constructs a new unpaired TwoSampleTTest for
the specified samples.
| |
| TwoSampleTTestNew(NumericalVariable, NumericalVariable, Double) |
Constructs a new unpaired TwoSampleTTest for
the specified samples.
| |
| TwoSampleTTestNew(NumericalVariable, NumericalVariable) |
Constructs a new unpaired TwoSampleTTest for
the specified NumericalVariable.
| |
| TwoSampleTTestNew(NumericalVariable, NumericalVariable, Double, SamplePairing, VarianceAssumption) |
Constructs a new TwoSampleTTest for
the specified NumericalVariable.
| |
| TwoSampleTTestNew(NumericalVariable, NumericalVariable, SamplePairing, VarianceAssumption) |
Constructs a new TwoSampleTTest for
the specified NumericalVariable.
|
Properties
| Icon | Type | Description |
|---|---|---|
| Count1 |
Gets or sets the number of observations of the first sample.
| |
| Count2 |
Gets or sets the number of observations of the second sample.
| |
| Difference |
Gets or sets the proposed difference between the two means.
| |
| Distribution |
Sets the probability distribution used in the hypothesis test.
| |
| HypothesisType |
Gets or sets a value that indicates whether the test is one or two-tailed.
| |
| Mean1 |
Gets or sets the mean of the first sample.
| |
| Mean2 |
Gets or sets the mean of the second sample.
| |
| Pairing |
Gets or sets a value that indicates whether the test is paired or unpaired.
| |
| PValue |
Gets the probability that the test statistic would take on the calculated value under the null hypothesis.
| |
| Sample1 |
Gets or sets the first NumericalVariable this test is being applied to.
| |
| Sample2 |
Gets or sets the second NumericalVariable this test is being applied to.
| |
| SignificanceLevel |
Gets the significance level used to test the null hypothesis.
| |
| Statistic |
Gets the value of the test statistic.
| |
| Variance1 |
Gets or sets the variance of the first sample.
| |
| Variance2 |
Gets or sets the variance of the second sample.
| |
| VarianceAssumption |
Gets or sets a value that indicates whether the variances of the two samples are assumed to be equal.
|
Remarks
Use the TwoSampleTTest class to test the hypothesis that the difference between
two population means are equal to a specific value.
The test can be either paired or unpaired. In a paired test, each observation in the first sample has a corresponding observation in the second sample.
An example of an unpaired test is one that compares the average height of men and women by choosing random samples of each group. An example of an unpaired test is one that compares the height of fathers to that of their sons.
Inheritance Hierarchy
System.Object
Extreme.Statistics.Tests.HypothesisTest
Extreme.Statistics.Tests.TwoSampleTest
Extreme.Statistics.Tests.TwoSampleTTest
Extreme.Statistics.Tests.HypothesisTest
Extreme.Statistics.Tests.TwoSampleTest
Extreme.Statistics.Tests.TwoSampleTTest