Sped up log odds calculation