Apportionment

Apportionment
State Population % Representation Hamilton numbers Integer Part Fractional Part Assign Additional manually Seats after apportionment
1 15475 0.02907807 2.91 2 0.91 2nd priority 3
2 35644 0.066976332 6.70 6 0.70 5th priority 7
3 98756 0.185566003 18.56 18 0.56 18
4 88346 0.166005246 16.60 16 0.60 16
5 369 0.000693364 0.07 0 0.07 1st priority 1
6 85663 0.160963795 16.10 16 0.10 16
7 43427 0.081600863 8.16 8 0.16 8
8 84311 0.158423339 15.84 15 0.84 3rd priority 16
9 54730 0.102839598 10.28 10 0.28 10
10 25467 0.04785339 4.79 4 0.79 4th priority 5
Total 532188 1 100.01 95 5.01 100
We first calculate the perventage representation of each state in the total population of the country.
Then we find the Hamilton’s number by converting them to percentages, till 2 decimal places.
Then we separate the integer and fractional parts.
The integer seats are adding upto 95, hence 5 seats have to be alloted
The fractional parts determine the priority that the states will get for remaining seats. The higher fractions will get priority.
However, the state 5 has 0 integer part, suggesting that no representative shall be selected from there, which is not allowed, hence we assign first priority to state 5, and then based on fractional part.
The absolute unfairness betwwe state 1 and state 2 is the difference of their average constituency 394
The relative unfairness 0.077463559