This repository contains the code and data used in the paper "Behind the Matrix: Predicting Numerical Error in Generalized Eigenvalue Solvers" by Anna Diaz Farias.
matrix_generator.py— Python script to generate synthetic SPD matrix pairs and compute relative forward error. Producesmatrix_dataset.csv.matrix_dataset.csv— Full factorial dataset of 600 synthetic SPD matrix pairs with computed relative forward error across combinations of dimension n, scaling factor s, and condition number κ.CC_proj.R— R script for all statistical modeling, stepwise selection, and figure generation.
- Python 3.9+
- NumPy
- SciPy
- pandas
- R 4.2+
- tidyverse
- ggplot2
- scales
- emmeans
- Run
matrix_generator.pyto generate the dataset - Run
CC_proj.Rto reproduce all models and figures
For questions, contact Anna Diaz at anna.diaz0702@gmail.com