The likelihood of the detection history in all sites is then