<jupyter_start><jupyter_text><NAME> 15 Simulation Parameters<jupyter_code>base_params = {
    'max_time_exposed': 4,
    'exposed_time_function': (lambda n: np.random.multinomial(n, poisson_pmf(max_time=4+1, mean_time=1))),
    
    'max_time_pre_ID': 4,
    'pre_ID_time_function': (lambda n: np.random.multinomial(n, poisson_pmf(max_time=4+1, mean_time=1))),
    
    'max_time_ID': 8,
    'ID_time_function': (lambda n: np.random.multinomial(n, poisson_pmf(max_time=8+1, mean_time=4))),
    
    'max_time_SyID_mild': 20,
    'SyID_mild_time_function': (lambda n: np.random.multinomial(n, poisson_pmf(max_time=20+1, mean_time=14))),
    
    'max_time_SyID_severe': 20,
    'SyID_severe_time_function': (lambda n: np.random.multinomial(n, poisson_pmf(max_time=20+1, mean_time=14))),
    
    'sample_QI_exit_function': (lambda n: np.random.binomial(n, 0.05)),
    'sample_QS_exit_function': (lambda n: np.random.binomial(n, 0.3)),
    
    'exposed_infection_p': 0.026,
    'expected_contacts_per_day': 10,
    
    'mild_symptoms_p': 0.4,
    'mild_symptoms_daily_self_report_p': 0.10,
    'severe_symptoms_daily_self_report_p': 0.85,
    
    'days_between_tests': 10,
    'test_population_fraction': 1/10,
    
    'test_protocol_QFNR': 0.1,
    'test_protocol_QFPR': 0.005,
    
    'perform_contact_tracing': True,
    'contact_tracing_constant': 2,
    'contact_tracing_delay': 1,
    
    'pre_ID_state': 'detectable',
    
    'population_size': 34000,
    'initial_E_count': 0,
    'initial_pre_ID_count': 10,
    'initial_ID_count': 0,
    'initial_SyID_mild_count': 0,
    'initial_SyID_severe_count': 0
}

sim = StochasticSimulation(base_params)
dfs_cts_seir_8_trace, dfs_bucket_seir_8_trace = sim_many_test_days(base_params=base_params, 
                                                       test_days=[300], 
                                                       use_SIR_dynamics=False, time_horizon=250)
plot_many_sims(dfs_cts_seir_8_trace, dfs_bucket_seir_8_trace, base_params, ID_only=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12579539892315222, 'fraction_numerical': 0.039647577092511016, 'mean_word_length': 3.7645687645687644, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '139410', 'license': 'MIT', 'n_tokens_mistral': 882, 'n_tokens_neox': 803, 'n_words': 104, 'path': 'boqn/group_testing/notebooks/simulations_v2_results_report_2-Copy1.ipynb', 'repo_name': 'RaulAstudillo06/BOQN', 'size': '2048'}