Characterizing rare events in persistent homology