Adaptive Causal Inference and Its Applications