Skip to content

Commit 322c82d

Browse files
committed
spacing adjustments
1 parent 1b9f0fd commit 322c82d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

census_data_aggregator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ def approximate_mean(range_list, simulations=50, pareto=False):
472472
range_list.sort(key=lambda x: x['min'])
473473

474474
if pareto: # need shape parameter if using Pareto distribution
475-
476475
nb1 = range_list[-2]['n'] # number in second to last bin
477476
nb = range_list[-1]['n'] # number in last bin
478477
lb1 = range_list[-2]['min'] # lower bound of second to last bin
@@ -498,6 +497,7 @@ def approximate_mean(range_list, simulations=50, pareto=False):
498497
nn = int(nn) # clean it up
499498
simulated_values.append(numpy.random.pareto(a=alpha_hat, size=(1, nn)).sum()) # draw random values within the bin, assume uniform
500499
simulated_n.append(nn)
500+
# use uniform otherwise
501501
else:
502502
last = range_list[-1]
503503
se = last['moe'] / 1.645 # convert moe to se

0 commit comments

Comments
 (0)