datadesk / census-data-aggregator

Combine U.S. census data responsibly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

negative values from numpy.random.normal

sastoudt opened this issue · comments

For smaller values or with large margins of error, the numpy.random.normal in approximate_mean may return a negative number which won't make sense in context. We should probably just use max(0, simulated_value) instead.

addressed in #20