-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added interface for statistic modules
- Loading branch information
1 parent
742f403
commit 53a3ba0
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
medmodels/statistic_evaluations/statistical_analysis/descriptive_statistics.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from typing import Dict | ||
|
||
import polars as pl | ||
|
||
from medmodels.medrecord import MedRecord | ||
from medmodels.medrecord.querying import NodeOperation | ||
from medmodels.medrecord.schema import AttributeType | ||
|
||
def determine_attribute_type(attribute_values: pl.Series) -> AttributeType: ... | ||
def get_continuos_attribute_statistics( | ||
medrecord: MedRecord, attribute_query: NodeOperation | ||
) -> Dict[str, float]: ... | ||
def get_temporal_attribute_statistics( | ||
medrecord: MedRecord, attribute_query: NodeOperation | ||
) -> Dict[str, str]: ... | ||
def get_categorical_attribute_statistics( | ||
medrecord: MedRecord, attribute_query: NodeOperation | ||
) -> Dict[str, str]: ... |
19 changes: 19 additions & 0 deletions
19
medmodels/statistic_evaluations/statistical_analysis/inferential_statistics.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Dict, List, Union | ||
|
||
from numpy.typing import ArrayLike | ||
|
||
class TestHypothesis: | ||
alpha: float | ||
samples: List[ArrayLike] | ||
sample_number: int | ||
normal_distribution: bool | ||
test: str | ||
hypothesis: str | ||
p_value: float | ||
|
||
def test_for_normal_distribution(self) -> bool: ... | ||
def decide_hypothesis_test(self) -> Dict[str, Union[str, bool, float]]: ... | ||
def two_tailed_t_test(self) -> float: ... | ||
def mann_whitney_u_test(self) -> float: ... | ||
def ANOVA(self) -> float: ... | ||
def chi_sqare_independece_test(self) -> float: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters