Invariant expectation values in the sampling of discrete frequency distributions