public double computeLogLikelihood(ArrayList<Integer> data, double parameter) {
		double sum = 0;
		for (Integer i : data) {
			if (i == 1) {
				sum += Math.log(parameter);
			}
			else {
				sum += Math.log(1 - parameter);
			}
		}
		return sum;
	}