This document discusses counterfactual modeling for determining causality in epidemiology. It explains that ideally, a causal contrast compares disease frequency between an exposed group and an unexposed group that are from the same target population during the same time period, ensuring identical initial conditions. However, in reality the unexposed counterfactual state is not observed, so a substitute population is used that may differ in initial conditions, allowing for confounding. Confounding arises when the substitute group imperfectly represents what the target population would have been like without exposure. Randomized controlled trials can help simulate the counterfactual comparison by randomizing subjects to treatment or control, making the groups comparable at baseline and reducing confounding.