Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TheilD within group inequality #15

Open
RicoFio opened this issue Jun 1, 2022 · 0 comments
Open

TheilD within group inequality #15

RicoFio opened this issue Jun 1, 2022 · 0 comments

Comments

@RicoFio
Copy link

RicoFio commented Jun 1, 2022

Hi there!

I am currently trying to use the TheilD index for my research on transport access equality. As far as I understood, the definition of the decompose Theil index is this one. Then, what also makes sense to me, both components are defined positively and, accordingly the Theil index is bound in [0,inf].

Hence this result seems weird to me:

from inequality.theil import TheilD
TheilD(np.array([0,0,0,10,10,10]),[0,0,0,1,1,1]).wg[0]
>>> -0.6931471805599453

This arises because the within-group inequality is calculated by doing self.wg = T - bg in theil.py L 129.
Probably, I misunderstood something -> clarification on how to interpret this within-group component would be highly appreciated.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant