Reducing noise in tectonomagnetic experiments by linear regression