S1_Code_Simulation_and_inference.txt