Hexa Scholar

Survival functions and hazard rates

A gold-bladed cooling fan in a navy housing beside a brass stopwatch on a wooden bench.
A stopwatch beside a cooling fan stands for the wait until the fan fails.

The question

A cooling fan’s failure rate changes over its first six hours. What fraction of fans will still be running at that point?

  1. 1 SeeDraw a changing failure rate.
  2. 2 TryCompare fans on two schedules.
  3. 3 ProveDerive the survival curve.
  4. 4 ApplyFind probabilities, rates, and a median.
Before you start · 3 quick checks on conditioning, area, and logarithms, about 3 min

Two ideas before you start

2 ideas

Survival asks who is still waiting

A uniform waiting time has a survival curve that falls linearly to zero.

Move the inspection time. The highlighted height is the chance the event is still ahead.

Exact definition

Let \(T\) be time from the start to an event, such as the first failure of a fan. Its survival function is \(S(t)=P(T\gt t)\). Its cumulative distribution function is \(F(t)=P(T\le t)=1-S(t)\).

The card uses a uniform waiting time. Probability on any subinterval is its length divided by the full interval length. The solid line shows the full survival curve through the end of the interval, after which it stays at zero.

A rate accumulates over time

The shaded area under a constant inflow rate is a rectangle.

A tank fills at a constant rate. The shaded area is how much water has flowed in by the chosen time.

Exact definition

For an inflow rate \(r(s)\) in liters per hour, the amount added in \(t\) hours is \(\int_0^t r(s)\,ds\) liters. For constant \(r\), this is the rectangle \(rt\). With a linearly changing rate on an interval, use the width times the average of the two endpoint rates.

The fundamental theorem of calculus connects the accumulating area and the instantaneous rate. If \(r\) is continuous, differentiating \(\int_0^t r(s)\,ds\) gives \(r(t)\).

Fine print: conditioning and time units

For events \(A\) and \(B\) with \(P(B)\gt0\), \(P(A\mid B)=P(A\cap B)/P(B)\). The conditioning event on this page is often that the fan is still running at an inspection. If the fan is still running at a later time, it was still running at the inspection. The intersection is the later survival event. This is the same restriction to a known event used in conditional expectation.

We model nonnegative continuous event times with densities. For a time \(t\) with \(S(t)\gt0\), the hazard \(h(t)\) is the limiting conditional event probability per unit of time, given no event by \(t\). A hazard measured per hour can exceed one per hour. The probability over an actual time interval is between zero and one.

1 See

Draw a fan’s hazard curve

Each fan starts running at time zero and leaves the group at its first failure. All fans follow the hazard you draw. Think of the rate at each time as applying to the fans that have made it that far.

The editor shows the adjustable part of the hazard in failures per surviving fan per hour. Beyond the last point, the hazard stays at the last height.
2 Try

Compare two operating schedules

Answer both questions to open the comparison.

3 Prove

Turn a hazard into survival

Theorem

Assumptions. Let \(T\) be a nonnegative, absolutely continuous event time with density \(f\). On the interval \([0,b]\), with \(b\gt0\), take \(f\) continuous and strictly positive, and assume \(S(b)\gt0\). Then \(S(0)=1\) and \(0\lt S(t)\lt1\) for \(0\lt t\le b\).

Conclusion. For \(0\le t\lt b\), the hazard is \(h(t)=f(t)/S(t)\). If \(H(t)=\int_0^t h(s)\,ds\), then

\[S(t)=e^{-H(t)}.\]

For \(\Delta\gt0\), let \(p_t(\Delta)\) be the conditional probability \(P(t\lt T\le t+\Delta\mid T\gt t)\). The hazard is the right-hand limit of \(p_t(\Delta)/\Delta\) as \(\Delta\) decreases to zero. The survival identity extends to \(b\) by continuity from the left. The choices below concern \(0\lt t\lt b\).

Choose the true equation for the stated assumptions. The explanation under each accepted line gives the step used to reach it.

Piecewise rates and proportional hazards

A nonnegative piecewise continuous hazard can include flat stretches at zero or jumps at switch times. Integrate on the continuous pieces and add their areas. Survival stays continuous at a jump when there is no atom there. If the cumulative hazard grows without bound, survival tends to zero, as a finite event time requires.

Suppose two groups share the same time origin and their hazards satisfy \(h_B(t)=c\,h_A(t)\) for a fixed \(c\gt0\) throughout the interval. Then \(H_B(t)=cH_A(t)\) and \(S_B(t)=S_A(t)^c\). The constant multiplies the rate and its area. The survival probability changes by taking a power.

4 Apply

From rates to event probabilities

Enter a decimal for each problem. Use hours where requested and probabilities on the zero-to-one scale. Open a hint if you need the first step. Each problem uses the stated model for a single event time.

Key point Start by marking the time window and deciding who was still in the group when it opened. Add hazard over that window. Exponentiating its negative gives conditional survival, and the complement gives the chance of failure during the window.
Level Intermediate Prerequisites conditional probability, exponential functions, definite integrals Time ~30 min

Further reading