@Override
	public double getVariance() throws VarianceException {
		if (lambda <= 1) {
			throw new VarianceException("Pareto variance lambda > 1.");
		} else if (1 < lambda && lambda <= 2) {
			return Double.POSITIVE_INFINITY;
		} else {
			return Math.pow(k / (lambda - 1), 2) * lambda / (lambda - 2);
		}
	}