Causal Discovery and Prediction: Methods and Algorithms