Expected Frequency Matrices of Elections: Computation, Geometry, and Preference Learning