← Về thư mục
skills/statistical-analysis/scripts/assumption_checks.py
- check_normality · function · L20-L92 — def check_normality( data: Union[np.ndarray, pd.Series, List], name: str = "data", alpha: float = 0.05, plot: bool = True ) -> Dict
- check_normality_per_group · function · L95-L153 — def check_normality_per_group( data: pd.DataFrame, value_col: str, group_col: str, alpha: float = 0.05, plot: bool = True ) -> pd.DataFrame
- check_homogeneity_of_variance · function · L156-L233 — def check_homogeneity_of_variance( data: pd.DataFrame, value_col: str, group_col: str, alpha: float = 0.05, plot: bool = True ) -> Dict
- check_linearity · function · L236-L305 — def check_linearity( x: Union[np.ndarray, pd.Series], y: Union[np.ndarray, pd.Series], x_name: str = "X", y_name: str = "Y" ) -> Dict
- detect_outliers · function · L308-L406 — def detect_outliers( data: Union[np.ndarray, pd.Series, List], name: str = "data", method: str = "iqr", threshold: float = 1.5, plot: bool = True ) -> Dict
- check_regression_diagnostics · function · L409-L519 — def check_regression_diagnostics( model, alpha: float = 0.05, plot: bool = True ) -> Dict
- comprehensive_assumption_check · function · L522-L630 — def comprehensive_assumption_check( data: pd.DataFrame, value_col: str, group_col: Optional[str] = None, alpha: float = 0.05 ) -> Dict