public double computeMaximumLikelihood(ArrayList<Integer> data) throws Exception {		
		double heads = 0;
		double total = 0;
		for (Integer i : data) {
			heads += i;
			total += 1;
		}
		if (total == 0) {
			throw new Exception("data contains no points");
		}
		return heads/total;
	}