Convoys is a simple library that fits a few statistical model useful for modeling time-lagged conversions. There is a lot more info if you head over to the documentation.
The original blog post about Convoys provides more motivation and background on survival analysis.
This package is an updated and maintained fork of the original, which hasn't seen a commit since 2021.
You can install from PyPI using any compatible tool (pip, uv, poetry, etc.):
pip install convoys2
You can then import the package using the name convoys
:
import convoys
Convoys was built by Erik Bernhardsson and has the MIT license. The original repo lives here.
In 2025, it was updated for breaking changes caused by Numpy 2.0 and other dependencies by Ted Conbeer. It has since added new features.