In [ ]:
pops = [14956253, 2163804, 4775070, 14013719, 1345110]
CA_pop = 37253956

In [ ]:
sum(pops) == CA_pop

Shannon index


In [ ]:
# FILL IN

Compare with the entropy_5 column for California -- answer should be 0.7969941601550823

Gini-Simpson

https://en.wikipedia.org/wiki/Diversity_index#Gini.E2.80.93Simpson_index

$1 - \lambda = 1 - \sum_{i=1}^R p_i^2 = 1 - 1/{}^2D$


In [ ]:
# FILL IN

Answer is 0.6762156265155197


In [ ]: