AninditaNandK/outlier-sigma

GitHub: AninditaNandK/outlier-sigma

Stars: 0 | Forks: 0

# Outlier Analysis with Variable Sigma Outlier detection using multiple methods and optional plotting. ## Setup (Windows) python -m venv .venv .venv\Scripts\activate pip install -r requirements.txt ## Config Defaults are loaded from `config.json` if present. Key options: - `method`: `zscore` | `mad` | `iqr` - `sigma`: float threshold - `column`: column name (optional) - `plots`: true/false - `output_csv` - `output_plot` ## Sample data A sample CSV is included: - `data/orders.csv` ## Run python main.py --csv data\orders.csv --column Sales --method zscore --sigma 3 Disable plots: python main.py --csv data\orders.csv --no-plots If `--csv` is omitted, the script generates a small synthetic dataset. ## Output - Prints bounds and detected outliers. - Saves `outliers.csv` when a CSV file is provided. - Saves `outliers.png` when plots are enabled. ## Tests pytest