diameter {bnmonitor} | R Documentation |
Diameters in a Bayesian network
Description
Computation of the diameters of all conditional probability tables in a Bayesian network.
Usage
diameter(bnfit)
Arguments
bnfit |
object of class |
Details
The diameter of a conditional probability table with
rows
is
where is the total variation distance between two probability mass functions over a sample space
, i.e.
Value
A dataframe with the following columns: Nodes
- the vertices of the BN; Diameter
- the diameters of the associated conditional probability tables.
References
Leonelli, M., Smith, J. Q., & Wright, S. K. (2024). The diameter of a stochastic matrix: A new measure for sensitivity analysis in Bayesian networks. arXiv preprint arXiv:2407.04667.
Examples
diameter(travel)
[Package bnmonitor version 0.2.0 Index]