def test_mc_sample_path_lln():
    P = [[0.4, 0.6], [0.2, 0.8]]
    stationary_dist = [0.25, 0.75]
    init = 0

    seed = 4433
    sample_size = 10**4
    tol = 0.02

    frequency_1 = mc_sample_path(P, init=init, sample_size=sample_size,
                                 random_state=seed).mean()
    ok_(np.abs(frequency_1 - stationary_dist[1]) < tol)
dataset/ETHPy150Open QuantEcon/QuantEcon.py/quantecon/markov/tests/test_core.py/test_mc_sample_path_lln/original