Class MarkovCheckBinomialPBestOf10
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.MarkovCheckBinomialPBestOf10
- All Implemented Interfaces:
- Statistic,- Serializable
Represents a markov check statistic that calculates the Binomial P value for whether the p-values for the estimated
 graph are distributed as U(0, 1). This version reports the best p-value out of 10 repetitions.
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMarkovCheckBinomialPBestOf10(IndependenceWrapper independenceWrapper, ConditioningSetType conditioningSetType) Calculates the Kolmogorov-Smirnoff P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
- 
Method SummaryModifier 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 trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Binomial P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).
- 
Constructor Details- 
MarkovCheckBinomialPBestOf10public MarkovCheckBinomialPBestOf10(IndependenceWrapper independenceWrapper, ConditioningSetType conditioningSetType) Calculates the Kolmogorov-Smirnoff P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).- Parameters:
- independenceWrapper- An instance of- IndependenceWrapperused to encapsulate and perform independence tests on the dataset with specific configurations.
- conditioningSetType- The type of conditioning set employed during Markov checks, represented by the- ConditioningSetTypeenum; this dictates how variables are conditioned in independence tests.
 
 
- 
- 
Method Details- 
getAbbreviationReturns the abbreviation for the statistic. This will be printed at the top of each column.- Specified by:
- getAbbreviationin interface- Statistic
- Returns:
- The abbreviation for the statistic.
 
- 
getDescriptionReturns a short one-line description of this statistic. This will be printed at the beginning of the report.- Specified by:
- getDescriptionin interface- Statistic
- Returns:
- The description of the statistic.
 
- 
getValueCalculates the Binomial P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).- Specified by:
- getValuein interface- Statistic
- Parameters:
- 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 Binomial P value.
- Throws:
- IllegalArgumentException- if the data model is null.
 
- 
getNormValuepublic double getNormValue(double value) Calculates the normalized value of a statistic.- Specified by:
- getNormValuein interface- Statistic
- Parameters:
- value- The value of the statistic.
- Returns:
- The normalized value of the statistic.
 
 
-