Click or drag to resize

TTestTwoSample Class

Two-sample t-test of the null hypothesis that data in the samples are random samples from independent normal distributions with equal means, against the alternative that the means are different.

http://en.wikipedia.org/wiki/Student's_t-test#Independent_two-sample_t-test

TailAlternative hypothesis
Tail.BothMean of the first distribution is not equal to mean of the second distribution.
Tail.LeftMean of the first distribution is less than mean of the second distribution.
Tail.RightMean of the first distribution is greater than mean of the second distribution.
By defaul means are supposed to be equal.

Note. Welch-Satterthwaite equation is used for approximation of degrees of freedom for unequal variances case.

Inheritance Hierarchy
SystemObject
  FinMath.Statistics.HypothesisTestingHypothesisTest
    FinMath.Statistics.HypothesisTestingTwoSampleTest
      FinMath.Statistics.HypothesisTestingTTestTwoSample

Namespace:  FinMath.Statistics.HypothesisTesting
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class TTestTwoSample : TwoSampleTest

The TTestTwoSample type exposes the following members.

Constructors
  NameDescription
Public methodTTestTwoSample
Creates TTestTwoSample instance with default significance level for two-tailed test.
Public methodTTestTwoSample(Double)
Creates TTestTwoSample instance for two-tailed test.
Public methodTTestTwoSample(Tail)
Creates TTestTwoSample instance with default significance level.
Public methodTTestTwoSample(Double, Tail)
Creates TTestTwoSample instance.
Top
Properties
  NameDescription
Public propertyAcceptanceRegionLeft
Region of acceptance left border. We fail to reject null hypothesis if test statistics is between left and right borders of region of acceptance. http://en.wikipedia.org/wiki/Statistical_hypothesis_testing#Definition_of_terms
(Overrides HypothesisTestAcceptanceRegionLeft.)
Public propertyAcceptanceRegionRight
Region of acceptance right border. We fail to reject null hypothesis if test statistics is between left and right borders of region of acceptance. http://en.wikipedia.org/wiki/Statistical_hypothesis_testing#Definition_of_terms
(Overrides HypothesisTestAcceptanceRegionRight.)
Public propertyDecision
Decision about null hypothesis.
true if the null hypothesis is failed to be rejected.
false if the null hypothesis is rejected.
(Inherited from HypothesisTest.)
Public propertyDecisionPrinciple
Marks whether decision should be made comparing P-value with Significance level or test statistics with critical value.
(Inherited from HypothesisTest.)
Public propertyPValue
The probability of obtaining a test statistic at least as extreme as the one that was actually observed, assuming that the null hypothesis is true. http://en.wikipedia.org/wiki/P-value
(Overrides HypothesisTestPValue.)
Public propertySignificanceLevel
Significance level. http://en.wikipedia.org/wiki/Statistical_significance
(Inherited from HypothesisTest.)
Public propertyStatistics
Test statistics. http://en.wikipedia.org/wiki/Test_statistic
(Inherited from HypothesisTest.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Double, Double)
Updates test statistic using provided sample.
(Inherited from TwoSampleTest.)
Public methodUpdate(Vector, Vector)
Updates test statistic using provided sample.
(Inherited from TwoSampleTest.)
Public methodUpdate(Double, Double, Boolean)
Updates test statistic using provided samples.
Public methodUpdate(Vector, Vector, Boolean)
Updates test statistic using provided samples.
Public methodUpdate(Double, Int32, Int32, Double, Int32, Int32)
Updates test statistic using provided samples.
(Overrides TwoSampleTestUpdate(Double, Int32, Int32, Double, Int32, Int32).)
Top
See Also