pyhgf.updates.prediction_error.continuous.continuous_node_volatility_prediction_error#
- pyhgf.updates.prediction_error.continuous.continuous_node_volatility_prediction_error(attributes: Dict, node_idx: int) Dict [source]#
Compute the volatility prediction error of a state node.
The volatility prediction error \(\Delta_j^{(k)}\) of a state node \(j\) is given by:
\[\Delta_j^{(k)} = \frac{\hat{\pi}_j^{(k)}}{\pi_j^{(k)}} + \hat{\pi}_j^{(k)} \left( \delta_j^{(k)} \right)^2 - 1\]- Parameters:
- attributes
The attributes of the probabilistic nodes.
- node_idx
Pointer to the node that will be updated.
- Returns:
- attributes
The attributes of the probabilistic nodes.
References
[1]Weber, L. A., Waade, P. T., Legrand, N., Møller, A. H., Stephan, K. E., & Mathys, C. (2023). The generalized Hierarchical Gaussian Filter (Version 1). arXiv. https://doi.org/10.48550/ARXIV.2305.10937