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

Details on how significance is calculated? #87

Open
LiFaytheGoblin opened this issue Jul 17, 2020 · 0 comments
Open

Details on how significance is calculated? #87

LiFaytheGoblin opened this issue Jul 17, 2020 · 0 comments

Comments

@LiFaytheGoblin
Copy link

LiFaytheGoblin commented Jul 17, 2020

Hi, sorry to be bothering you again!

I am currently looking at src/aequitas/bias.py to find out how the significance is calculated. Here is what I think I understood:

  1. Check if sample group is normally distributed
  2. a. If sample group is normally distributed, calculate whether sample group and ref. group have equal variances using levene
    b. If sample group is not normally distributed, calculate whether sample group and ref. group have equal variances using bartlett
  3. a. if both groups have equal variances, perform independent 2 sample t-test
    b. if both groups have different variances, perform Welch's t-test

I have two questions:
1. Is this correct?
I didn't understand what you mean with "sample" group at first. Now I understand that you mean the lists of binary encoded values that say for each entry of each group whether the entry belongs to whichever measure is relevant, fpr or fnr. It canalso be a list of scores, right?

2. Do we not check whether the ref. group is normally distributed? If not, why not? If we do, where?
I found it! It is in an if condition

if attr_value == ref_group:

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