effectus

effectus tells you which minority of causes provokes which majority of effects.


Keywords
pareto, cause-effect, power-law, entropy
License
MIT
Install
pip install effectus==1.0.0.dev4

Documentation

effectus: a cause-effect library

Pypi version Python versions Linux Built Status Windows Built Status Code coverage

What?

effectus tells you which causes provoke which effects:

>>> from effectus import Effects
>>> Effects([789, 621, 109, 65, 45, 30, 27, 15, 12, 9])
<pareto present [0.707]: 1/5 causes => 4/5 effects [total ∆: 1.9 % points]>

Why?

Few values of high intensity distort the result of the arithmetic mean for most values of low intensity and vice versa.

Guided by the arithmetic mean one regularly misunderstands it as something like the most likely value where it would be better called the most unlikely value.

How?

$ pip3 install effectus

Then, in your Python shell do:

from effectus import Effects
Effects([789, 621, 109, 65, 45, 30, 27, 15, 12, 9])
<pareto present [0.707]: 1/5 causes => 4/5 effects [total ∆: 1.9 % points]>

If you want 80% of results, you need only 20% of causes.

» Documentation