A probabilistic Tits alternative and probabilistic identities