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

Realistic household age-distributions #29

Open
ptheywood opened this issue Dec 4, 2024 · 0 comments
Open

Realistic household age-distributions #29

ptheywood opened this issue Dec 4, 2024 · 0 comments

Comments

@ptheywood
Copy link
Member

The initial random implementation does not aim to produce households of realistic age distributions, each household is generated with members of random age's (based on age demographic paramaters), leading to unreaslistic households (i.e. 6 0-9 year olds).

In the reference model, rejection sampling is used when generating a new individual and assigning them to a household, only accpeting the new household if it does not degrade the error (sum of square difference) beyond a threshold.
The refernce household demographics are read from a file (from a cli argument). The default reference file is 10000 households, with the number of individuals in each age band (a_0_9,a_10_19,...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant