calc_rank_of_earliest_detectable_mrca_between

calc_rank_of_earliest_detectable_mrca_between(first: Union[HereditaryStratigraphicColumn, HereditaryStratigraphicSpecimen], second: Union[HereditaryStratigraphicColumn, HereditaryStratigraphicSpecimen], confidence_level: float = 0.95) int | None

After what generation is common ancstry robustly detectable?

Calculates the earliest possible rank a MRCA between first and second could be reliably detected at.

Even if a true MRCA of first and second exists, if it occured earlier than the rank calculated here it could not be reliably detected with sufficient confidence after accounting for the possibility of spurious differentia collisions. (Although subsequent spurious differentia collisions after the true MRCA of first and second could lead to MRCA detection at such a rank.)

Returns None if insufficient common ranks exist between first and second to ever conclude at the given confidence level the existance of any common ancestry between first and second (even if all strata at common ranks had equivalent differentiae).