private static double H(ArrayList<HashMap<String, String>> examples,
			HashMap<String, String[]> attributeValues, String goalAttribute) {
		double out = 0;
		for (String goalValue : attributeValues.get(goalAttribute)) {
			int valueCounter = 0;
			for (HashMap<String, String> example : examples) {
				if (example.get(goalAttribute).equals(goalValue)) {
					valueCounter++;
				}
			}
			out += B((double) valueCounter / examples.size());
		}
		return out;
	}