Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define and use parameters that handle the state transitions in the Infection #664

Open
2 tasks done
DavidKerkmann opened this issue Jun 12, 2023 · 2 comments · May be fixed by #710
Open
2 tasks done

Define and use parameters that handle the state transitions in the Infection #664

DavidKerkmann opened this issue Jun 12, 2023 · 2 comments · May be fixed by #710
Assignees
Labels
class::improvement Cleanup that doesn't affect functionality loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. prio::high The priority of this task is high.
Milestone

Comments

@DavidKerkmann
Copy link
Member

DavidKerkmann commented Jun 12, 2023

Motivation / Current Behaviour

The infection state drawing inside the infection needs to be updated by including parameters that define state transition probabilities. Currently, we use fixed default numbers that don't represent any realistic scenario, e.g.

case InfectionState::InfectedNoSymptoms:
            // roll out next infection step
            v = uniform_dist();
            if (v < 0.5) { // TODO: subject to change
                time_period = days(params.get<InfectedNoSymptomsToSymptoms>()[{
                    m_virus_variant, age, VaccinationState::Unvaccinated}]); // TODO: subject to change
                next_state  = InfectionState::InfectedSymptoms;
            }
            else {
                time_period = days(params.get<InfectedNoSymptomsToRecovered>()[{
                    m_virus_variant, age, VaccinationState::Unvaccinated}]); // TODO: subject to change
                next_state  = InfectionState::Recovered;
            }

Enhancement description

Our parameters that we have already describe the state transition times. We now need additional parameters that determine individual transition probabilities and add up to 1.

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project
@DavidKerkmann DavidKerkmann added loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. class::improvement Cleanup that doesn't affect functionality labels Jun 12, 2023
@mknaranja
Copy link
Member

@DavidKerkmann We also recently discussed that we should change the infection parameters to that used in the ODE models to have it
a) more consistent
b) more precise, as e.g., InfectedNoSymptomsToSymptoms does not provide information if the parameter means to be a duration/time or probability.

Did this not go into a new issue? Couldnt find anything...

@DavidKerkmann DavidKerkmann moved this from Product Backlog to Sprint Backlog in MEmilio: Agent-Based-Model Jul 17, 2023
@DavidKerkmann DavidKerkmann added the prio::high The priority of this task is high. label Jul 17, 2023
@xsaschako xsaschako self-assigned this Jul 25, 2023
@xsaschako xsaschako moved this from Sprint Backlog to Development in MEmilio: Agent-Based-Model Jul 31, 2023
@DavidKerkmann DavidKerkmann moved this from Development to Sprint Backlog in MEmilio: Agent-Based-Model Oct 9, 2023
@DavidKerkmann DavidKerkmann added this to the ABM v0.1 milestone Oct 17, 2023
@DavidKerkmann DavidKerkmann self-assigned this Oct 18, 2023
@DavidKerkmann DavidKerkmann moved this from Sprint Backlog to Development in MEmilio: Agent-Based-Model Oct 20, 2023
@xsaschako xsaschako moved this from Product Backlog to Development in MEmilio: Agent-Based-Model Development Nov 21, 2023
@xsaschako xsaschako removed their assignment Nov 30, 2023
@DavidKerkmann
Copy link
Member Author

One point here is to also include a description of all parameters related to state transitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class::improvement Cleanup that doesn't affect functionality loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. prio::high The priority of this task is high.
Projects
Status: Development 🧑‍💻👩‍💻
Development

Successfully merging a pull request may close this issue.

3 participants