- 
                Notifications
    
You must be signed in to change notification settings  - Fork 293
 
Description
Notebook title: Bayesian Survival Analysis
Notebook url: https://www.pymc.io/projects/examples/en/latest/survival_analysis/survival_analysis.html
Issue description
The baseline hazard is computed over base_hazard and is of size interval_bounds  that stores 
The cumulative baseline hazard, which is (interval_length * hazard).cumsum(axis=-1), thus still a variable of size interval_bounds  variables. The two objects do not have the same size, and the choice in the notebook was to use interval_bounds[:-1]. So this means that at time 
Expected output
Thus I think, interval_bounds[:-1] in plots should be replaced by interval_bounds[1:]
Proposed solution
Let me know if you agree. Then, I can make a PR and check that this issue "only" occurs in plots.