private static double remainder(String attribute,
			ArrayList<HashMap<String, String>> examples,
			HashMap<String, String[]> attributeValues, int[] pn) {
		double out = 0;
		for (String distinctValue : attributeValues.get(attribute)) {
			int[] pnk = getPositivesAndNegatives(distinctValue, attribute,
					examples);
			if (pnk[0] + pnk[1] > 0) {
				System.out.println("B: "+B((double) pnk[0] / (pnk[0] + pnk[1])));
				out += (double) (pnk[0] + pnk[1]) / (pn[0] + pn[1])
						* B((double) pnk[0] / (pnk[0] + pnk[1]));
			}
		}
		return out;
	}