2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/78269For words of length $n$, generated by independent geometric random variables, we consider the mean and variance of the number of inversions and of a parameter of Knuth from permutation in situ. In this way, $q$--analogues for these parameters from the usual permutation model are obtained.Combinatorics05A15Combinatorics of geometrically distributed random variables: Inversions and a parameter of Knuthtext