Why Small Data-Handling Errors Matter
Empirical summaries are built from counts, but a count is only meaningful when its rule is clear. A threshold written as “at most 2,000” includes observations equal to 2,000; “greater than 2,000” does not. Likewise, a recorded follow-up time is not necessarily an observed event time. Confusing these distinctions can change a reported proportion, event count, or risk set.
This tutorial gives a practical audit method for empirical loss and survival summaries. It focuses on tied values, strict versus inclusive thresholds, event indicators, risk-set membership, and incomplete observations. The aim is to identify what the records actually say before calculating a summary.
Audit Thresholds Before Counting
Ties make threshold language especially important. The expressions “below \(x\),” “at or below \(x\),” “above \(x\),” and “at least \(x\)” correspond to different sets. For exact observations, the boundary value belongs in the count for “at or below” and “at least,” but not in the count for “below” or “above.”
A useful check is to partition the sample into three groups: values less than \(x\), values equal to \(x\), and values greater than \(x\). If their counts are \(L\), \(E\), and \(G\), respectively, then \(L+E+G=n\). The relevant summaries follow directly: below \(x\) is \(L/n\), at or below \(x\) is \((L+E)/n\), above \(x\) is \(G/n\), and at least \(x\) is \((E+G)/n\).
Worked Example: Tied Losses at a Threshold
A hypothetical insurer examines eight exact claim losses, in dollars: 1,200; 1,600; 1,600; 2,400; 3,100; 3,100; 3,100; and 5,000. Find the empirical proportions below 3,100, at most 3,100, strictly above 3,100, and at least 3,100.
Method. First count observations on each side of the threshold and at the threshold itself. This avoids silently switching between strict and inclusive inequalities.
There are four losses below 3,100: 1,200, two losses of 1,600, and 2,400. There are three losses equal to 3,100, and one loss above it, 5,000. Thus \(L=4\), \(E=3\), \(G=1\), and \(n=8\). Check: \(4+3+1=8\).
Check. The at-most and above proportions sum to 1, as do the below and at-least proportions: \(0.8750+0.1250=1\) and \(0.5000+0.5000=1\). A common mistake is to report \(4/8\) for the proportion at most 3,100 by counting only losses below the threshold. The correction is to include all three losses tied at 3,100, giving \(7/8\).
Do Not Confuse an Observed Time with an Event
In a right-censored survival record, the observed time alone does not say whether the event occurred. Let \(T\) denote the event time and \(C\) the censoring time. The recorded time is \(Z=\min(T,C)\), and the event indicator is \(\delta=1\) if \(T\le C\) is observed, and \(\delta=0\) if observation ends before the event is observed. Thus \((Z,\delta)=(5,1)\) records an event at time 5, whereas \((Z,\delta)=(5,0)\) records follow-up through time 5 without an observed event.
The indicator answers a different question from the time: \(Z\) says when observation ended, and \(\delta\) says whether an event was observed then. A count of events must use \(\delta\), not simply count every row or every distinct recorded time. Constructing the record counts does not require an assumption that censoring is independent of event time. Interpreting incomplete records to estimate a population distribution does require appropriate assumptions; the raw counts alone do not solve that inferential problem.
Worked Example: Auditing Events and a Tied Risk Set
A hypothetical study records \((Z,\delta)\) as \((1,1),(3,0),(4,1),(4,0),(8,1)\). Find the total number of observed events, the risk-set size immediately before time 4, and the risk-set size immediately after time 4.
Method. Count event indicators equal to 1 for the event total. For the risk set just before 4, count records with \(Z_i\ge4\), retaining both records tied at 4.
The indicators are \(1,0,1,0,1\), so there are \(1+0+1+0+1=3\) observed events. For the risk set immediately before time 4, the eligible recorded times are 4, 4, and 8. Therefore \(Y(4)=3\).
At time 4, one event and one censoring are recorded. Both leave the risk set after time 4, leaving only the record with \(Z=8\). The risk-set size immediately afterward is \(3-1-1=1\).
Check. The event total is 3, the risk-set size just before 4 is 3, and the size after 4 is 1. A common mistake is to count only event records at time 4 when finding the risk set, or to include records that ended observation earlier. Directly listing the eligible times, \(4,4,8\), avoids both errors.
What a Censored Record Does—and Does Not—Establish
For a right-censored record \((Z,\delta)=(c,0)\), observation ended at \(c\) without an observed event. It establishes that the event was not observed by the end of that follow-up; it does not establish that the event occurred at \(c\). In particular, replacing \(T\) by \(c\) treats a lower bound on the event time as if it were the exact event time.
This distinction also matters for empirical loss summaries. A loss reported as right-censored at \(c\) tells us that the loss exceeded the observed threshold under the stated censoring convention. It does not give the exact loss amount. Adding \(c\) as though it were the loss can distort a sample mean or empirical distribution. Excluding all such records and averaging only exact losses can also be misleading: that is a complete-case summary, not automatically a summary of the full group.
Worked Example: Why Censored Times Are Not Exact Event Times
A hypothetical follow-up study has five records. Three events are observed exactly at times 2, 4, and 7. Two other records are right-censored at times 5 and 9. Calculate the mean of the recorded times if the censoring indicators are ignored, the mean among exact events only, and explain what can be concluded about the mean event time of all five subjects.
Method. Separate the exact events from the censored records before calculating. The recorded times are 2, 4, 7, 5, and 9, but 5 and 9 are censoring times, not exact event times.
Ignoring the indicators gives the recorded-time average \((2+4+7+5+9)/5=27/5=5.40\). The exact-event-only average is \((2+4+7)/3=13/3=4.333\ldots\), or 4.33 to two decimal places. Neither calculation is automatically the mean event time for all five subjects.
For the two censored subjects, the event times exceed 5 and 9, respectively. If their event times were 6 and 10, the full mean would be \((2+4+7+6+10)/5=29/5=5.80\). If instead they were 10 and 20, the full mean would be \((2+4+7+10+20)/5=43/5=8.60\). Both sets of event times are compatible with the records, so those records do not identify one exact full-sample mean.
Check. The mean of the recorded times is 5.40, while the two possible full means are 5.80 and 8.60. A common mistake is to call 5.40 the exact mean event time: it substitutes censoring times for unknown event times. Another is to call 4.33 the full mean: it averages only the three observed events and ignores the two incomplete records.
A Short Derivation for Risk-Set Updates
A risk-set audit can be justified directly from its definition. Suppose \(Y(t)\) counts all records whose observed time has not ended before \(t\), so \(Z_i\ge t\). At time \(t\), let \(d_t\) be the number of event records and \(c_t\) the number of censored records with \(Z_i=t\). Every record in these two groups belongs to the risk set immediately before \(t\), and each leaves it immediately afterward. No record with \(Z_i>t\) leaves at \(t\). Therefore the update follows by subtracting exactly the records that end observation at \(t\):
where \(Y(t+)\) denotes the risk-set size immediately after time \(t\). This is a bookkeeping identity, not a population estimate. It remains valid with tied events and censorings because the tied records are all counted before the update and all removed in the same update. For the preceding example, \(Y(4+)=3-1-1=1\).
Mark whether the requested threshold is strict or inclusive, and whether the time is just before or just after a tied time.
For survival data, read \(Z\) and \(\delta\) together; for loss data, distinguish exact amounts from incomplete amounts.
For exact threshold summaries, separate below, equal, and above. For a risk set just before \(t\), count \(Z_i\ge t\).
Check that threshold groups sum to the sample size, event totals use only \(\delta=1\), and the post-time risk set subtracts events and censorings tied at that time.
Common Errors to Catch Before Reporting
- Changing the inequality while counting. “At most” includes equality; “below” excludes it. Write the set being counted before calculating.
- Counting all observed times as events. A record with \(\delta=0\) is censored, even though it has a numerical time.
- Dropping tied records from the pre-time risk set. Under the stated convention, every record with \(Z_i=t\) is included immediately before \(t\), whether its indicator is 0 or 1.
- Keeping earlier records in the risk set. If \(Z_i<t\), observation ended before \(t\), so that record is not at risk immediately before \(t\).
- Treating a censoring time as an exact loss or event time. The record gives incomplete information, not an exact value. Any summary must respect that distinction.
- Reporting a complete-case average as if it described everyone. State which records were included and avoid claiming that an exact-only subset represents the full group without justification.
Check Your Understanding
For each problem, identify the relevant records before calculating. Answers are given at the end of each question for checking.
- A complete hypothetical loss sample is 900, 1,200, 1,200, 1,800, 2,400, 2,400, and 4,000 dollars. Find the proportions at most 2,400, strictly above 2,400, and at least 2,400. (Answer: \(6/7=0.8571\), \(1/7=0.1429\), and \(3/7=0.4286\), respectively.)
- Records are \((Z,\delta)=(2,1),(5,0),(5,1),(7,0),(9,1),(11,0)\). How many events are observed in total, and how many records are at risk immediately before time 5? (Answer: 3 observed events; risk-set size 5.)
- Two exact event times are 3 and 6; two other subjects are right-censored at 4 and 10. What is the average of the four recorded times, and can it be reported as the exact mean event time for all four subjects? (Answer: recorded-time average \(23/4=5.75\); no, the two censored event times are unknown and exceed 4 and 10, respectively.)
- For exact losses 1,000, 1,500, 1,500, 2,300, and 3,000 dollars, find the empirical proportion strictly greater than 1,500 and the proportion at least 1,500. (Answer: \(2/5=0.4000\) and \(4/5=0.8000\), respectively.)
- Records are \((1,1),(2,0),(4,1),(6,0),(6,1),(8,1),(10,0),(12,1)\), written as \((Z,\delta)\). Find the total number of observed events, the risk-set size immediately before time 6, and the size immediately after time 6. (Answer: 5 observed events; risk-set size 5 immediately before time 6; size 3 immediately after time 6.)