Package edu.cmu.tetrad.bayes
Class Identifiability
java.lang.Object
edu.cmu.tetrad.bayes.Identifiability
- All Implemented Interfaces:
- BayesUpdater,- ManipulatingBayesUpdater,- TetradSerializable,- Serializable
Identifiability, based on RowSummingExactUpdater
 
Jin Tian and Judea Pearl. On the Identification of Causal Effects. Technical Report R-290-L, Department of Computer Science, University of California, Los Angeles, 2002.
- Author:
- Choh Man Teng
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIdentifiability(BayesIm bayesIm) Constructs a new updater for the given Bayes net.Identifiability(BayesIm bayesIm, Evidence evidence) 
- 
Method SummaryModifier and TypeMethodDescriptiondouble[]calculatePriorMarginals(int nodeIndex) double[]calculateUpdatedMarginals(int nodeIndex) The BayesIm that this updater bases its update on.doublegetJointMarginal(int[] sVariables, int[] sValues) doublegetMarginal(int variable, int value) The updated BayesIm.booleanstatic IdentifiabilityGenerates a simple exemplar of this class to test serialization.voidsetEvidence(Evidence evidence) Sets new evidence for the updater.toString()
- 
Constructor Details- 
IdentifiabilityConstructs a new updater for the given Bayes net.
- 
Identifiability
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.
- 
getBayesImThe BayesIm that this updater bases its update on. This BayesIm is not modified; rather, a new BayesIm is created and updated.- Specified by:
- getBayesImin interface- BayesUpdater
- Returns:
- the Bayes instantiated model that is being updated.
 
- 
getManipulatedBayesIm- Specified by:
- getManipulatedBayesImin interface- ManipulatingBayesUpdater
- Returns:
- the updated BayesIm.
 
- 
getManipulatedGraph- Specified by:
- getManipulatedGraphin interface- ManipulatingBayesUpdater
- Returns:
- the graph for the manipulated BayesIm.
 
- 
getUpdatedBayesImThe updated BayesIm. This is a different object from the source BayesIm.- Specified by:
- getUpdatedBayesImin interface- ManipulatingBayesUpdater
- Returns:
- the updated Bayes IM--that is, the Bayes IM in which all probabilities of variables conditional on their parents have been updated.
- See Also:
 
- 
getEvidence- Specified by:
- getEvidencein interface- ManipulatingBayesUpdater
- Returns:
- a defensive copy of the evidence.
 
- 
setEvidenceDescription copied from interface:ManipulatingBayesUpdaterSets new evidence for the updater. Once this is called, old updating results should not longer be available.- Specified by:
- setEvidencein interface- BayesUpdater
- Specified by:
- setEvidencein interface- ManipulatingBayesUpdater
 
- 
isJointMarginalSupportedpublic boolean isJointMarginalSupported()- Specified by:
- isJointMarginalSupportedin interface- BayesUpdater
- Returns:
- true if the getJointMarginal() method is supported.
 
- 
getJointMarginalpublic double getJointMarginal(int[] sVariables, int[] sValues) - Specified by:
- getJointMarginalin interface- BayesUpdater
- Returns:
- P(variables[i] = values[i] | evidence), where evidence is getEvidence().
 
- 
getMarginalpublic double getMarginal(int variable, int value) - Specified by:
- getMarginalin interface- BayesUpdater
- Specified by:
- getMarginalin interface- ManipulatingBayesUpdater
- Returns:
- P(variable = category | evidence) where evidence is getEvidence().
 
- 
calculatePriorMarginalspublic double[] calculatePriorMarginals(int nodeIndex) - Specified by:
- calculatePriorMarginalsin interface- BayesUpdater
 
- 
calculateUpdatedMarginalspublic double[] calculateUpdatedMarginals(int nodeIndex) - Specified by:
- calculateUpdatedMarginalsin interface- BayesUpdater
 
- 
toString
 
-