Statistics for Jordan homomorphisms and derivations on algebras of measurable operators