Calculates the Farina index based on a population vector and a vector for the representatives
Vector for the representatives
The order of the groups in he population vector and the vector for the representatives needs to be the same. If there are groups A, B, C in the population, both vectors need to cover their proportion in the same order.
The Farina index is referred to as cosine proportionality scores by Koppel and Diskin (2009).
A single score given the population and representatives
Koppel, M., and A. Diskin. (2009) Measuring disproportionality, volatility and malapportionment: axiomatization and solutions. Social Choice and Welfare 33, no. 2: 281-286.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.