Statistics for Ideals in von Neumann algebras and in associated operator algebras