Statistical tools for causal inference and forensic science