|
|
Log in / Subscribe / Register

1000x dubious

1000x dubious

Posted Nov 14, 2025 20:54 UTC (Fri) by excors (subscriber, #95769)
In reply to: 1000x dubious by Vorpal
Parent article: Rust in Android: move fast and fix things (Google Security Blog)

It does seem statistically valid, from what I vaguely remember of statistics. They say C++ has an error rate of 1e-3 (per LOC), and Rust has an error rate at least 1000x better, i.e. better than 1e-6. Assuming a binomial distribution with N=5e6 and p=1e-6, that gives a 96% probability of getting > 1 error in a 5MLOC sample of Rust.

They observed exactly 1 error, which is unlikely (to a statistically significant level) under that assumed 1e-6 error rate, so it's fair to reject the null hypothesis that the error rate is exactly 1e-6 and therefore claim it's actually better than 1e-6 (which is precisely what they say).

They couldn't make the same claim for e.g. 0.5e-6, because their observation would no longer be statistically significant. So their actual claim is the best it can be.

Since they don't show their working, maybe they just picked "1000x" because it sounded like a nice round number, but it does coincide with that slightly more rigorous analysis. (...assuming I've calculated it correctly)


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds