respy.tests.test_simulate

Test the simulation routine.

Module Contents

Functions

test_simulated_data(model_or_seed)

Test simulated data with check_simulated_data.

test_one_step_ahead_simulation()

test_equality_for_myopic_agents_and_tiny_delta()

Test equality of simulated data and likelihood with myopia and tiny delta.

test_equality_of_models_with_and_without_observables()

Test equality of models with and without observables.

test_distribution_of_observables()

Test that the distribution of observables matches the simulated distribution.

test_apply_law_of_motion(i)

respy.tests.test_simulate.test_simulated_data(model_or_seed)[source]

Test simulated data with check_simulated_data.

Note that, check_estimation_data is also tested in this function as these tests focus on a subset of the data.

respy.tests.test_simulate.test_one_step_ahead_simulation()[source]
respy.tests.test_simulate.test_equality_for_myopic_agents_and_tiny_delta()[source]

Test equality of simulated data and likelihood with myopia and tiny delta.

respy.tests.test_simulate.test_equality_of_models_with_and_without_observables()[source]

Test equality of models with and without observables.

First, generate a model where the parameter values of observables is set to zero. The second model is obtained by assigning all observable indicators the value of the constant in the reward functions and set the constants to zero. The two models should be equivalent.

respy.tests.test_simulate.test_distribution_of_observables()[source]

Test that the distribution of observables matches the simulated distribution.

respy.tests.test_simulate.test_apply_law_of_motion(i)[source]