generate_household_size_count_from_fixed_pop_size#

generate_household_size_count_from_fixed_pop_size(N, hh_size_distr)[source]#

Given a number of people and a household size distribution, generate the number of homes of each size needed to place everyone in a household.

Parameters:
  • N (int) – The number of people in the population.

  • hh_size_distr (dict) – The distribution of household sizes.

Returns:

An array with the count of households of size s at index s-1.