TMtxHypothesisTest Class

Header: Dew.Stats/StatTools.h · Cross-compiler
tObjectTMtxComponentTMtxHypothesisTest

class TMtxHypothesisTest : public TMtxComponent;

Encapsulates parametric and non-parametric hypothesis testing routines.

Encapsulates parametric and non-parametric hypothesis testing routines. Many problems in engineering require that we decide whether to accept or reject a statement about some parameter. The statement is called a hypothesis and the decision-making procedure about the hypothesis is called hypothesis testing.

The following hypothesis tests are supported:

  • one or two sample Sign test,
  • one or two sample Wilcoxon Signed-Rank test,
  • one or two sample (on pooled or paired data) T test,
  • one sample Z test,
  • one sample ChiSquared test,
  • two sample F test.

How to use TMtxHypothesisTest component?

  • Drop a TMtxHypothesisTest component on the form.
  • Define the hypothesis test you want to perform (Sign, Wilcoxon, Z, T, ChiSquared, F).
  • Define hypothesis type (the null hypothesis type) : two, left or right tailed.
  • Depending on hypothesis method define one or two sample datasets. You can do this by clicking on TMtxHypothesisTest::DataVec1 (and TMtxHypothesisTest::DataVec2) properties.
  • Depending on hypothesis method you'll also have to define test mean (and in Z, F Test case sigma) property.
  • Define the desired significance level TMtxHypothesisTest::Alpha.
  • Call the TMtxHypothesisTest::Recalc method to calculate hypothesis test results.

Results:

Constructors

NameDescription
TMtxHypothesisTest (2)

Destructors

NameDescription
~TMtxHypothesisTest

Properties

NameTypeDescription
AlphadoubleDesired significance level.
AutoUpdateboolIf true then changing any of the TMtxHypothesisTest properties will trigger the TMtxHypothesisTest::Recalc method.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
ConfLowerdoubleReturns lower confidence interval limit.
ConfUpperdoubleReturns upper confidence interval limit.
DataVec1TVec*First sample values.
DataVec2TVec*Second sample values.
DirtyboolWhen any of the TMtxHypothesisTest properties changes, this property is automatically set to true.
EditorActiveboolReturns True, if the component editor is displayed.
HypothesisMethodTHypothesisMethodDefines which hypothesis routine will be used for data testing.
HypothesisTypeTHypothesisTypeDefines hypothesis type (left, right and two-tailed).
MeandoubleDefines mean/median value for one-sample test.
NameDewString
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
ResultTHypothesisResultReturns hypothesis result.
SigmadoubleDefines standard deviation value for single test.
SignificancedoubleReturns calculated significance level.
TestStatisticsdoubleReturns test statistics.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
EditorClass
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalcTriggers hypothesis test recalculation.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Fields

NameTypeDescription
Tagintptr_t