← Back

Longest run (bit)

Fit to analytical expectation

Expected distribution assumes MD5 acts like a random function. The longest run of matching bits is the longest run of successes in 128 iid Bernoulli(1/2) trials.

Expected (now) scales that analytical distribution to the hashes computed so far; Expected (end) scales it to the full 2128 keyspace. Residual is the Pearson residual (Observed − Expected) / √Expected in units of σ. A p-value near 1 means the observed distribution is consistent with random; near 0 means it is statistically surprising.

Distribution moments

Observed Expected
Mean 6.345 6.345
Std. deviation 1.808 1.808

Pearson χ² test

Samples 13,403,961,570,623,488
Reduced χ² 0.961
Degrees of freedom 55
p-value 0.556

Per-bucket detail

Bucket Observed Expected (now) Expected (end) Residual
0 0 0 1 −0.00σ
1 25,852 25,960 659,034,621,587,630,097,925,406,720 −0.67σ
2 336,090,561,312 336,089,834,510 8,532,212,195,821,815,690,880,246,022,668,288 +1.25σ
3 129,845,738,146,294 129,845,746,738,775 3,296,355,170,975,913,953,830,188,959,930,515,456 −0.75σ
4 1,443,491,238,342,624 1,443,491,222,396,200 36,645,480,308,082,511,851,021,400,638,691,999,744 +0.42σ
5 3,256,572,317,083,025 3,256,572,341,508,970 82,673,628,880,479,479,322,644,823,708,767,617,024 −0.43σ
6 3,342,458,580,244,090 3,342,458,545,649,178 84,853,996,279,826,276,904,832,134,827,802,099,712 +0.60σ
7 2,348,066,596,054,959 2,348,066,584,943,062 59,609,664,725,055,170,786,254,489,008,279,126,016 +0.23σ
8 1,376,601,198,223,927 1,376,601,213,021,398 34,947,363,628,659,461,790,319,163,908,382,785,536 −0.40σ
9 740,106,539,102,793 740,106,566,554,449 18,788,864,240,914,281,050,778,085,576,612,511,744 −1.01σ
10 381,648,356,127,583 381,648,352,447,448 9,688,792,676,555,938,900,437,062,740,284,014,592 +0.19σ
11 192,868,314,481,617 192,868,328,228,315 4,896,290,614,369,654,663,018,381,655,765,155,840 −0.99σ
12 96,514,407,817,671 96,514,396,252,074 2,450,182,136,494,551,671,684,016,167,970,668,544 +1.18σ
13 48,065,890,496,838 48,065,883,283,391 1,220,234,215,507,152,699,048,154,686,111,612,928 +1.04σ
14 23,880,999,169,237 23,880,994,588,482 606,259,673,319,599,880,347,246,183,495,761,920 +0.94σ
15 11,850,905,826,946 11,850,903,532,135 300,855,346,594,304,512,455,464,943,550,988,288 +0.67σ
16 5,877,369,515,934 5,877,368,531,036 149,206,998,577,991,209,378,836,738,748,710,912 +0.41σ
17 2,913,849,610,083 2,913,851,066,406 73,973,066,283,987,529,515,848,308,673,740,800 −0.85σ
18 1,444,316,093,576 1,444,318,498,041 36,666,482,107,675,219,043,251,232,052,346,880 −2.00σ
19 715,810,319,059 715,809,962,762 18,172,053,620,919,563,046,238,173,637,115,904 +0.42σ
20 354,719,119,738 354,719,348,335 9,005,154,096,268,711,410,902,028,827,754,496 −0.38σ
21 175,764,032,271 175,764,221,093 4,462,073,757,714,001,476,619,026,393,202,688 −0.45σ
22 87,083,866,808 87,083,752,050 2,210,769,190,266,126,692,521,262,933,082,112 +0.39σ
23 43,142,655,900 43,142,545,440 1,095,246,908,901,450,733,669,429,452,734,464 +0.53σ
24 21,371,715,325 21,371,571,221 542,553,692,176,791,364,042,806,156,853,248 +0.99σ
25 10,586,009,809 10,585,926,208 268,741,745,267,296,222,332,071,006,175,232 +0.81σ
26 5,242,880,529 5,243,031,336 133,103,269,771,812,244,771,443,784,548,352 −2.08σ
27 2,596,548,055 2,596,549,292 65,917,820,945,443,483,349,596,023,816,192 −0.02σ
28 1,285,752,439 1,285,791,340 32,642,000,522,382,460,409,973,449,949,184 −1.08σ
29 636,640,057 636,653,989 16,162,544,576,928,790,163,375,739,895,808 −0.55σ
30 315,200,381 315,206,148 8,002,044,277,822,173,577,045,157,609,472 −0.32σ
31 156,034,919 156,042,649 3,961,408,093,597,435,447,348,868,153,344 −0.62σ
32 77,235,755 77,241,111 1,960,897,014,663,724,363,714,689,761,280 −0.61σ
33 38,238,753 38,230,449 970,544,989,021,356,714,664,851,931,136 +1.34σ
34 18,921,338 18,920,171 480,320,734,825,442,019,587,219,521,536 +0.27σ
35 9,365,251 9,362,559 237,684,487,445,082,915,265,201,569,792 +0.88σ
36 4,629,865 4,632,516 117,604,303,709,282,379,604,275,757,056 −1.23σ
37 2,291,103 2,291,876 58,183,181,841,091,869,960,520,597,504 −0.51σ
38 1,131,935 1,133,747 28,782,105,912,148,008,868,761,305,088 −1.70σ
39 560,307 560,778 14,236,310,451,495,050,160,071,770,112 −0.63σ
40 276,736 277,341 7,040,783,973,369,295,364,287,365,120 −1.15σ
41 137,785 137,147 3,481,706,360,474,853,209,574,211,584 +1.72σ
42 68,339 67,812 1,721,510,367,127,723,403,177,361,408 +2.03σ
43 33,766 33,525 851,083,777,007,896,295,504,871,424 +1.32σ
44 16,706 16,572 420,706,185,225,708,090,270,154,752 +1.04σ
45 8,209 8,191 207,935,240,973,674,745,845,252,096 +0.20σ
46 4,016 4,048 102,758,694,667,234,116,821,319,680 −0.50σ
47 1,977 2,000 50,774,884,423,812,329,393,618,944 −0.52σ
48 1,038 988 25,085,210,757,003,087,223,717,888 +1.59σ
49 485 488 12,391,489,651,049,845,961,523,200 −0.14σ
50 252 241 6,120,186,961,799,037,648,371,712 +0.70σ
51 102 119 3,022,314,549,036,568,104,927,232 −1.56σ
52 67 59 1,492,267,808,586,806,813,786,112 +1.07σ
53 27 29 736,689,171,327,664,384,901,120 −0.37σ
54 13 14 363,622,219,180,962,614,345,728 −0.35σ
55 3 7 179,449,926,349,046,518,120,448 −1.53σ
56 3 3 88,544,371,553,805,847,756,800 −0.26σ
57 2 2 43,681,889,966,544,218,226,688 +0.21σ
58 4 1 21,545,797,078,092,756,287,488 +3.42σ
59 0 0 10,625,324,586,456,701,730,816 −0.65σ
60 0 0 5,238,875,316,933,512,658,944 −0.45σ
61 0 0 2,582,544,170,319,337,226,240 −0.32σ
62 0 0 1,272,825,341,085,959,061,504 −0.22σ
63 0 0 627,189,298,506,124,754,944 −0.16σ
64 0 0 308,982,963,234,634,989,568 −0.11σ
65 0 0 152,185,638,608,103,800,832 −0.08σ
66 0 0 74,939,897,799,445,053,440 −0.05σ
67 0 0 36,893,488,147,419,103,232 −0.04σ
68 0 0 18,158,513,697,557,839,872 −0.03σ
69 0 0 8,935,141,660,703,064,064 −0.02σ
70 0 0 4,395,513,236,313,604,096 −0.01σ
71 0 0 2,161,727,821,137,838,080 −0.01σ
72 0 0 1,062,849,512,059,437,056 −0.01σ
73 0 0 522,417,556,774,977,536 −0.00σ
74 0 0 256,705,178,760,118,272 −0.00σ
75 0 0 126,100,789,566,373,888 −0.00σ
76 0 0 61,924,494,876,344,320 −0.00σ
77 0 0 30,399,297,484,750,848 −0.00σ
78 0 0 14,918,173,765,664,768 −0.00σ
79 0 0 7,318,349,394,477,056 −0.00σ
80 0 0 3,588,805,953,060,864 −0.00σ
81 0 0 1,759,218,604,441,600 −0.00σ
82 0 0 862,017,116,176,384 −0.00σ
83 0 0 422,212,465,065,984 −0.00σ
84 0 0 206,708,186,021,888 −0.00σ
85 0 0 101,155,069,755,392 −0.00σ
86 0 0 49,478,023,249,920 −0.00σ
87 0 0 24,189,255,811,072 −0.00σ
88 0 0 11,819,749,998,592 −0.00σ
89 0 0 5,772,436,045,824 −0.00σ
90 0 0 2,817,498,546,176 −0.00σ
91 0 0 1,374,389,534,720 −0.00σ
92 0 0 670,014,898,176 −0.00σ
93 0 0 326,417,514,496 −0.00σ
94 0 0 158,913,789,952 −0.00σ
95 0 0 77,309,411,328 −0.00σ
96 0 0 37,580,963,840 −0.00σ
97 0 0 18,253,611,008 −0.00σ
98 0 0 8,858,370,048 −0.00σ
99 0 0 4,294,967,296 −0.00σ
100 0 0 2,080,374,784 −0.00σ
101 0 0 1,006,632,960 −0.00σ
102 0 0 486,539,264 −0.00σ
103 0 0 234,881,024 −0.00σ
104 0 0 113,246,208 −0.00σ
105 0 0 54,525,952 −0.00σ
106 0 0 26,214,400 −0.00σ
107 0 0 12,582,912 −0.00σ
108 0 0 6,029,312 −0.00σ
109 0 0 2,883,584 −0.00σ
110 0 0 1,376,256 −0.00σ
111 0 0 655,360 −0.00σ
112 0 0 311,296 −0.00σ
113 0 0 147,456 −0.00σ
114 0 0 69,632 −0.00σ
115 0 0 32,768 −0.00σ
116 0 0 15,360 −0.00σ
117 0 0 7,168 −0.00σ
118 0 0 3,328 −0.00σ
119 0 0 1,536 −0.00σ
120 0 0 704 −0.00σ
121 0 0 320 −0.00σ
122 0 0 144 −0.00σ
123 0 0 64 −0.00σ
124 0 0 28 −0.00σ
125 0 0 12 −0.00σ
126 0 0 5 −0.00σ
127 0 0 2 −0.00σ
128 0 0 1 −0.00σ