seq_pa_ch_monitor {bnmonitor} | R Documentation |
Sequential parent-child node monitors
Description
Sequential node monitor for a vertex of a Bayesian network for a specific configuration of its parents
Usage
seq_pa_ch_monitor(dag, df, node.name, pa.names, pa.val, alpha = "default")
Arguments
dag |
an object of class |
df |
a base R style dataframe |
node.name |
node over which to compute the monitor |
pa.names |
vector including the names of the parents of |
pa.val |
vector including the levels of |
alpha |
single integer. By default, the number of max levels in |
Details
Consider a Bayesian network over variables and suppose a dataset
has been observed, where
and
is the i-th observation of the j-th variable.
Consider a configuration
of the parents and consider the sub-vector
of
including observations where the parents of
take value
only.
Let
be the conditional distribution of
given that its parents take value
after the first i-1 observations have been processed. Define
where are the possible values of
. The sequential parent-child node monitor for the vertex
and parent configuration
is defined as
Values of such that
can give an indication of a poor model fit for the vertex
after the first i-1 observations have been processed.
Value
A vector including the scores .
References
Cowell, R. G., Dawid, P., Lauritzen, S. L., & Spiegelhalter, D. J. (2006). Probabilistic networks and expert systems: Exact computational methods for Bayesian networks. Springer Science & Business Media.
Cowell, R. G., Verrall, R. J., & Yoon, Y. K. (2007). Modeling operational risk with Bayesian networks. Journal of Risk and Insurance, 74(4), 795-827.
See Also
influential_obs
, node_monitor
, seq_node_monitor
, seq_pa_ch_monitor
Examples
seq_pa_ch_monitor(chds_bn, chds, "Events", "Social", "High", 3)