Class McGetNumTestsH1
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.McGetNumTestsH1
- All Implemented Interfaces:
MarkovCheckerStatistic, Statistic, Serializable
Calculates the number of tests Kolmogorov-Smirnoff under the alternative hypothesis H1 of dependennce for the Markov
check of whether the p-values for the estimated graph are distributed as U(0, 1).
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMcGetNumTestsH1(IndependenceWrapper independenceWrapper, ConditioningSetType conditioningSetType, Parameters mcParameters) Calculates the number of tests for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1). -
Method Summary
Modifier and TypeMethodDescriptionReturns the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Calculates the normalized value of a statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of tests done under the null hypothesis of independence for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).booleanThis method does not use the truth so is suitable for analyzing empirical data.
-
Constructor Details
-
McGetNumTestsH1
public McGetNumTestsH1(IndependenceWrapper independenceWrapper, ConditioningSetType conditioningSetType, Parameters mcParameters) Calculates the number of tests for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).- Parameters:
independenceWrapper- An instance ofIndependenceWrapperused to encapsulate and perform independence tests on the dataset with specific configurations.conditioningSetType- The type of conditioning set employed during Markov checks, represented by theConditioningSetTypeenum; this dictates how variables are conditioned in independence tests.mcParameters- The set of parameters used for configuring the Markov check process, including settings for independence tests and other relevant computations.
-
-
Method Details
-
getAbbreviation
Returns the abbreviation for the statistic. This will be printed at the top of each column.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
getDescription
Returns a short one-line description of this statistic. This will be printed at the beginning of the report.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of tests done under the null hypothesis of independence for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true DAG.trueGraph- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).estGraph- The estimated graph (same type).dataModel- The data model.parameters- The parameters- Returns:
- The Anderson Darling P value.
- Throws:
IllegalArgumentException- if the data model is null.
-
getNormValue
public double getNormValue(double value) Calculates the normalized value of a statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-
usesTruth
-