Chuyển tới nội dung
Number Buffet

Phân bố theo định luật Benford

Tần suất mong đợi của chữ số đầu và chữ số thứ hai theo định luật Benford, kèm một tập dữ liệu lặp lại được tuân theo nó chính xác.

Đọc 3 phút

Thiết lập

Thiết lập nhanh

How many records the expected counts are worked out for, or how many values to sample.

Sampled values start at this power of ten. 2 means the data begins at 100.

Benford holds exactly when log10 of the data is spread evenly over a whole number of decades. This is that number.

How many significant digits each sampled value carries.

The same seed always produces the same dataset, so a shared link renders identical numbers.

Tinh chỉnh dáng vẻ

Hãy chọn một thiết lập cạnh ảnh trước — các điều khiển này điều chỉnh nó.

Frame

A border drawn inside the edge of the image.

Nâng cao

Kết quả

9 giá trị

1 30.103% 30 of 100, 2 17.609% 18 of 100, 3 12.494% 12 of 100, 4 9.691% 10 of 100, 5 7.918% 8 of 100, 6 6.695% 7 of 100, 7 5.799% 6 of 100, 8 5.115% 5 of 100, 9 4.576% 4 of 100

Expected counts are apportioned by largest remainder so they total exactly 100. These are the frequencies a conforming dataset tends towards — real data spanning several orders of magnitude, with no built-in floor or ceiling. Heights, exam scores, prices anchored at 9.99 and assigned numbers such as invoice or phone numbers are not expected to follow the law.


Tạo ảnh

Hãy bật JavaScript để tạo kiểu cho những số này và tải về dưới dạng ảnh. Bản thân các giá trị đã được liệt kê ở trên.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

Bài viết nền bên dưới chưa được dịch và đang hiển thị bằng tiếng Anh.

Về phân bố theo định luật benford

Simon Newcomb published the law first, and nobody noticed. His two-page "Note on the frequency of use of the different digits in natural numbers" appeared in the American Journal of Mathematics in 1881 and gave the logarithmic rule outright: the probability that a number begins with digit d is log10(1 + 1/d). The paper sank without trace.

Fifty-seven years later Frank Benford, a physicist at General Electric, arrived at the same rule and did the empirical work that made it stick. "The Law of Anomalous Numbers" ran in the Proceedings of the American Philosophical Society in 1938 with 20,229 observations drawn from twenty unrelated sources — 335 river surface areas, 3,259 US population figures, 104 physical constants, 1,800 molecular weights, 5,000 entries lifted from a mathematical handbook, 308 numbers plucked from an issue of Reader's Digest, 342 street addresses, death rates and more. Pooled together, the leading digits tracked the logarithmic curve closely.

A story is usually attached to the discovery: that one or other man noticed the early pages of a book of logarithm tables were grubbier than the later ones, because numbers starting with 1 get looked up more often. The anecdote is told about both Newcomb and Benford, and is better treated as a teaching illustration than as documented history.

The theory caught up in stages. Roger Pinkham showed in 1961 that Benford's is the only first-digit law that survives a change of units — if a rule holds for data measured in miles it must also hold in kilometres, and that constraint forces the logarithm. Theodore Hill proved in 1995 that sampling from a random mixture of distributions tends towards Benford even when no single distribution does. And one condition makes the law exact rather than approximate: if the base-10 logarithm of the data is spread evenly across a whole number of decades, the leading digits obey it precisely. That is the construction this page samples from.

Since the law is named after the second person to find it, it is a stock example of Stigler's law of eponymy — which Stephen Stigler, fittingly, credited to Robert Merton.

Tính chất chính

  • The probability that a value begins with digit d is log10(1 + 1/d): 30.103% for 1, falling to 4.576% for 9.
  • The nine probabilities sum to exactly 1, because the logarithms telescope to log10(10/1) = 1.
  • Benford’s law is the only first-digit distribution invariant under a change of scale, so the units the data is recorded in cannot matter (Pinkham, 1961).
  • A quantity whose base-10 logarithm is uniformly distributed over a whole number of decades follows the law exactly — that is how this page samples.
  • The second-digit distribution is far flatter, from about 12.0% for 0 down to 8.5% for 9, and by the fourth significant digit it is nearly uniform.
  • The leading digits of the powers of 2, and of the Fibonacci numbers, follow the law in the limit, because log10(2) and log10(φ) are irrational and so their multiples are equidistributed modulo 1.
  • The law is not expected to hold for data confined to one order of magnitude (heights, IQ scores), for normal or uniform distributions, or for assigned numbers such as invoice, cheque or phone numbers.
  • Multiplying every value in a conforming dataset by a constant leaves the expected digit distribution unchanged — a direct consequence of scale invariance.

Xuất hiện ở đâu

  • Forensic accounting: digit tests on ledgers, expense claims and tax filings are a standard screening step in audit software, flagging sets of numbers worth a closer look rather than proving anything on their own.
  • Macroeconomic data screening: a widely cited 2011 study applied digit tests to EU government accounting data and reported that the Greek figures deviated most from Benford’s law.
  • Election forensics, where the method is genuinely contested. Joseph Deckert, Mikhail Myagkov and Peter Ordeshook argued in 2011 that the law is misleading as a fraud indicator; Walter Mebane, who defends digit tests, still accepts that many caveats apply.
  • Claims that circulated after the 2020 US presidential election ran Benford tests on precinct-level vote counts. Mebane pointed out that precinct totals are not useful for diagnosing fraud, because they span too narrow a range for the law to be expected to hold at all.
  • Image forensics research: the DCT coefficients of a JPEG approximately follow a generalised Benford distribution, and departures from it have been proposed as a way to detect re-compressed or manipulated images.

Cách dùng bộ tạo này

Các giá trị được tạo hiện ở trên cùng, bên cạnh là nút sao chép. Để biến chúng thành ảnh, hãy chọn một dáng vẻ trong các kiểu ở phần Tạo ảnh, chọn kích thước xuất rồi tải về dưới dạng PNG, JPEG hoặc WebP. Mọi thứ được vẽ trong trình duyệt, nên không có gì bạn tạo ra được gửi tới máy chủ.

Thanh địa chỉ cập nhật theo lúc bạn làm, nên liên kết luôn cho lại đúng những gì bạn đang thấy — tiện khi muốn chia sẻ một dãy cụ thể hay giữ lại một cấu hình. Dùng Sao chép để lấy giá trị dưới dạng văn bản thuần, hoặc Xuất dữ liệu để có CSV, JSON, NDJSON, SQL và XML.

Nguồn

Các phần tóm lược lịch sử trên trang này dựa vào những tài liệu giấy phép mở được liệt kê ở trên. Thấy chỗ nào sai? Hãy cho chúng tôi biết và chúng tôi sẽ sửa.