Package com.bayesserver.causal
Class FrontDoorInference
- java.lang.Object
-
- com.bayesserver.causal.CausalInferenceBase
-
- com.bayesserver.causal.FrontDoorInference
-
- All Implemented Interfaces:
Inference
public final class FrontDoorInference extends CausalInferenceBase
Estimates the causal effect, using the 'Front-door Adjustment' formula to avoid confounding bias. For treatments (X) and outcomes (Y) this is denoted P(Y|Do(X)). The Total effect can be calulated. Multiple treatments, outcomes and unobserved nodes are supported as well as fixed evidence.A list of suitable front-door sets can be identified using the
FrontDoorCriterion
class.
-
-
Constructor Summary
Constructors Constructor Description FrontDoorInference(Network network)
Initializes a new instance of theFrontDoorInference
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
queryDistributionsInner(QueryOptions queryOptions, QueryOutput queryOutput)
-
Methods inherited from class com.bayesserver.causal.CausalInferenceBase
getBaseEvidence, getEvidence, getNetwork, getQueryDistributions, getQueryFunctions, getQueryLifecycle, query, setBaseEvidence, setEvidence, setNetwork, setQueryDistributions, setQueryFunctions, setQueryLifecycle
-
-
-
-
Constructor Detail
-
FrontDoorInference
public FrontDoorInference(Network network)
Initializes a new instance of theFrontDoorInference
class.- Parameters:
network
- The Bayesian network.
-
-
Method Detail
-
queryDistributionsInner
protected void queryDistributionsInner(QueryOptions queryOptions, QueryOutput queryOutput) throws InconsistentEvidenceException
- Specified by:
queryDistributionsInner
in classCausalInferenceBase
- Throws:
InconsistentEvidenceException
-
-