Tree Estimation and Saddlepoint-Based Diagnostics for the Nested Dirichlet Distribution: Application to Compositional Behavioral Data
Jacob A. Turner, Monnie McGee, Bianca A. Luedeker
TL;DR
This work tackles the practical challenges of using the Nested Dirichlet Distribution (NDD) for compositional data by introducing a data-driven greedy tree-finding algorithm and novel diagnostics. It leverages a saddlepoint-based approach to obtain accurate marginal approximations, enabling pseudo-residuals and a likelihood-displacement measure to assess fit and identify influential observations, even when marginals are intractable. The method is demonstrated on synthetic data and Morris water maze results, showing that the learned tree yields interpretable structure and improved fit relative to a standard Dirichlet. An accompanying R package is provided to support reproducible application to new datasets, promising greater adoption of the NDD in practical compositional analyses.
Abstract
The Nested Dirichlet Distribution (NDD) provides a flexible alternative to the Dirichlet distribution for modeling compositional data, relaxing constraints on component variances and correlations through a hierarchical tree structure. While theoretically appealing, the NDD is underused in practice due to two main limitations: the need to predefine the tree structure and the lack of diagnostics for evaluating model fit. This paper addresses both issues. First, we introduce a data-driven, greedy tree-finding algorithm that identifies plausible NDD tree structures from observed data. Second, we propose novel diagnostic tools, including pseudo-residuals based on a saddlepoint approximation to the marginal distributions and a likelihood displacement measure to detect influential observations. These tools provide accurate and computationally tractable assessments of model fit, even when marginal distributions are analytically intractable. We demonstrate our approach through simulation studies and apply it to data from a Morris water maze experiment, where the goal is to detect differences in spatial learning strategies among cognitively impaired and unimpaired mice. Our methods yield interpretable structures and improved model evaluation in a realistic compositional setting. An accompanying R package is provided to support reproducibility and application to new datasets.
