Statistics for Contracts for Density and Packing Functions