Viewing the Matsumoto–Yor property as a bivariate property with respect to the simple tree with two vertices and one edge, we extend it to a p-variate property with respect to any tree with p vertices. The converse of the Matsumoto–Yor property, which characterizes the product of a gamma and a generalized inverse Gaussian distribution, is extended to characterize the product of a gamma and p 1 ...