(A) An example of a demographic model with a genealogy. A 2-population isolation with migration (IM) model includes six parameters: population sizes, and θa, migration rates, m1 and m2, and splitting time Ts. The graph in black lines depicts a genealogy (G) including coalescent events at time t1 and t2, respectively, (vertical paths of genes) and migration events (horizontal paths). (B) The coalescent tree (λ1) of genealogy G includes the same coalescent events on G. (C) A coalescent tree λ2 whose probability is same as that of λ1. (D) Genealogy and coalescent tree with population labels.