Câu chuyện / Toán trong đời sống
Benford’s law: how the digit 1 exposes fraudstersBenford’s law: how the digit 1 exposes fraudsters
Trong số liệu thực tế, khoảng 30% con số bắt đầu bằng chữ số 1 — không phải 11% như ta tưởng. Kiểm toán viên dùng điều kỳ lạ này để phát hiện sổ sách giả.In real-world data about 30% of numbers start with the digit 1 — not 11% as you might expect. Auditors use this oddity to catch fake accounts.
Hãy lấy dân số của mọi xã trên cả nước, giá của mọi mặt hàng trong siêu thị, hay chiều dài các con sông trên thế giới. Nhìn vào chữ số đầu tiên của mỗi số. Bạn đoán mỗi chữ số từ 1 đến 9 xuất hiện khoảng $\frac19 \approx 11\%$ số lần?
Thực tế khác xa: chữ số 1 đứng đầu khoảng 30%, còn chữ số 9 chỉ khoảng 4,6%.
Công thức của Benford
Năm 1938, kỹ sư Frank Benford kiểm tra hơn 20.000 con số từ diện tích sông hồ, số liệu thống kê dân số cho đến các hằng số vật lý, và xác nhận quy luật Newcomb đã ghi nhận trước đó. Xác suất chữ số đầu là $d$:
$$P(d) = \log_{10}\left(1 + \frac{1}{d}\right)$$
| Chữ số đầu | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| Tỉ lệ | 30,1% | 17,6% | 12,5% | 9,7% | 7,9% | 6,7% | 5,8% | 5,1% | 4,6% |
Vì sao lại thế?
Hãy nghĩ về một khoản tiền tăng 10% mỗi năm, bắt đầu từ 100 triệu. Để đi từ 100 lên 200 triệu (chữ số đầu là 1), nó cần tăng gấp đôi — mất khoảng 7 năm. Nhưng để đi từ 900 triệu lên 1 tỷ (chữ số đầu là 9), nó chỉ cần tăng thêm 11% — chưa đầy 1 năm rưỡi. Con số “nán lại” ở vùng chữ số 1 lâu hơn nhiều.
Nói chính xác hơn: những đại lượng trải rộng qua nhiều bậc độ lớn và tăng trưởng theo tỉ lệ sẽ phân bố đều trên thang logarit — và trên thang logarit, khoảng từ 1 đến 2 rộng hơn hẳn khoảng từ 9 đến 10.
Một tính chất đẹp: luật Benford không phụ thuộc đơn vị. Đổi giá từ đồng sang đô la, đổi chiều dài từ km sang dặm — tỉ lệ chữ số đầu vẫn giữ nguyên. Thực ra đây là phân bố duy nhất có tính chất đó.
Bắt kẻ gian
Khi con người bịa ra số liệu, họ thường cố tình rải đều các chữ số để trông “ngẫu nhiên”. Kết quả là quá ít số bắt đầu bằng 1 và quá nhiều số bắt đầu bằng 7, 8, 9. Từ thập niên 1990, nhà nghiên cứu kế toán Mark Nigrini phổ biến cách dùng luật Benford để sàng lọc các bộ sổ sách, hóa đơn và tờ khai thuế đáng ngờ.
Lưu ý: luật Benford không phải máy phát hiện nói dối. Nó không áp dụng cho số liệu bị giới hạn trong một khoảng hẹp (chiều cao người lớn, điểm thi thang 10) hay những con số được gán (số điện thoại, mã bưu chính). Nó chỉ chỉ ra chỗ cần xem xét kỹ hơn.
Take the population of every town in a country, the price of every item in a supermarket, or the lengths of the world’s rivers. Look at the first digit of each number. Would you guess each digit from 1 to 9 appears about $\frac19 \approx 11\%$ of the time?
Reality is very different: 1 comes first about 30% of the time, and 9 only about 4.6%.
Benford’s formula
In 1938 the engineer Frank Benford examined more than 20,000 numbers — from areas of rivers and lakes and population statistics to physical constants — and confirmed the pattern Newcomb had noticed earlier. The probability that the first digit is $d$ is:
$$P(d) = \log_{10}\left(1 + \frac{1}{d}\right)$$
| First digit | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| Share | 30.1% | 17.6% | 12.5% | 9.7% | 7.9% | 6.7% | 5.8% | 5.1% | 4.6% |
Why does it happen?
Think of a sum of money growing 10% a year, starting at 100 million. To go from 100 to 200 million (first digit 1) it must double — about 7 years. But to go from 900 million to 1 billion (first digit 9) it only needs to grow 11% — under a year and a half. The number “lingers” among the 1s far longer.
More precisely: quantities that span many orders of magnitude and grow by proportion are spread evenly on a logarithmic scale — and on a log scale the stretch from 1 to 2 is much wider than the stretch from 9 to 10.
A lovely property: Benford’s law is independent of units. Convert prices from dong to dollars, lengths from km to miles — the first-digit shares stay the same. In fact it is the only distribution with this property.
Catching cheats
When people invent data, they tend to spread the digits evenly to look “random”. The result has too few numbers starting with 1 and too many starting with 7, 8, 9. Since the 1990s the accounting researcher Mark Nigrini has popularised using Benford’s law to screen suspicious ledgers, invoices and tax returns.
Note: Benford’s law is not a lie detector. It does not apply to data confined to a narrow range (adult heights, test scores out of 10) or to assigned numbers (phone numbers, postcodes). It only points to where a closer look is needed.
Đọc tiếp
Some infinities are bigger than othersSome infinities are bigger than others
Khách sạn có vô số phòng đã kín chỗ vẫn nhận thêm khách. Và có những vô cực "lớn hơn" những vô cực khác. Chào mừng đến với thế giới của Cantor.A full hotel with infinitely many rooms can still take more guests. And some infinities are “bigger” than others. Welcome to Cantor’s world.
Đọc tiếp → Nghịch lý & bí ẩn8 phút đọcGödel: mathematics cannot prove every true statementGödel: mathematics cannot prove every true statement
Năm 1931, một chàng trai 25 tuổi chứng minh rằng trong toán học luôn có những mệnh đề đúng mà không bao giờ chứng minh được. Giấc mơ của Hilbert sụp đổ.In 1931 a 25-year-old proved that mathematics always contains true statements that can never be proved. Hilbert’s dream collapsed.
Đọc tiếp → Toán trong đời sống6 phút đọcBinary: the whole digital world needs only 0 and 1Binary: the whole digital world needs only 0 and 1
Bức ảnh, bài hát, trang web bạn đang đọc — tất cả đều là những dãy 0 và 1. Ý tưởng này có từ hơn 300 năm trước.Photos, songs, the web page you are reading — all are strings of 0s and 1s. The idea is more than 300 years old.
Đọc tiếp →
Bình luận (0)
Chưa có bình luận nào. Hãy là người đầu tiên!