-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Hello I'm running PyFair 0.1a8
I think it could be an issue with vulnerability calculation, when it is derived from PoA and TCAP.
Here are two models and results:
Model 1 - CS is lower than TC
model3 = pyfair.FairModel(name="Example Model 2", n_simulations=30000)
model3.input_data('Contact', low=200, mode=1000, high=3000)
model3.input_data('Action', low=0.85, mode=0.95, high=1)
model3.input_data('Threat Capability', low=0.6, mode=0.85, high=0.98)
model3.input_data('Control Strength', low=0.59, mode=0.84, high=0.97)
model3.input_data('Secondary Loss Event Frequency', low=0.5, mode=0.85, high=1)
model3.input_data('Secondary Loss Event Magnitude', low=5000, mode=10000, high=20000)
model3.input_data('Primary Loss', low=15000, mode=25000, high=50000)
Vulnerability 1 Result
Vulnerability value is 0.45
Model 2 - CS is higher than TC
model3 = pyfair.FairModel(name="Example Model 2", n_simulations=30000)
model3.input_data('Contact', low=200, mode=1000, high=3000)
model3.input_data('Action', low=0.85, mode=0.95, high=1)
model3.input_data('Threat Capability', low=0.6, mode=0.85, high=0.98)
model3.input_data('Control Strength', low=0.63, mode=0.87, high=0.99)
model3.input_data('Secondary Loss Event Frequency', low=0.5, mode=0.85, high=1)
model3.input_data('Secondary Loss Event Magnitude', low=5000, mode=10000, high=20000)
model3.input_data('Primary Loss', low=15000, mode=25000, high=50000)
model3.calculate_all()
Vulnerability 2 Result
Vulnerability value is 0.58.
It seem like a mistake to me. Because as we increase Control Strength - Vulnerability value should decrease.
P.S. Great application. And documentation is better than official one (to me).