Init Project Flexly Estimator

This commit is contained in:
Alexey Dudin
2026-11-03 09:37:44 +03:00
commit 447464c16c
160 changed files with 12779 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import pytest
from estimator.pricing.pert import expected, sigma, total_sigma
def test_expected_symmetric():
assert expected(8, 12, 16) == pytest.approx(12)
def test_expected_skewed_up():
assert expected(8, 12, 20) == pytest.approx(76 / 6)
def test_sigma():
assert sigma(8, 20) == pytest.approx(2)
def test_total_sigma_is_root_sum_of_squares():
assert total_sigma([3, 4]) == pytest.approx(5)