Functions that return an updated Bayesian network using the proportional, uniform and order-preserving co-variation schemes.
proportional_covar(bnfit, node, value_node, value_parents, new_value)orderp_covar(bnfit, node, value_node, value_parents, new_value)
uniform_covar(bnfit, node, value_node, value_parents, new_value)
An object of class bn.fit
with updated probabilities.
object of class bn.fit
.
character string. Node of which the conditional probability distribution is being changed.
character string. Level of node
.
character string. Levels of node
's parents. The levels should be defined according to the order of the parents in bnfit[[node]][["parents"]]
. If node
has no parents, then it should be set to NULL
.
numeric value between 0 and 1. Value to which the parameter should be updated.
The Bayesian network on which parameter variation is being conducted should be expressed as a bn.fit
object.
The name of the node to be varied, its level and its parent's levels should be specified.
The parameter variation specified by the function is:
P ( node
= value_node
| parents = value_parents
) = new_value
For orderp_covar
, if two or more parameters in a distribution have the same value, the order is given by the one in the respective conditional probability table. Furthermore, the parameter associated to the largest probability of the conditional probability law cannot be varied.
Laskey, K. B. (1995). Sensitivity analysis for probability assessments in Bayesian networks. IEEE Transactions on Systems, Man, and Cybernetics, 25(6), 901-909.
Renooij, S. (2014). Co-variation for sensitivity analysis in Bayesian networks: Properties, consequences and alternatives. International Journal of Approximate Reasoning, 55(4), 1022-1042.
Leonelli, M., & Riccomagno, E. (2022). A geometric characterization of sensitivity analysis in monomial models. International Journal of Approximate Reasoning, 151, 64-84. #'
proportional_covar(synthetic_bn, "y3", "2", c("2","1"), 0.3)
uniform_covar(synthetic_bn, "y2", "1", "2", 0.3)
orderp_covar(synthetic_bn, "y1", "1", NULL, 0.3)
Run the code above in your browser using DataLab