Abstract

Regression models for compositional data are common in several areas

of knowledge. As in other classes of regression models, it is desirable to perform diagnostic analysis in these models using residuals that are approximately

standard normally distributed. However, for regression models for compositional

data, there has not been any multivariate residual that meets this requirement. In

this work, we introduce a class of asymptotically standard normally distributed

residuals for compositional data based on bootstrap.

Monte Carlo simulation

studies indicate that the distributions of the residuals of this class are well approximated by the standard normal distribution in small samples. Two other

simulation studies suggest that residuals of this class can detect a wrong linear

predictor, while one of them performs well in identifying an incorrect response

distribution. The usefulness of this residual is illustrated through an application

on sleep stages. The class of residuals proposed here can also be used in other

classes of multivariate regression models.

Key words and phrases: Bootstrap, compositional data, diagnostic analysis, quan- tile residual

Information

Preprint No.SS-2025-0172
Manuscript IDSS-2025-0172
Complete AuthorsGustavo H. A. Pereira, Jianwen Cai
Corresponding AuthorsGustavo H. A. Pereira
Emailsgpereira@ufscar.br

References

  1. Aitchison, J. (1986). The Statistical Analysis of Compositional Data. Chapman and Hall.
  2. Alenazi, A. (2023). A review of compositional data analysis and recent advances. Communications in Statistics-Theory and Methods 52(16), 5535–5567.
  3. Andrade, A. C., G. H. Pereira, and R. Artes (2023). The circular quantile residual. Computational Statistics & Data Analysis 178, 107612.
  4. Apolo, A. B., C. Michaels-Igbokwe, N. I. Simon, D. J. Benjamin, M. Farrar, Z. Hepp, L. Mucha,
  5. S. Heidenreich, K. Cutts, N. Krucien, et al. (2025). Patient preferences for first-line treatment of locally advanced or metastatic urothelial carcinoma: an application of multidimensional thresholding. The Patient-Patient-Centered Outcomes Research 18(1), 77–87.
  6. Ascari, R., A. M. Di Brisco, S. Migliorati, and A. Ongaro (2024). A multivariate mixture regression model for constrained responses. Bayesian Analysis 19(2), 377–405.
  7. Breuninger, T. A., N. Wawro, J. Breuninger, S. Reitmeier, T. Clavel, J. Six-Merker, G. Pestoni,
  8. S. Rohrmann, W. Rathmann, A. Peters, et al. (2021). Associations between habitual diet, metabolic disease, and the gut microbiota using latent dirichlet allocation. Microbiome 9(1), 1–18.
  9. Brida, J. G., B. Lanzilotta, and L. Moreno (2023). Compositional tourists’ expenditure: Modeling through dirichlet regression. Tourism Economics 29(6), 1442–1460.
  10. Campbell, G. and J. Mosimann (1987). Multivariate methods for proportional shape. In ASA Proceedings of the Section on Statistical Graphics, Volume 1, pp. 10–17. Washington DC.
  11. Cudjoe, E., F. Bravo, and R. Ruiz-Peinado (2024). Allometry and biomass dynamics in temperate mixed and monospecific stands: Contrasting response of scots pine (pinus sylvestris l.) and sessile oak (quercus petraea (matt.) liebl.). Science of the Total Environment 953, 176061.
  12. Da-Silva, C. Q. and G. S. Rodrigues (2015). Bayesian dynamic dirichlet models. Communications in Statistics-Simulation and Computation 44(3), 787–818.
  13. Das, I. and S. Mukhopadhyay (2014). On generalized multinomial models and joint percentile estimation. Journal of Statistical Planning and Inference 145, 190–203.
  14. Dunn, P. K. and G. K. Smyth (1996). Randomized quantile residuals. Journal of Computational and Graphical Statistics 5(3), 236–244.
  15. Efron, B. and R. J. Tibshirani (1994). An introduction to the bootstrap. CRC press.
  16. Feng, C., L. Li, and A. Sadeghpour (2020). A comparison of residual diagnosis tools for diagnosing regression models for count data. BMC Medical Research Methodology 20(1), 1–21.
  17. Fernandes, A. D., J. N. Reid, J. M. Macklaim, T. A. McMurrough, D. R. Edgell, and G. B.
  18. Gloor (2014). Unifying the analysis of high-throughput sequencing datasets: characterizing rna-seq, 16s rrna gene sequencing and selective growth experiments by compositional data analysis. Microbiome 2(1), 1–13.
  19. Ferrari, S. and F. Cribari-Neto (2004). Beta regression for modelling rates and proportions. Journal of applied statistics 31(7), 799–815.
  20. Filzmoser, P., K. Hron, and C. Reimann (2012). Interpretation of multivariate outliers for compositional data. Computers & Geosciences 39, 77–85.
  21. Gerber, E. A. and B. A. Craig (2024). Residuals and diagnostics for multinomial regression models. Statistical Analysis and Data Mining: The ASA Data Science Journal 17(1), e11645.
  22. Ghorbani, H. (2019). Mahalanobis distance and its application for detecting multivariate outliers. Facta Universitatis, Series: Mathematics and Informatics, 583–595. Gonz´alez-Naranjo, J. E., M. Alfonso-Alfonso, D. Grass-Fernandez, L. M. Morales-Chac´on,
  23. I. Pedroso-Ib´a˜nez, Y. Ricardo-De La Fe, and A. Padr´on-S´anchez (2019). Analysis of sleep macrostructure in patients diagnosed with parkinson’s disease. Behavioral Sciences 9(1), 6.
  24. Gouda, A. A. and T. Sz´antai (2010). On numerical calculation of probabilities according to dirichlet distribution. Annals of Operations Research 177(1), 185–200.
  25. Gueorguieva, R., R. Rosenheck, and D. Zelterman (2008). Dirichlet component regression and its applications to psychiatric data. Computational statistics & data analysis 52(12), 5344– 5355.
  26. Hanretty, C. (2021). Forecasting multiparty by-elections using dirichlet regression. International Journal of Forecasting 37(4), 1666–1676.
  27. Hijazi, R. (2011). An em-algorithm based method to deal with rounded zeros in compositional data under dirichlet models. In Proceedings of CoDaWork’11: 4th international workshop on Compositional Data Analysis, Egozcue, JJ, Tolosana-Delgado, R. and Ortego, MI (eds.) 2011. CIMNE.
  28. Hijazi, R. H. (2006). Residuals and diagnostics in dirichlet regression. ASA Proceedings of the General Methodology Section, 1190–1196.
  29. Hijazi, R. H. and R. W. Jernigan (2009). Modelling compositional data using dirichlet regression models. Journal of Applied Probability & Statistics 4(1), 77–91.
  30. Hosmer Jr, D. W., S. Lemeshow, and R. X. Sturdivant (2013). Applied logistic regression (3 ed.). John Wiley & Sons.
  31. Hussain, I., M. A. Hossain, R. Jany, M. A. Bari, M. Uddin, A. R. M. Kamal, Y. Ku, and
  32. J.-S. Kim (2022). Quantitative evaluation of eeg-biomarkers for prediction of sleep stages. Sensors 22(8), 3079.
  33. Johnson, R. A. and D. W. Wichern (2013). Applied multivariate statistical analysis (6 ed.). Prentice hall Upper Saddle River, NJ.
  34. Lemonte, A. J. and G. Moreno-Arenas (2019). On residuals in generalized johnson sb regressions. Applied Mathematical Modelling 67, 62–73.
  35. Lemonte, A. J. and A. G. Patriota (2011). Multivariate elliptical models with general parameterization. Statistical Methodology 8(4), 389–400.
  36. Li, D., M. F. Al-Mahamda, Y. Song, S. Feng, and N. N. Sze (2022). An alternate crash severity multicategory modeling approach with asymmetric property. Analytic Methods in Accident Research 35, 100218.
  37. Li, W., D. Cook, E. Tanaka, and S. VanderPlas (2024). A plot is worth a thousand tests: Assessing residual diagnostics with the lineup protocol. Journal of Computational and Graphical Statistics 33(4), 1497–1511.
  38. Maier, M. J. (2014). Dirichletreg: Dirichlet regression for compositional data in r. Research Report Series / Department of Statistics and Mathematics 125.
  39. Mart´ınez-Minaya, J., F. Lindgren, A. L´opez-Qu´ılez, D. Simpson, and D. Conesa (2023). The integrated nested laplace approximation for fitting dirichlet regression models. Journal of Computational and Graphical Statistics 32(3), 805–823.
  40. Maski, K. P., A. Colclasure, E. Little, E. Steinhart, T. E. Scammell, W. Navidi, and C. Diniz Behn (2021). Stability of nocturnal wake and sleep stages defines central nervous system disorders of hypersomnolence. Sleep 44(7), zsab021.
  41. Melo, T. F., T. M. Vargas, A. J. Lemonte, and G. Moreno-Arenas (2022). Higher-order asymptotic refinements in the multivariate dirichlet regression model. Communications in Statistics-Simulation and Computation 51(1), 53–71.
  42. Morais, J., C. Thomas-Agnan, and M. Simioni (2018). Using compositional and dirichlet models for market share regression. Journal of Applied Statistics 45(9), 1670–1689.
  43. Ohayon, M., E. M. Wickwire, M. Hirshkowitz, S. M. Albert, A. Avidan, F. J. Daly, Y. Dauvilliers, R. Ferri, C. Fung, D. Gozal, et al. (2017). National sleep foundation’s sleep quality recommendations: first report. Sleep health 3(1), 6–19.
  44. Pereira, G. H., J. Scudilio, M. Santos-Neto, D. A. Botter, and M. C. Sandoval (2020). A class of residuals for outlier identification in zero adjusted regression models. Journal of Applied Statistics 47(10), 1833–1847.
  45. Pereira, G. H. A. (2019). On quantile residuals in beta regression. Communications in StatisticsSimulation and Computation 48(1), 302–316.
  46. Reichert, S., V. Berger, D. J. F. Dos Santos, M. Lahdenper¨a, U. K. Nyein, W. Htut, and
  47. V. Lummaa (2022). Age related variation of health markers in asian elephants. Experimental Gerontology 157, 111629.
  48. Ritmala-Castren, M., I. Virtanen, S. Leivo, K.-M. Kaukonen, and H. Leino-Kilpi (2015). Sleep and nursing care activities in an intensive care unit. Nursing & health sciences 17(3), 354–361.
  49. Ross, G. J. (2020). Tracking the evolution of literary style via dirichlet–multinomial change point regression. Journal of the Royal Statistical Society: Series A (Statistics in Society) 183(1), 149–167.
  50. Scealy, J. L. and A. Welsh (2011). Regression for compositional data by using distributions defined on the hypersphere. Journal of the Royal Statistical Society Series B: Statistical Methodology 73(3), 351–375.
  51. Schaid, D. J., X. Tong, A. Batzler, J. P. Sinnwell, J. Qing, and J. M. Biernacka (2019). Multivariate generalized linear model for genetic pleiotropy. Biostatistics 20(1), 111–128.
  52. Scudilio, J. and G. H. Pereira (2020). Adjusted quantile residual for generalized linear models. Computational Statistics 35(1), 399–421.
  53. Stephens, M. A. (1986). Tests based on edf statistic. In Goodness-of-fit Techniques, pp. 97–193. Marcel Dekker.
  54. Tempesta, D., V. Socci, L. De Gennaro, and M. Ferrara (2018). Sleep and emotional processing. Sleep medicine reviews 40, 183–195.
  55. Trijoulet, V., C. M. Albertsen, K. Kristensen, C. M. Legault, T. J. Miller, and A. Nielsen (2023). Model validation for compositional data in stock assessment models: calculating residuals with correct properties. Fisheries Research 257, 106487.
  56. Tsagris, M. and C. Stewart (2018). A dirichlet regression model for compositional data with zeros. Lobachevskii Journal of Mathematics 39(3), 398–412.
  57. Tsilimigras, M. C. and A. A. Fodor (2016). Compositional data analysis of the microbiome: fundamentals, tools, and challenges. Annals of epidemiology 26(5), 330–335.
  58. Veje, M., M. Studahl, E. Thunstr¨om, E. Stentoft, P. Nolskog, Y. Celik, and Y. Peker (2021). Sleep architecture, obstructive sleep apnea and functional outcomes in adults with a history of tick-borne encephalitis. PLoS One 16(2), e0246767.
  59. Yang, L. (2024). Double probability integral transform residuals for regression models with discrete outcomes. Journal of Computational and Graphical Statistics 33(3), 787–803.
  60. Yazici, B. and S. Yolacan (2007). A comparison of various tests of normality. Journal of statistical computation and simulation 77(2), 175–183.
  61. Yoo, J., M. Greenacre, and D. Chung (2022). A guideline for the statistical analysis of compositional data in immunology. Communications for Statistical Applications and Methods 29(4), 453–469. Gustavo H. A. Pereira, Department of Statistics, Federal University of S˜ao Carlos.

Acknowledgments

This work was partially supported by S˜ao Paulo Research Foundation (FAPESP),

grant number 2020/16334-9. We also thank an associate editor and two

anonymous reviewers for their helpful comments.

Supplementary Materials

The Supplementary Material includes the proof of Theorem 1 (Section S1),

three tables from the simulation studies presented in Section 3.1 (Section

S2), and analyses of misspecification detection (Section S3).


Supplementary materials are available for download.