Photo of Haziq Jamil

Haziq Jamil1,2,3,*

1Computer, Electrical and Mathematical Sciences and Engineering (CEMSE) Division,
King Abdullah University of Science and Technology (KAUST), Thuwal, Kingdom of Saudi Arabia

2Mathematical Sciences, Faculty of Science, Universiti Brunei Darussalam (UBD), Brunei Darussalam
3Department of Statistics, London School of Economics and Political Science (LSE), London, United Kingdom

Received October 2018 (PhD) · Accepted August 2025 (KAUST) ·

Abstract. I am a statistician working on theory, methods, and computation for latent variable models. These models infer hidden traits, and the relationships between them, from indirect, multivariate measurements. Contemporary data are larger, noisier, and more richly structured than ever, and they call for new tools to analyse them. As a Research Specialist in Håvard Rue’s BAYESCOMP group at KAUST, I aim to advance scalable Bayesian methods for latent variable models, starting with fast and accurate inference for structural equation models (SEM) built on integrated nested Laplace approximations (INLA; Rue et al., 2009). The project is funded by a USD 900,000 KAUST Competitive Research Grant, on which I am co-investigator. Earlier work covers bias-reduced regularisation for small-sample SEM and limited-information methods for categorical data under complex sampling. I hold an Assistant Professorship in Statistics at UBD (on leave) and a Visiting Fellow position in the Department of Statistics at the LSE (2024–2027). I studied at Warwick, where David Firth supervised my undergraduate research project, and at the LSE, where my PhD on nonparametric regression using information-dependent priors was supervised by Wicher Bergsma and Irini Moustaki. My thesis was awarded the Zellner Thesis Award (honourable mention) by the American Statistical Association in 2020. As a strong proponent of open-source software, I write my methods in R and make them freely available on GitHub, where anyone is welcome to use, adapt, and contribute to them.

*All correspondence should be addressed to Haziq Jamil,

1 Introduction

All random variables are latent, but some random variables are more latent than others.

With apologies to George Orwell

Student ability, anxiety severity, food insecurity, institutional trust, and job satisfaction are central constructs in education, health, and the social sciences, yet none can be observed directly. Latent variable modelling, which includes factor analysis, structural equation models (SEM), and item response theory, is the statistical framework for studying them. Bayesian inference suits these models well: it offers principled uncertainty quantification, small-sample regularisation, and flexible model specification. Despite its ubiquity, current computational approaches like Bayesian Markov chain Monte Carlo (MCMC) struggle to scale with modern data complexities. The bottleneck is acute in applied psychometrics, where measurements are noisy, outcomes hierarchical, and data highly dependent, and where careful modelling follows an iterative workflow of specification, criticism, and refinement. My work aims to remove most of that cost.

A network of grey circles, each with small sand-coloured squares, in the shape of Saudi Arabia. It is dense along the west coast, in Qassim and round Riyadh and Dammam, and empty over the Empty Quarter. Thirteen red rings, labelled with the region names in Arabic, mark the regional capitals, with faint red lines to their respondents.
Figure 1. A spatial item response model drawn as a graph. Every respondent's latent trait is measured by a few responses and tied to its neighbours and its region, so a simple model becomes thousands of dependent latent variables. Simulated respondents; settlements from GeoNames.

2 Research programme

INLA was designed for models with only a handful of hyperparameters, whereas the typical SEM has dozens. We therefore built a bespoke and efficient algorithm for latent variable models from the ground up, distilled from the INLA methodology.

Theorem 1 (Fast approximate inference) Let ℳ be a latent variable model whose log-posterior \(\log \pi(\vartheta \mid y)\) and its gradient are cheap to evaluate, and for which \(\log \pi(\vartheta \mid y)\) is sufficiently close to quadratic in some unconstrained parameterisation. Then accurate approximate Bayesian inference for ℳ is possible at a small fraction of the cost of Markov chain Monte Carlo.

Proof. Approximate the joint posterior by a Gaussian that matches the posterior mode and the curvature there, correct each marginal for skewness, and obtain everything else by sampling from a Gaussian copula built on these marginals. The methodology for normal-theory SEM is detailed in Jamil and Rue (2026a), and the software in Jamil and Rue (2026b). Model comparison by leave-one-cluster-out cross-validation is also available, in closed form and without refitting (Alhyari et al., 2026).

Six density plots in which the INLAvaan curve lies on top of the MCMC histogram.
Figure 2. INLAvaan (red) and MCMC (grey) fit the Political Democracy model (Bollen, 1989), shown for six of its 30 parameters. INLAvaan finishes in 0.33 s, while MCMC is still warming up; MCMC takes 11.3 s for 30,000 draws. Across all 30 parameters the two posteriors agree to at least 98.1%. The clock shows real time, and playback slows down while INLAvaan works.

Remark 1. The conditions of Theorem 1 hold for well-identified normal-theory SEM, multilevel models included (Alhyari et al., 2026; Jamil & Rue, 2026b). Accuracy degrades in weakly identified models and in the lower tails of variances near zero (Jamil & Rue, 2026a). Extending the method to categorical data is ongoing work (see Section 5).

Remark 2 (Availability). Students, researchers, and academics who would like to collaborate on the problems in Section 5 are welcome to get in touch. I am also happy to give talks and short courses on Bayesian SEM and INLAvaan.

3 News

  1. upcoming Approximate Bayesian inference beyond structural equation models. Psychoco 2027, Maastricht University, Maastricht, Netherlands.
  2. upcoming Approximate Bayesian inference for structural equation models. CFE-CMStatistics 2026, HTW Berlin, Berlin, Germany (online). slides
  3. Advancing scalable Bayesian methods for latent variable modelling. KAUST Statistics Research Day, KAUST, Thuwal, Saudi Arabia. slides
  4. Approximate Bayesian inference for structural equation models (SEM): The INLA approach. Centre for Educational Measurement (CEMO) seminar, University of Oslo, Oslo, Norway. slides
  5. Approximate Bayesian inference for structural equation models (SEM): The INLA approach. International Meeting of the Psychometric Society (IMPS) 2026, Yonsei University, Seoul, South Korea. slides

→ All news · RSS feed

4 Software

The methods of Section 2 are implemented in the following R package. With models fitting in seconds, it makes the iterative Bayesian psychometric workflow feasible in applied work.

INLAvaan — Approximate Bayesian latent variable analysis. Fast Bayesian structural equation models with lavaan syntax, using integrated nested Laplace approximations.
CRANdocscode

Listing 1. Fit a Bayesian SEM with INLAvaan, using the lavaan model syntax.

install.packages("INLAvaan")
library(INLAvaan)
model <- "
  # Measurement model
  ind60 =~ x1 + x2 + x3
  dem60 =~ y1 + y2 + y3 + y4
  dem65 =~ y5 + y6 + y7 + y8

  # Structural model
  dem60 ~ ind60
  dem65 ~ ind60 + dem60

  # Residual covariances
  y1 ~~ y5
  y2 ~~ y4 + y6
  y3 ~~ y7
  y4 ~~ y8
  y6 ~~ y8
"
fit <- asem(model, data = lavaan::PoliticalDemocracy)
summary(fit)

→ All 4 packages

5 Discussion and future work

Having laid the foundation for fast approximate inference in SEM, I see several directions with genuinely open questions. I would welcome collaborators on any of them.

  1. Beyond normal-theory SEM. Binary, ordinal, and count outcomes break the closed-form likelihood that makes normal-theory SEM fast, and their posteriors can be sharply skewed. How far can Laplace-type approximations be pushed before they lose accuracy, and can one engine serve mixed data, where continuous, ordinal, and count indicators load on the same factors?
  2. Space and time. Respondents share neighbourhoods, and constructs evolve between survey waves. Continuous-time SEM, areal spatial effects, and Gaussian random fields with Matérn covariance through the SPDE approach each add a latent field to a model that is already latent (Figure 1). Can the sparse precision structure that makes INLA fast for spatial models be married to the dense covariance structure of SEM?
  3. Discrete latent variables. Latent class and mixture models posit unobserved categories rather than continua, so the latent variables are no longer Gaussian, a case that falls outside classical INLA. Can deterministic approximation still work when the latent space is discrete and the posterior is multimodal?
  4. Priors that mean something. Default priors for SEM are often chosen for convenience and behave poorly near the boundary, where variances approach zero. Penalised complexity priors shrink towards a simpler base model at an interpretable rate. What is the right base model, and the right parameterisation, for loadings, variances, and above all correlation matrices?

Data and code availability

All methods are released as open-source R packages on CRAN and GitHub. Slides for most talks are on this site (see Talks). The benchmark behind Figure 2 fits the PoliticalDemocracy data of lavaan (Bollen, 1989) with INLAvaan 0.4.1.9000 and blavaan 0.6.1, run on 2026-12-01.

Acknowledgements

I thank my coauthors, students, and colleagues at KAUST, UBD, and the LSE. This work is supported by KAUST Competitive Research Grant URF/1/6921-01-01.

Declaration of generative AI use

In preparing this site, I used Claude Opus 5.5 (Anthropic) to help write code, design the layout, and edit text. I reviewed and edited all content and take full responsibility for it.

References

  1. Jamil, H., & Rue, H. (2026a). Approximate Bayesian inference for structural equation models using integrated nested Laplace approximations [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2603.25690 preprint
  2. Jamil, H., & Rue, H. (2026b). Implementation and workflows for INLA-based approximate Bayesian structural equation modelling [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2604.00671 preprint
  3. Alhyari, M., Jamil, H., Montcho, H., & Rue, H. (2026). Deterministic leave-one-cluster-out cross-validation for multilevel Bayesian structural equation models [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2609.00670
  4. Jamil, H., Rosseel, Y., Kemp, O., & Kosmidis, I. (2026). Bias-reduced estimation of structural equation models. Structural Equation Modeling: A Multidisciplinary Journal, 33(3), 376–392. https://doi.org/10.1080/10705511.2025.2610462 preprint
  5. Jamil, H. (2025). A spatio-temporal analysis of house prices in Brunei Darussalam. Quality & Quantity, 59(6), 5089–5120. https://doi.org/10.1007/s11135-025-02164-0 preprint
  6. Jamil, H., Moustaki, I., & Skinner, C. (2025). Pairwise likelihood estimation and limited-information goodness-of-fit test statistics for binary factor analysis models under complex survey sampling. British Journal of Mathematical and Statistical Psychology, 78(1), 258–285. https://doi.org/10.1111/bmsp.12358 preprint

→ All 29 publications

Appendix A. Biography

Education

  • PhD in Statistics, London School of Economics and Political Science (2018)
  • MSc in Statistics with Distinction, London School of Economics and Political Science (2014)
  • BSc and Master of Mathematics, Operational Research, Statistics and Economics (MMORSE) with First Class Honours, University of Warwick (2010)

Career

  • Research Specialist, King Abdullah University of Science and Technology (2025–present)
  • Visiting Fellow, Department of Statistics, London School of Economics and Political Science (2024–2027)
  • Assistant Professor in Statistics, Universiti Brunei Darussalam (2019–present, on leave since 2025)
  • Research Officer, Centre of Science and Technology Research and Development, Ministry of Defence, Brunei (2010–2013, 2018–2019)

Service

  • Associate Editor, Journal of Statistical Theory and Applications (2025–present)
  • Review Editor, Frontiers in Applied Mathematics and Statistics (2020–2023)
  • Contributor, lavaan R package (2023–present)
  • Chair, Brunei R User Group (2024–2026)
  • Referee for journals including Psychometrika, Annals of Applied Statistics, Statistics and Computing, Journal of the Royal Statistical Society: Series C, Behavior Research Methods, Quality & Quantity, and SoftwareX

For programmes and introductions, copy whichever length fits.

Short (40 words)

Haziq Jamil is a Research Specialist at KAUST and an Assistant Professor in Statistics (on leave) at Universiti Brunei Darussalam. He develops scalable Bayesian methods and open-source R software for latent variable models. He holds a PhD in Statistics from the LSE.

Medium (90 words)

Haziq Jamil is a Research Specialist in Håvard Rue’s BAYESCOMP group at King Abdullah University of Science and Technology (KAUST), on leave from his post as Assistant Professor in Statistics at Universiti Brunei Darussalam, and a Visiting Fellow at the London School of Economics. He works on theory, methods, and computation for latent variable models, and is co-investigator on a KAUST Competitive Research Grant to develop fast Bayesian inference for structural equation models. He is the author of the R package INLAvaan. He holds a PhD in Statistics from the LSE.

Long (150 words)

Haziq Jamil is a Research Specialist in the Bayesian Computational Statistics and Modeling (BAYESCOMP) group, led by Håvard Rue, at King Abdullah University of Science and Technology (KAUST). He is on leave from his post as Assistant Professor in Statistics at Universiti Brunei Darussalam, and is a Visiting Fellow in the Department of Statistics at the London School of Economics and Political Science (2024–2027). His research covers theory, methods, and computation for latent variable models. His current work develops fast approximate Bayesian inference for structural equation models using integrated nested Laplace approximations, funded by a KAUST Competitive Research Grant on which he is co-investigator. Earlier work covers bias-reduced estimation and pairwise likelihood methods for categorical data. He obtained his PhD in Statistics from the LSE in 2018, and his thesis received an honourable mention for the Zellner Thesis Award of the American Statistical Association. He is the author of several open-source R packages, including INLAvaan.

Appendix B. Headshot

Full resolution (2996 × 2996, JPEG): download. Free to use for event programmes.