Hostname: page-component-6766d58669-h8lrw Total loading time: 0 Render date: 2026-05-20T04:49:46.193Z Has data issue: false hasContentIssue false

Bayesian Analysis of the Ordinal Markov Random Field

Published online by Cambridge University Press:  03 January 2025

Maarten Marsman*
Affiliation:
Department of Psychology, University of Amsterdam, Amsterdam, Netherlands
Don van den Bergh
Affiliation:
Department of Psychology, University of Amsterdam, Amsterdam, Netherlands
Jonas M. B. Haslbeck
Affiliation:
Department of Psychology, University of Amsterdam, Amsterdam, Netherlands Department of Clinical Psychological Science, Maastricht University, Maastricht, Netherlands
*
Corresponding author: Maarten Marsman; Email: m.marsman@uva.nl
Rights & Permissions [Opens in a new window]

Abstract

Multivariate analysis using graphical models is rapidly gaining ground in psychology. In particular, Markov random field (MRF) graphical models have become popular because their graph structure reflects the conditional associations between psychological variables. Despite the fact that most psychological variables are assessed on an ordinal scale, the analysis of MRFs for ordinal variables has received little attention in the psychometric literature. To fill this gap, we present an MRF for ordinal data that so far has not been considered in network psychometrics. We present statistical methodology to test the structure of the proposed MRF, which requires us to determine the plausibility of the opposing hypotheses of conditional dependence and independence. To this end, we develop a Bayesian approach using the inclusion Bayes factor to quantify the (lack of) evidence for a given edge. We use a Bayesian variable selection approach to model the inclusion and exclusion of edges in the network, and Bayesian model averaging to compare network structures with and without the given edge. We provide an implementation in the new R package bgms, evaluate its performance in simulations, and illustrate it with empirical data.

Information

Type
Theory and Methods
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Psychometric Society
Figure 0

Figure 1 Scatterplots comparing EAP (expected a posteriori) estimates for the pairwise interaction parameter with the estimated inclusion probabilities, each averaged over 500 datasets. The left panel shows estimates based on the pseudolikelihood approach, while the right panel focuses on estimates based on the DMH algorithm. Each scatterplot includes dashed lines representing specific evidence thresholds under a uniform prior; the top line indicates an inclusion Bayes factor value of 10 (i.e., evidence for inclusion), the middle line indicates an inclusion Bayes factor value of 1 (i.e., absence of evidence), and the bottom line indicates an inclusion Bayes factor value of 0.1 (i.e., evidence for exclusion).

Figure 1

Table 1 Performance metrics—specificity, sensitivity, and Rand index—of different edge selection methods applied to 500 simulated Ising model data sets, following the setup of Park et al. (2022)

Figure 2

Table 2 Performance metrics—specificity, sensitivity, and Rand index—of the PL-MoMS and the DMH-MoMS methods applied to 500 simulated ordinal MRF datasets

Figure 3

Figure 2 Markov random fields estimated with different approaches. Panel (a) displays the network structure as reported in McNally et al. (2015) which thresholded observed partial correlations at $0.10$; panel (b) shows the GGM estimated with the popular graphical Lasso + EBIC approach; and panel (c) displays the ordinal MRF estimated with the Bayesian approach presented in this paper.

Figure 4

Figure 3 The mean of the model-averaged posterior distribution of the interaction parameters (x-axis) plotted against the log of the corresponding inclusion Bayes factor (y-axis). Positive values of the log Bayes factors indicate evidence for inclusion, and negative values indicate evidence for exclusion. We use Bayes factor values between ${1}/{10}$ and $10$ to indicate weak (or no) evidence. For this analysis, we assumed a unit information prior on the interaction parameters. Triangles indicate log Bayes factors greater than five.

Figure 5

Figure 4 Three networks showing the level of evidence for each edge. In the network on the left, the edges reflect inclusion Bayes factors less than ${1}/{10}$; in the middle network, the edges reflect Bayes factors between ${1}/{10}$ and $10$; the edges in the network on the right reflect Bayes factors greater than $10.$ For this analysis, we specified a unit information prior on the interaction parameters.

Figure 6

Figure B1 Scatterplots comparing MLEs (maximum likelihood estimates) and MPLEs (maximum pseudolikelihood estimates), each averaged across 500 datasets, against the values of the data-generating parameters. The left panel presents the estimates for pairwise interaction parameters, while the right panel focuses on the estimates for category threshold parameters. Each scatterplot features a solid line representing a perfect match (with an intercept of zero and a slope of one) and dashed lines depicting the actual regression lines.

Figure 7

Figure E1 The left panel shows scatterplots illustrating the relationship between the average time (in seconds) to complete different implementations of the pseudolikelihood-based Gibbs sampler and the number of iterations. The right panel shows similar scatterplots for the DMH-based approach. In both panels, the straight lines represent regression lines modeling this relationship.

Figure 8

Table E1 This table presents the regression coefficients obtained from analyzing the total runtime (in seconds) against the number of iterations for various implementations of the Gibbs sampler

Figure 9

Figure F1 Scatterplots of the log of the inclusion Bayes factors under the unit information prior versus the log of the inclusion Bayes factors under the Cauchy$(0\text {, }1)$ prior in the left panel and under the Cauchy$(0\text {, }2.5)$ prior in the right panel. The black diagonal line passes through zero and has unit slope. The blue diagonal goes through $-log(2.5)$ and also has unit slope.