pub fn linear_regression(x: &[f64], y: &[f64]) -> (f64, f64)
Simple linear regression: y = slope * x + intercept.