weighted variance by input size