Statistical Causal Inference and its Applications to Genetics