Variance estimation in compound decision theory under boundedness