Loading [MathJax]/jax/output/HTML-CSS/jax.js

The Hazard Function

Computational Neuroscience

What is the Hazard Function in the context of Survival Analysis? How can we apply it in Computational Neuroscience?

Author

Affiliation

Andrea Bonvini

 

Published

July 9, 2021

Citation

Bonvini, 2021

In Survival Analysis we are interested in understanding the risk of an event happening at a particular point in time, where time is a continuous variable.

For example, let’s consider the event firing of a neuron: we define the time of firing as X, and time in general as t.

The hazard function, which is a function of time, is defined as:

h(t)=limΔt0P(t<X<t+Δt|X>t)Δt

We are conditioning on X>t because we want to condition our probability on the fact that the event hasn’t occurred yet.

Is there a way to rewrite h(t) in a different way?

h(t)=limΔt0P(t<X<t+Δt|X>t)Δth(t)=limΔt0P(t<X<t+Δt,X>t)P(X>t)Δt

It is easy to see that (t<X<t+Δt) is just a subset of X>t

    O---------------------- {     X > t    }
    |       o-------------- { t < X < t+Δt }
    |       |       
----.-------.----.---------
    t       X   t+Δt

h(t)=limΔt0P(t<X<t+Δt)P(X>t)Δt

P(X>t) is called the survival function and is just 1 minus the cumulative distribution function (CDF):

P(X>t)=1F(t)=1tt0p(t)dt

The remaining part is the definition of the derivative of the CDF, which is just the probability density function (PDF) at time t

limΔt0P(t<X<t+Δt)Δt=limΔt0P(X<t+Δt)P(X<t)Δt=limΔt0F(t+Δt)F(t)Δt=p(t)

So, finally we can rewrite the hazard function as:

h(t)=p(t)1tt0p(t)dt

Footnotes

    Citation

    For attribution, please cite this work as

    Bonvini (2021, July 10). Last Week's Potatoes: The Hazard Function. Retrieved from https://lastweekspotatoes.com/posts/2021-07-20-the-hazard-function/

    BibTeX citation

    @misc{bonvini2021the,
      author = {Bonvini, Andrea},
      title = {Last Week's Potatoes: The Hazard Function},
      url = {https://lastweekspotatoes.com/posts/2021-07-20-the-hazard-function/},
      year = {2021}
    }