The multivariate Selberg beta distribution and applications