Class CellTableProbs

java.lang.Object
edu.cmu.tetrad.bayes.CellTableProbs

public final class CellTableProbs extends Object
Estimates probabilities from data by constructing the entire cell count table for the data.
Author:
josephramsey
  • Constructor Details

    • CellTableProbs

      public CellTableProbs(DataSet dataSet)
      Creates a cell count table for the given data set.
  • Method Details

    • getCellProb

      public double getCellProb(int[] variableValues)
      Returns:
      the estimated probability for the given cell. The order of the variable values is the order of the variables in getVariable().
    • getProb

      public double getProb(Proposition assertion)
      Returns:
      the estimated probability of the given proposition.
    • getConditionalProb

      public double getConditionalProb(Proposition assertion, Proposition condition)
      Returns:
      the estimated conditional probability for the given assertion conditional on the given condition.
    • getDataSet

      public DataSet getDataSet()
      Returns:
      the dataset that this is estimating probabilities for.
    • getVariables

      public List<Node> getVariables()
      Returns:
      the list of variables for the dataset that this is estimating probabilities for.