Skip to content

Commit

Permalink
Fix a small typo in the survival analysis notebook (pymc-devs#528)
Browse files Browse the repository at this point in the history
* fix typo in survival function

* run pre-commit

---------

Co-authored-by: Oriol (ZBook) <oriol.abril.pla@gmail.com>
  • Loading branch information
manuelhaussmann and OriolAbril authored Apr 5, 2023
1 parent 030e7ac commit cfb9b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/survival_analysis/survival_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"\n",
"Solving this differential equation for the survival function shows that\n",
"\n",
"$$S(t) = \\exp\\left(-\\int_0^s \\lambda(s)\\ ds\\right).$$\n",
"$$S(t) = \\exp\\left(-\\int_0^t \\lambda(s)\\ ds\\right).$$\n",
"\n",
"This representation of the survival function shows that the cumulative hazard function\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/survival_analysis/survival_analysis.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $$\begin{align*}

Solving this differential equation for the survival function shows that

$$S(t) = \exp\left(-\int_0^s \lambda(s)\ ds\right).$$
$$S(t) = \exp\left(-\int_0^t \lambda(s)\ ds\right).$$

This representation of the survival function shows that the cumulative hazard function

Expand Down

0 comments on commit cfb9b45

Please sign in to comment.