Understanding Causal Inference: Unraveling the Cause and Effect