Before You Start
- Required knowledge
- Pandas, train/test splits, logistic regression, and classification metrics.
- Libraries used
- NumPy, pandas, scikit-learn
- Dataset and source
- Optional local data/titanic/train.csv, with a synthetic fallback; imbalance experiments also generate synthetic data.
- Expected output
- Baseline and leakage checks, subgroup error analysis, shift experiments, and imbalanced-classification metrics.