census-data-aggregator icon indicating copy to clipboard operation
census-data-aggregator copied to clipboard

negative values from numpy.random.normal

Open sastoudt opened this issue 6 years ago • 1 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.

sastoudt avatar Aug 27 '19 17:08 sastoudt

addressed in https://github.com/datadesk/census-data-aggregator/pull/20

sastoudt avatar Aug 27 '19 17:08 sastoudt