Files
Pratyush Shukla 13283fbfce CI listing quick fix (#6002)
* BIGGGG LINTING

* fixing lints

* fixing lints

* black

* very ruff

* no export

* fix hedge_view again

* lints

* platform lints

* lints

* black

* black it @hjoaquim

* fix some more linting

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2024-01-26 17:08:42 +00:00

71 lines
1.1 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Pydantic models for Quantitative Analysis."""
from pydantic import BaseModel
class TestModel(BaseModel):
"""Base model for QA tests."""
statistic: float
p_value: float
class NormalityModel(BaseModel):
"""Normality model."""
kurtosis: TestModel
skewness: TestModel
jarque_bera: TestModel
shapiro_wilk: TestModel
kolmogorov_smirnov: TestModel
class ADFTestModel(TestModel):
"""Augmented Dickey-Fuller test model."""
nlags: int
nobs: int
icbest: float
class KPSSTestModel(TestModel):
"""KwiatkowskiPhillipsSchmidtShin test model."""
nlags: int
class UnitRootModel(BaseModel):
"""Unit root model."""
adf: ADFTestModel
kpss: KPSSTestModel
class OmegaModel(BaseModel):
"""Omega model."""
threshold: float
omega: float
class SummaryModel(BaseModel):
"""Summary model."""
count: int
mean: float
std: float
var: float
min: float
max: float
p_25: float
p_50: float
p_75: float
class CAPMModel(BaseModel):
"""CAPM model."""
market_risk: float
systematic_risk: float
idiosyncratic_risk: float