Disk failure prediction: signals, scores and alert costs
Published 2026-10-10 · updated 2026-11-22
Lu et al.'s fleet study tested SMART, performance and location signals. Interpret its scores alongside explicit alert denominators, prevalence and validation limits.
On this page15 sections
- Population
- 380,000 hard disks, 10,000 server racks, 64 data center sites of one operator
- Window
- About 70 days; SMART collected once a day; 10-day prediction horizon
- Failure definition
- The operator decides a disk must be replaced or repaired after a failed read or write and a bad restart
- Features
- 14 SMART attributes (more than 97% of disks report them), performance metrics, and rack location
- Cross-checks
- Backblaze (October 2016; warning-sample counts not stated in the narrative) and Google (FAST 2007; more than 100,000 ATA disks)
- Validation
- Main results: random five-fold cross-validation, not a demonstrated future-time holdout (Section 4).
What the 0.95 score does not establish
Section 4 describes per-disk time-series samples, random five-fold cross-validation and mean scores across folds, with an 80/20 tuning split inside training. The separate cross-site experiment trains on 62 sites and tests two unseen sites of the same operator (Section 5). Original methods, pages 157-158 and 161.
Our interpretation: random folds do not demonstrate a future-time deployment test, and unseen sites do not demonstrate transfer to a new operator. We have not established that the same drive occurs in multiple folds; that requires the actual sample IDs. A reproducibility check should verify drive identities, feature-selection boundaries and when outcome labels become available. Those checks are distinct from the reported tuning split. This source review is not a replication of the model or proof of data leakage. Validation guidance / leakage controls.
The 13-row source extract preserves reported values and one-sided bounds. It is not a drive-level training dataset.
Numbers
Disk failure prediction as printed in Lu et al., FAST 2020 (380,000 hard disks, 64 sites, about 70 days, 10-day horizon), rows 1 to 10, and in two cross-check sources about SMART warnings, rows 11 to 13. MCC is the Matthews correlation coefficient, from -1 to 1. Qualifiers such as 'up to' and 'roughly' are the sources' wording.
| Measure | Value | Unit | Population or scope | Source |
|---|---|---|---|---|
| Hard disks in the study | 380,000 | disks | 64 sites, 10,000 server racks, one operator housing more than two million disks | FAST 2020 |
| Observation window | about 70 | days | SMART collected once a day | FAST 2020 |
| Prediction horizon | 10 | days | Chosen so operators have time to act | FAST 2020 |
| Best model, MCC with SMART, performance, and location data | 0.95 | MCC score | CNN-LSTM, SPL feature group | FAST 2020 |
| Best model, F-measure | 0.95 | F-measure | Printed as 'up to' and 'on average' for a 10-day horizon | FAST 2020 |
| Next best method, MCC, same data | 0.77 | MCC score | Random forest, SPL feature group | FAST 2020 |
| Gain from adding location information | less than 10 | percent of MCC | CNN-LSTM; helps mainly with performance features present | FAST 2020 |
| MCC on an unseen site after training on 62 sites | above 0.90 | MCC score | CNN-LSTM, SPL group, 10-day horizon, site A | FAST 2020 |
| Drop for RF and GBDT on an unseen site | more than 15 | percent, in some cases | Same test | FAST 2020 |
| Training time of the CNN-LSTM | up to 4 | hours per training run | Same study | FAST 2020 |
| Failed drives with one or more of five SMART counts above zero | 76.7 | percent of failed drives | Backblaze 2016 failed-drive sample; count not stated in the narrative; 23.3% showed none | Backblaze 2016 |
| Operational drives with one or more of five SMART counts above zero | 4.2 | percent of operational drives | Backblaze 2016 operational-drive sample; narrative value; sample count not established | Backblaze 2016 |
| Failed drives with no count on four strong SMART signals | over 56 | percent of failed drives | More than 100,000 ATA disks, December 2005 to August 2006 | Google, FAST 2007 |
This table is a short extract of printed figures, not a copy of the papers or the underlying dataset. Rows 1 to 10 are from Lu et al. (FAST 2020). Rows 11 to 13 are SMART-warning proportions from two other sources, not model scores. The Backblaze narrative does not state the failed-sample count or a prospective warning horizon; its 67,814 figure describes then-operating inventory.
Backblaze's narrative gives 4.2% for any of five attributes above zero; its image gives 4.8% for SMART 188 alone. If populations and observation rules match, the union cannot be smaller than one member. The unresolved discrepancy is recorded in our SMART source audit. Neither percentage supplies the missing sample count.
Method
The figures are copied from the USENIX PDF of Lu, Luo, Patel, Yao, Tiwari, and Shi, FAST 2020 (pages 151 to 167), not refit. The data cover 380,000 hard disks across 64 data center sites and 10,000 server racks for roughly 70 days, from one large data center operator that houses more than two million disks; only disks with SMART, performance, and location logs are included. A disk is counted as failed when the operator decides it must be replaced or repaired because a read or write failed and the disk cannot work properly after a restart. The authors compare Bayes, random forest (RF), gradient-boosted trees (GBDT), LSTM, and a CNN-LSTM they propose, on six feature groups drawn from SMART (S), performance (P), and location (L) data. They score a disk as failing or not within a 10-day horizon with F-measure and the Matthews correlation coefficient (MCC), because healthy disks far outnumber failed ones. Two other sources check the SMART gap only: Backblaze's October 2016 post and Pinheiro, Weber, and Barroso, FAST 2007. Neither tests machine learning models or the 0.95 figure.
Limits
The 0.95 scores are the paper's own, from one operator, about 70 days of data, and a 10-day horizon, with the model trained and tested on the same operator's disks; this note does not establish a failed-drive count from the paper, and the headline scores are read from the paper's abstract, introduction, and evaluation prose, not from the charts. The abstract says 0.95 on average and the introduction says up to 0.95, and the scores differ by model and feature group. The printed exposure of 2.6 million device hours cannot be reconciled from the stated disk count and window alone. Complete follow-up for every disk is not established; this note does not infer a failure count or AFR from those figures. Fewer failures were predicted correctly in racks with few failures, because there were too few failed samples to learn from. Portability across sites held when training on 62 sites and testing on an unseen one (above 0.90 MCC for CNN-LSTM), but RF and GBDT dropped by more than 15% in some cases, and training on one site and testing on another dropped MCC significantly. The paper says SMART attributes are of limited use only for 'hard-to-predict' failures and does not claim every failed disk shows a change in performance. The cross-check sources do not use machine learning: Backblaze describes five attributes in 2016, and Google's population is consumer-grade ATA disks from 2005 and 2006.
What the paper found
The answer. For a 10-day horizon the best model in Lu et al., a CNN-LSTM using SMART, performance, and location data together (the SPL group), scored 0.95 MCC and 0.95 F-measure, against 0.77 MCC for the next best method, a random forest, with the same data. Models using SMART alone had a very high false-negative rate, meaning failing disks were predicted healthy, and adding performance and location data cut it significantly. The authors argue that SMART values often change only a few hours before a failure, so a prediction several days ahead needs signals that move earlier.
What each kind of data added. Performance metrics were the larger addition. Location helped less: adding it improved quality across models, but by less than 10% in MCC for the CNN-LSTM, and it mattered only when performance features were present. The authors explain that disks in the same rack share temperature, humidity, and vibration. They also show that SMART values of a failed disk can look like those of healthy disks on the same server until the failure, and they show the same flat pattern in a public Baidu data set sampled hourly, where a failed disk's 12 plotted SMART series did not vary noticeably in the 477 hours before the failure.
Model choice and trade-offs. Without performance and location data, simpler tree models (RF and GBDT) did roughly as well as the neural networks and sometimes beat the LSTM, and the CNN-LSTM took up to four hours to train once. The authors also describe a trade-off between false positives (replacing healthy disks) and false negatives (missing a failure), which the operator should set by cost: GBDT gave a lower false-positive rate and a higher false-negative rate for the SPL group. Mispredictions clustered in racks with few failures, and early in the test period the models predicted too many disks as healthy for lack of training data.
What other fleets say about the SMART gap. Backblaze's 2016 narrative reports 76.7% of failed drives and 4.2% of operational drives with at least one of five SMART counts above zero; 23.3% of failed drives showed none. The operating-fleet inventory of 67,814 is not the failed-sample denominator. These proportions do not establish a prospective prediction horizon or an alert confusion matrix. Google's FAST 2007 population found over 56% of failed drives with no count on any of four strong SMART signals. The populations, event definitions and observation rules differ from Lu et al.; these cross-checks are not evaluations of that model.
Background on drive types is on the drive technology card. Warning signs before a failure are also covered in the SMART failure signals analysis.
Warning time: repeated trials are not new drives
Murray, Hughes and Kreutz-Delgado studied 369 drives of one model: 178 from a controlled reliability test and 191 failed returns. Their SVM evaluation randomly reassigned drives to training and test sets across ten trials. Figure 7 sums warning-time counts across those trials at 50.6% detection with no measured false alarms. JMLR 2005, sections 2, 4.4 and Figure 7.
Most detected failures in that histogram were warned within 100 hours of failure. This is not a promise of at least 100 hours for every failure. Only the final 600 hours of observations were available; the authors also warn that the small healthy sample makes low false-alarm rates imprecise. Section 5.1 and discussion.
Hesela interpretation: a drive can contribute again in another trial. Summed detections are therefore not a census of unique devices. A warning-time distribution restricted to detected failures also leaves missed failures out. Neither plot alone establishes how many distinct devices receive enough warning to complete an intervention. Reusing devices does not by itself prove train/test leakage within a trial; that is a separate identity check.
| Reported object | Keep with it | Do not infer |
|---|---|---|
| One trial's detection rate | Detected and eligible failed-drive counts; held-out IDs | A future-fleet recall or an annual failure rate |
| Pooled warning histogram | Trial IDs, repeated drive IDs, missed failures and observation window | Unique-drive counts from the sum of bars |
| Zero observed false alarms | Negative count, dependence, threshold selection and follow-up | Zero population false-positive probability |
| Operational warning success | First qualifying alert, event time and required intervention duration | Usable lead time from a prediction horizon alone |
This is a source audit, not a replication: we have not recovered trial-level assignments or deduplicated Figure 7. A new evaluation should retain those identities, report per-trial results and account for dependence before assigning uncertainty to pooled predictions. Keep the existing recall and false-positive-rate denominators distinct. Grouped and time-ordered validation guidance.
From scores to an alert budget
MCC and F-measure are not the fraction of alerts that identify failures. Before acting on a score, define a positive outcome, the prediction horizon, threshold and counting unit. Here TP means a correct alert, FP a false alert, FN a missed positive and TN a correctly rejected negative, all within that same evaluation population.
- Precision: correct share of alerts
- TP / (TP + FP)
- Recall: detected share of positives
- TP / (TP + FN)
- False positive rate: alerted share of negatives
- FP / (FP + TN)
- Positive-class prevalence: positives in the sample
- (TP + FN) / (TP + FP + FN + TN)
A zero denominator makes its ratio undefined, not evidence of a perfect model. Specify any replacement value used by software. Precision and recall use different denominators; FPR does not mean the fraction of alerts that are false.
Synthetic example: rare failures, many alerts
These are two invented cohorts, each with 100,000 distinct drives, one prediction per drive and complete follow-up for a hypothetical 10-day horizon. The counts deliberately give both cohorts 80% recall and 1% FPR. They are not measurements, a reproduction of Lu et al., or a forecast for another fleet.
Positive means failure within the horizon. Counts are exact assumptions; no sampling uncertainty is estimated.
| Positive prevalence | TP | FN | FP | TN | Alerts | Precision |
|---|---|---|---|---|---|---|
| 0.10% | 80 | 20 | 999 | 98,901 | 1,079 | 7.41% |
| 1.00% | 800 | 200 | 990 | 98,010 | 1,790 | 44.69% |
In the rarer-failure cohort, only 80 of 1,079 alerts are correct: 7.41% precision despite 80% recall and 1% FPR. Predicting no failures instead gives 99.9% accuracy, zero recall and undefined precision. Neither accuracy nor FPR alone describes the useful share of alerts.
With prevalence p, recall r and FPR f, precision = (r * p) / (r * p + f * (1 - p)), when the denominator is positive. This is a counting identity; transferring r and f to another fleet is an additional assumption. Saito and Rehmsmeier explain why class balance matters for precision-recall evaluation. The table is generated from the tested calculation module.
Repeated predictions are not distinct-drive alarms
A scoring record, a notification, a distinct alerted drive and a replacement are different counting units. Define the prediction cadence, outcome horizon and notification rule before evaluating operational cost.
One historical example makes the distinction concrete. Goldszmidt's D-FAD evaluation scored a rolling 24-hour input window every four hours, but counted detected disks using at least one qualifying alarm before replacement. Its false positives were reported as disks, not four-hour decision records. This illustrates a counting convention, not a performance comparison with Lu et al. The original study's replacement label and month-end follow-up rule also limit interpretation. HotStorage 2012, sections 3 and 5.
Four clocks, one detector
- Telemetry: every 20 minutes
- D-FAD's input averaged the preceding minute-level latency maxima; this was not one request's latency.
- Input history: 24 hours
- Past observations supplied each evaluation.
- Scoring cadence: every 4 hours
- Successive input windows overlapped.
- Qualifying warning: 4 hours to 18 days
- Alarm-to-replacement delay, not a guaranteed recovery budget.
The study counted unresolved month-end alarms as false positives. Our methodological caution: incomplete future observation is not proof of an event-free full horizon. This historical rule is not adopted by the fully observed synthetic example below. Source protocol, sections 3 and 5.
The two traces below are invented: 100 distinct drives, scored on days 0, 1 and 2 against a seven-day future horizon. Every drive is observed event-free through day 9, so all 300 decision opportunities per trace are known negatives. No intervention removes a drive from observation. Only the assignment of the three alerts changes.
Synthetic counting example. Notification policy: at most one notification per drive during this three-day reporting window. No independence assumption, measured failure rate or confidence interval.
| Alert pattern | False-positive records | Record FPR | Distinct alerted drives | Drive alert fraction | Notifications |
|---|---|---|---|---|---|
| Same drive, all three days | 3 / 300 | 1.00% | 1 / 100 | 1.00% | 1 |
| Different drive each day | 3 / 300 | 1.00% | 3 / 100 | 3.00% | 3 |
Both traces have 1% record-level FPR; the declared policy produces one notification in the persistent trace and three in the rotating trace. The distinct-drive fractions are 1% and 3%. All alarms are false and recall is undefined because there are no positive outcomes. This demonstrates counting only, not detection quality or a recommended suppression policy.
In real evaluation, retain drive identity and timestamps, count qualifying failures once under the stated device-level rule, and report suppressed notifications separately from raw positive predictions. Report actual interventions separately again. Repeated predictions may share inputs and outcome windows, so a per-record FPR alone cannot recover a drive's ever-alerted probability. A missing follow-up window is not a confirmed negative.
Reproduce with the counting module and inspect the synthetic inputs, policy and results. The article uses an identical local module; the historical 13-row source extract above is unchanged numerically.
Ranking quality is not a decision threshold
Average precision (AP) summarizes a ranking across score thresholds. In the non-interpolated convention used by scikit-learn, AP sums precision weighted by increases in recall. Trapezoidal PR-AUC uses linear segments between curve points and can give a different value. Name the integration convention; neither summary chooses the operating threshold or proves that predicted probabilities are calibrated.
Which AP baseline is being compared?
Constant scores evaluated as one tied group give AP equal to prevalence. A finite, tie-free random ranking has a different mean. With one positive among 100 observations, AP is 1/r when that positive appears at rank r. Averaging over all 100 equally likely ranks gives about 0.051874, even though prevalence is 0.01. Calling AP = 0.05 "five times chance" would confuse these two reference rules. In this one-positive null model, AP is at least 0.05 at ranks 1 through 20: an exact upper-tail probability of 0.20, not evidence of an unusually good ranking.
For fixed N > 1 observations and 1 <= M <= N positives, equal weights and a uniform random ordering independent of labels, the full-ranking mean is E[AP] = M/N + (N-M)(H_N-1)/(N(N-1)), where H_N is the sum of 1/k for k from 1 through N. This is the fixed-count expectation with cutoff k=N, not an AP-at-cutoff or weighted-sample formula.
| Observations N | Positives M | Constant-score AP | Mean random-ranking AP |
|---|---|---|---|
| 4 | 1 | 0.250000 | 0.520833 |
| 4 | 2 | 0.500000 | 0.680556 |
| 100 | 1 | 0.010000 | 0.051874 |
| 1000 | 10 | 0.010000 | 0.016427 |
| 100 | 100 | 1.000000 | 1.000000 |
Report N, M and the treatment of ties alongside AP. Do not arbitrarily break constant-score ties, or treat exceeding the null mean as a significance test. Repeated records from one drive also need a dependence-aware evaluation, not an assumption that every permutation represents the deployment question. No-positive samples require an explicit undefined-score or software convention.
Reproduce the table with the exact rational calculation and exhaustive small-ranking tests; download the results and assumptions. The original fleet-study figures above are unchanged.
For an operational report, publish TP, FP, FN and TN, distinct drives, repeated alerts, threshold, horizon and prevalence. Daily drive records can count one device many times. An unobserved outcome window must not silently become a healthy label. Hold out future time for future-deployment claims and unseen drives for unseen-device claims; one split does not automatically establish both. Fit preprocessing and choose thresholds without using the final test set. These are methodological recommendations, not additional results from Lu et al. Daily-record format / validation / leakage.
Same alerts, different probability errors
Matthews correlation coefficient (MCC) summarizes binary decisions, not the probability that a drive will fail. A score of 0.95 is not a 95% failure risk or 95% alert precision. Its formula uses all four confusion-matrix counts. Calibration asks a different question: do forecasts agree with event frequencies at those probabilities?
Construct two groups of 100 distinct drives, with 20 and 80 failures respectively, all fully observed over a hypothetical ten-day horizon. Each drive receives one forecast. These invented counts give 50% prevalence for easy arithmetic, not a plausible fleet failure estimate. All three predictors below use exactly the same outcomes. Nothing is trained, and no result from Lu et al. is reproduced.
Synthetic, 200 drives; p1 and p2 are probabilities for groups 1 and 2. Positive decision when p >= 0.5. Binary Brier score = mean((p - y)^2); lower is better.
| Predictor | p1 | p2 | Brier | MCC |
|---|---|---|---|---|
| A | 0.20 | 0.80 | 0.16 | 0.60 |
| B | 0.10 | 0.90 | 0.17 | 0.60 |
| C | 0.50 | 0.50 | 0.25 | Undefined |
A and B retain the same score ordering, ties and decisions: TP = 80, FP = 20, FN = 20, TN = 80. Their MCC is 0.60, yet their Brier scores differ. A matches the two constructed event fractions; B assigns more extreme probabilities. This is exact arithmetic on chosen counts, not evidence of calibration on future drives.
C assigns 0.50 to everyone. Its single score group matches the pooled 100/200 event fraction but cannot rank devices. C has worse Brier loss than B despite matching that empirical frequency: a lower Brier score is not a calibration-only certificate. With the declared threshold, C predicts every drive positive, so MCC has a zero denominator and is undefined here, stored as null. scikit-learn 1.7.2 instead returns zero for that degenerate case.
In a real fleet, publish score-group counts and observed outcome fractions alongside a probability score. Keep the outcome horizon and follow-up rule explicit. Reserve evaluation data untouched by fitting both the model and its calibrator, with time and device separation suited to the deployment claim. Guo et al. examine calibration on image and document tasks; their results are not disk-failure evidence. Calibration guidance / ICML 2017, sections 4-4.2.
The binary [0,1] normalization is used throughout; do not silently compare it with an unhalved sum over classes. Download the synthetic inputs and generated results, CC0 calculation module, tests and generator. The rendered table uses identical local code. No sampling uncertainty is estimated for these stipulated counts; the original 13-row study extract is unchanged.
Training prevalence is not deployment risk
A probability valid for a selected training population need not remain valid for a natural fleet. If the feature distribution within each outcome class stays unchanged, Bayes' rule reweights a source posterior by target/source class priors and renormalizes. It does not turn an arbitrary score into a probability. Alexandari et al., section 2.2 and equation 8.
This matters to storage research: Mahdisoltani et al. undersample the majority class when training sector-error classifiers. Their FPR/FNR evaluation concerns classification rates, not calibrated posterior risk. Our example below is not their training ratio, a replication, or a claim that they misrepresented probabilities. ATC 2017, sections 3.1.3-3.1.4 / storage-study context.
The following populations are entirely synthetic. Each case is one fully observed week for a distinct hypothetical device; positive means at least one sector-error report, not whole-drive failure. A and B are invented signals, not SMART thresholds. The counts define exact distributions, not sampled fleet estimates; no confidence interval, trained model or new hardware measurement is claimed.
| Population | A positive | A negative | B positive | B negative | Positive / total |
|---|---|---|---|---|---|
| Balanced source | 400 | 100 | 100 | 400 | 500 / 1,000 |
| Target L: label shift | 80 | 1,980 | 20 | 7,920 | 100 / 10,000 |
| Target C: changed conditionals | 20 | 2,040 | 80 | 7,860 | 100 / 10,000 |
Let q be the source posterior, s the source positive prevalence and t the target positive prevalence, with both priors strictly between zero and one. Under unchanged class conditionals, use positive weight q*t/s and negative weight (1-q)*(1-t)/(1-s); the corrected probability is the positive weight divided by their sum. Target L meets this premise; Target C deliberately does not.
| Signal | Source probability | Corrected probability | Actual Target L | Actual Target C |
|---|---|---|---|---|
| A | 4/5 (80.0000%) | 4/103 (3.8835%) | 4/103 (3.8835%) | 1/103 (0.9709%) |
| B | 1/5 (20.0000%) | 1/397 (0.2519%) | 1/397 (0.2519%) | 4/397 (1.0076%) |
Both targets have the same observable signal counts and the same positive total. The correction forecasts exactly 100 positives in either target, yet Target C has lower actual risk in A than B. A correct aggregate count does not validate subgroup risk. This is a constructed counterexample to dropping the premise, not to Bayes' rule or an estimate of how often this happens in practice.
Estimating prevalence from classifier outputs also requires assumptions. Lipton et al.'s method needs stable class conditionals, source support and an invertible confusion matrix. A fitted marginal does not verify those premises. ICML 2018, assumptions A.1-A.3 and equation 1. For a deployment claim, retain labelled target checks, the event and horizon, training-selection rules, and time/device separation. Do not correct again if the supplied probabilities already target the deployment population.
BBSE's prevalence estimate does not require calibrated scores: it uses a fixed classifier and a confusion matrix estimated from held-out labelled source data. For a fixed binary decision rule, let a be the target alert fraction, r the source TPR and f the source FPR. Stable class-conditional decision rates give t = (a - f) / (r - f) when r differs from f. This estimates a population proportion, not a posterior for an individual drive. Prior reweighting still requires meaningful source probabilities. When r equals f, this hard-decision estimator cannot identify t; a small nonzero gap amplifies estimation error, so invertibility alone is not precision. BBSE, section 4 / posterior adaptation, equation 8.
Download the complete reproducible package, exact results and method and commands. The Python standard-library model, inputs, tests and source map are included. These tables use byte-identical generated inputs/results. The original empirical study table above is unchanged.
Zero binned error can hide opposite mistakes
Keep predictor B's forecasts and all 200 outcomes unchanged. At probability 0.10, the observed failure fraction is 20/100; at 0.90, it is 80/100. The two signed gaps are opposite. Pooling both groups gives mean forecast 0.50 and observed fraction 100/200: the errors cancel before their absolute value is taken.
Here expected calibration error (ECE) means the empirical binary-event L1 score: sum of (bin count / 200) times abs(mean failure probability minus observed failure fraction). It is not the predicted-class confidence and correctness convention used by Guo et al. The event, weighting and binning convention must accompany the number.
| Probability bins | Counts | Event ECE |
|---|---|---|
| [0, 1] | 200 | 0.00 |
| [0, 0.5); [0.5, 1] | 100; 100 | 0.10 |
Nothing improved in the model: changing the partition alone changed 0.10 to 0.00. This is a constructed counterexample, not a new empirical discovery or a fleet-calibration estimate. Vaicenavicius et al. derive a lower-bound result for a fixed, data-independent partition as sample size tends to infinity, under their stated distance assumptions. It is not a lower bound for every finite sample. Theorem 2 and section 4.3.
Sampling adds a different problem: Roelofs et al. show that finite-sample binning estimates can err in either direction; increasing the bin count does not necessarily improve estimation. Their study is not a disk-fleet experiment. Section 4. For storage reports, our recommendation is to retain the bin edges, counts, mean probabilities, outcome fractions and follow-up exclusions. Compare a declared sensitivity set of partitions, not just the smallest reported ECE; use uncertainty analysis that respects repeated drives.
Brier score: binning changes the decomposition
The empirical three-term identity uses groups with identical issued probabilities. Wider bins generally need two extra within-bin terms. For unchanged synthetic predictor B, grouping by its exact probabilities gives reliability 0.01, resolution 0.09 and uncertainty 0.25: 0.01 - 0.09 + 0.25 = 0.17. One pooled bin instead gives zero reliability, zero resolution and uncertainty 0.25, not the original Brier score. Stephenson et al., equation 7.
Retaining the original probabilities restores the identity: BS = REL - RES + UNC + V - 2C. Here V and C are the count-weighted within-bin probability variance and probability-outcome covariance, using each bin's count as denominator, not count minus one. In the pooled example, V = 0.16 and C = 0.12, so 0.25 + 0.16 - 2 * 0.12 = 0.17. Replacing all probabilities by the bin mean 0.50 really scores 0.25: that is a different forecast, not a decomposition of the original. Ferro and Fricker, sections 1 and 4. These are exact calculations on the existing invented counts, not a fleet measurement or evidence of future calibration.
Exact addition does not remove sampling error. If every issued probability occurs only once, each exact-probability group contains one binary outcome: algebra gives REL = BS and RES = UNC. That apparent maximum resolution does not establish perfect risk separation on future drives. For example, forecasts 0.1, 0.3, 0.7 and 0.9 with outcomes 0, 1, 0 and 1 give BS = REL = RES = UNC = 0.25. This is a separate four-observation arithmetic illustration. Ferro and Fricker distinguish finite-sample component bias from the exact identity; their bias derivation assumes independent, identically distributed forecast-outcome pairs. Sections 2 and 5. Repeated forecasts for a drive require an evaluation design that accounts for dependence.
Twenty records can still be one outcome
Consider a fixed forecast p, n independent binary outcomes and a known event probability q. Direct expectation gives E[REL] = (p-q)^2 + q(1-q)/n. Even when p=q, the measured reliability component averages above zero. For p=q=0.01 and n=20, it averages 0.000495; no events appear with probability 0.99^20, about 81.79%. Absence of observed failures in that small sample does not refute the stipulated 1% risk.
| Outcome model | Records | Independent draws | E[REL] | No events |
|---|---|---|---|---|
| Independent | 20 | 20 | 0.000495 | 81.79% |
| One outcome copied | 20 | 1 | 0.009900 | 99.00% |
| Independent | 100 | 100 | 0.000099 | 36.60% |
| One outcome copied | 100 | 1 | 0.009900 | 99.00% |
For this fixed group and n>1, subtracting ybar(1-ybar)/(n-1) from REL gives an unbiased estimate of (p-q)^2 when the independent outcomes share one common event probability q. Independence alone is insufficient for heterogeneous event probabilities. A corrected estimate may be negative: p=0.5, n=2 and one positive outcome give corrected reliability -0.25 while BS remains 0.25. Do not call this a negative Brier score. This special case does not contradict the remaining bias with random group sizes in the general correction. Ferro and Fricker, section 2 and appendix.
The heterogeneous case has an exact diagnostic. For independent outcomes with fixed probabilities q_i, let qbar be their arithmetic mean and V_q = sum((q_i-qbar)^2)/n. Hesela's direct expectation gives E[corrected REL] = (p-qbar)^2 - V_q/(n-1), for n>1 and one fixed forecast p. With q_i=1/4 and 3/4 and p=1/2, the expectation is -1/16 although p equals the group's mean risk. This is a constructed probability example, not an estimate of device heterogeneity. It explains why the common-q assumption cannot be replaced by independence alone.
Reproduce the four rows using the CC0 Python model and exact rational results. The calculation sums binomial count probabilities without random sampling. It assumes fully observed outcomes and known p and q; it does not estimate a fleet failure rate or handle censoring.
The existing generated receipt now includes both partitions. Empty bins have zero weight and null statistics; intervals include their left edge, and the last includes 1. Binning regression tests check edge ownership, observation weights and 256 comparisons with independent observation-level arithmetic.
Which reference score is fixed?
Skill uses 1-BS/BS_ref. A positive constant BS_ref fixed outside the evaluation outcomes preserves strict propriety: reporting the event probability uniquely maximizes expected skill. Sample climatology instead makes the denominator depend on those outcomes. Jolliffe and Stephenson, section 2b. Declaring a baseline probability in advance does not fix its realized loss on a future batch. Gneiting and Raftery, sections 2.1 and 2.3.
In this worked example, Y is one binary outcome with probability q=1/4 and the baseline always predicts r=1/4. Compare two conventions: divide by the constant r(1-r)=3/16, or divide by the baseline's realized loss (r-Y)^2. The latter denominator is 1/16 when Y=0 and 9/16 when Y=1. Expectations below average the score over these two possible outcomes with weights 3/4 and 1/4.
| Forecast | Issued p | E[BS] | E[skill], fixed 3/16 | E[skill], realized reference |
|---|---|---|---|---|
| Honest | 1/4 | 3/16 | 0 | 0 |
| Ratio-optimal | 1/28 | 183/784 | -12/49 | 4/7 |
Forecast 1/28 has worse expected Brier loss than the honest 1/4, yet earns higher expected skill under the realized-reference rule. Direct minimization gives p*=q*r^2/[q*r^2+(1-q)*(1-r)^2]. This is an expectation of ratios, not a ratio of expected losses. It does not claim the same gain for a large pooled evaluation. On any one fixed dataset, a shared positive denominator still preserves the ranking by Brier loss.
Report both losses, the reference training period, evaluation batch and aggregation rule. If sample climatology has no event variation, BS_ref is zero and skill is undefined, not zero. That occurs for every single-outcome sample; the realized fixed-probability reference above deliberately avoids that separate degeneracy.
Reproduce this two-outcome calculation with the CC0 Python model and exact rational results. No random sampling, fitted drive model or new empirical claim is involved.
Sources
- 01Making Disk Failure Predictions SMARTer!, Lu, Luo, Patel, Yao, Tiwari, and Shi, FAST 2020 (USENIX PDF, pages 151 to 167) · accessed 2026-10-12
- 02Making Disk Failure Predictions SMARTer!, USENIX FAST 2020 presentation page (abstract and citation) · accessed 2026-10-12
- 03What SMART Stats Tell Us About Hard Drives, Backblaze, 6 October 2016 · accessed 2026-10-16
- 04Failure Trends in a Large Disk Drive Population, Pinheiro, Weber, and Barroso, FAST 2007 (USENIX HTML proceedings) · accessed 2026-10-09
- 05scikit-learn: precision_score; binary precision and zero-division behavior. · accessed 2026-10-12
- 06scikit-learn: recall_score; binary recall and zero-division behavior. · accessed 2026-10-12
- 07scikit-learn: model evaluation, confusion-matrix rates. · accessed 2026-10-12
- 08scikit-learn: average_precision_score; non-interpolated AP versus trapezoidal integration. · accessed 2026-10-12
- 09Saito and Rehmsmeier. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE 10(3): e0118432 (2015). · accessed 2026-10-12
- 10Backblaze: Hard Drive Test Data, daily drive snapshots. · accessed 2026-10-12
- 11scikit-learn: cross-validation with grouped and time-ordered data. · accessed 2026-10-12
- 12scikit-learn: common pitfalls, data leakage and preprocessing. · accessed 2026-10-12
- 13Moises Goldszmidt. Finding soon-to-fail disks in a haystack. HotStorage 2012, sections 3 and 5. · accessed 2026-10-16
- 14Backblaze 2016 SMART table: operational drives, SMART 188 column. · accessed 2026-10-16
- 15scikit-learn: Matthews correlation coefficient and binary confusion-matrix formula. · accessed 2026-10-17
- 16scikit-learn 1.7.2: matthews_corrcoef, zero-denominator convention. · accessed 2026-10-17
- 17scikit-learn: probability calibration, reliability diagrams and limits of Brier loss. · accessed 2026-10-17
- 18scikit-learn: brier_score_loss, binary normalization and range. · accessed 2026-10-17
- 19Guo, Pleiss, Sun and Weinberger. On Calibration of Modern Neural Networks. ICML 2017, sections 4-4.2. · accessed 2026-10-17
- 21Roelofs et al. Mitigating Bias in Calibration Error Estimation. AISTATS 2022, section 4 and Appendix B (finite-sample bias). · accessed 2026-10-17
- 22Alexandari, Kundaje and Shrikumar. Maximum Likelihood with Bias-Corrected Calibration is Hard-To-Beat at Label Shift Adaptation. ICML 2020, section 2.2 and equation 8. · accessed 2026-10-27
- 23Lipton, Wang and Smola. Detecting and Correcting for Label Shift with Black Box Predictors. ICML 2018, assumptions A.1-A.3 and equation 1. · accessed 2026-10-27
- 24Mahdisoltani, Stefanovici and Schroeder. Improving Storage System Reliability with Proactive Error Prediction. USENIX ATC 2017, sections 3.1.3-3.1.4. · accessed 2026-10-27
- 25Stephenson, Coelho and Jolliffe (2008). Two Extra Components in the Brier Score Decomposition. Section 2b, equation 7. DOI: 10.1175/2007WAF2006116.1. · accessed 2026-11-06
- 26Ferro and Fricker (2012). A bias-corrected decomposition of the Brier score. Author preprint, sections 1-2, 4-5. DOI: 10.1002/qj.1924. · accessed 2026-11-06
- 27Gneiting and Raftery (2007). Strictly Proper Scoring Rules, Prediction, and Estimation. Sections 2.1 and 2.3. DOI: 10.1198/016214506000001437. · accessed 2026-11-06
- 28Jolliffe and Stephenson (2008). Proper Scores for Probability Forecasts Can Never Be Equitable. Section 2b. DOI: 10.1175/2007MWR2194.1. · accessed 2026-11-06
- 29Murray, Hughes and Kreutz-Delgado. Machine Learning Methods for Predicting Failures in Hard Drives: A Multiple-Instance Application. JMLR 6(27):783-816 (2005), sections 2, 4.4, 5.1, 6 and Figure 7. · accessed 2026-11-11
- 30Manzhos, Ianevych and Melnyk (2026). Average precision at cutoff k under random rankings: expectation and variance. Theorem 1, k=N. · accessed 2026-11-22