Python Empirical Distribution Example Ap