<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Ahlin079</id>
	<title>SE250:lab-5:hlin079 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-5%3Ahlin079"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:hlin079&amp;action=history"/>
	<updated>2026-04-28T22:36:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-5:hlin079&amp;diff=6529&amp;oldid=prev</id>
		<title>Mark: 14 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-5:hlin079&amp;diff=6529&amp;oldid=prev"/>
		<updated>2008-11-03T05:19:47Z</updated>

		<summary type="html">&lt;p&gt;14 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==task1==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                    Entropy   Chi Square mean   pi%     Correlation &lt;br /&gt;
Buzhash low	    7.98550	99.00%	125.825	1.26%	-0.000047&lt;br /&gt;
Buzhash typical	    7.97970	25.00%	127.177	1.95%	-0.007153&lt;br /&gt;
Buzhashn low	    7.98214	50.00%	127.589	2.10%	0.000600&lt;br /&gt;
Buzhashn typical    7.98214	50.00%	127.589	2.10%	0.000600&lt;br /&gt;
hash crc low	    4.85247	0.01%	99.261	26.10%	-0.285059&lt;br /&gt;
hash crc typical    7.77880	0.01%	123.087	1.11%	-0.002250&lt;br /&gt;
base256 low	     0.00000	0.01%	97.000	27.32%	undefined&lt;br /&gt;
base256 typical	      3.90309	0.01%	107.987	27.32%	0.079032&lt;br /&gt;
object low	    2.00000	0.01%	77.000	27.32%	-0.521556&lt;br /&gt;
object typical	    4.97364	0.01%	54.918	27.32%	-0.021550&lt;br /&gt;
integer low	    4.11606	0.01%	32.385	27.32%	-0.217081&lt;br /&gt;
integer typical	   4.11606	0.01%	32.385	27.32%	-0.217081&lt;br /&gt;
string low	   7.99463	99.99%	127.867	1.95%	0.009136&lt;br /&gt;
string typical	   7.89301	0.01%	126.009	1.42%	-0.021360&lt;br /&gt;
rand low	    7.93533	0.01%	112.054	10.82%	-0.066125&lt;br /&gt;
rand typical	   7.93951	0.01%	111.686	10.82%	-0.060458&lt;br /&gt;
high rand low	    7.98301	75.00%	127.541	0.42%	0.001185&lt;br /&gt;
high rand typical   7.98338	75.00%	128.211	1.49%	-0.014177&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
====rand vs high rand====&lt;br /&gt;
high rand has higher entropy and better chi square compare to rand .  The mean of high rand is much closer to 127.5 than rand. Also high rand&amp;#039;s pi% and  Correlation are much closer to zero compare to rand. Over all high rand has higher randomness than rand.&lt;br /&gt;
-----------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Entropy: the closer the value is to 8 bits per byte, the more random the numbers returned by the function must be. in this case the entropy of string low is closer to 8bits per bytes.&lt;br /&gt;
i don&amp;#039;t know why my string low has the higher entropy. Because when i look at some other people&amp;#039;s outputs their Buzhash lows have the highest entropy.&lt;br /&gt;
&lt;br /&gt;
====Ranking based on ehtropy====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
string low	   7.99463&lt;br /&gt;
Buzhash low	    7.98550&lt;br /&gt;
high rand typical   7.98338&lt;br /&gt;
high rand low	    7.98301&lt;br /&gt;
Buzhashn low	    7.98214	&lt;br /&gt;
Buzhashn typical    7.98214	&lt;br /&gt;
Buzhash typical	    7.97970	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Chi Square: The number of times the values would exceed the random variable obtained gives an indication of how random the numbers must be. Values close to 50% have the highest randomness. &lt;br /&gt;
the Buzhashn low and typical have the highest randomness{50%}.&lt;br /&gt;
====Ranking Based on chi square====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Buzhashn low	    	50.00%	&lt;br /&gt;
Buzhashn typical    	50.00%	&lt;br /&gt;
high rand low	    	75.00%	&lt;br /&gt;
high rand typical   	75.00%	&lt;br /&gt;
Buzhash typical	    	25.00%	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Arithmetic mean: The expected mean for a set of random numbers is always the centre between the highest value and the lowest value. For this set of tests, 127.5 is the expected mean. High rand low has 125.541 which is much closer than the others to the expected mean.&lt;br /&gt;
====Ranking based on mean====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
high rand low	  	127.541	&lt;br /&gt;
Buzhashn low	    	127.589	&lt;br /&gt;
Buzhashn typical    	127.589	&lt;br /&gt;
string low	        127.867	&lt;br /&gt;
Buzhash typical	    	127.177	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
pi%: the numbers are plotted on a 2D grid containing a circle. The percentage of points inside the circle and the percentage of points outside the circle should be the same. The error indicates by how much the two differ. Hence, the closer the error is to 0, the more random the numbers generated must be. the high rand low has 0.42% of the error &lt;br /&gt;
====ranking based on pi%====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
high rand low		0.42% &lt;br /&gt;
hash crc typical    	1.11%	&lt;br /&gt;
Buzhash low	    	1.26%&lt;br /&gt;
string typical	   	1.42%&lt;br /&gt;
high rand typical   	1.49%	&lt;br /&gt;
string low	   	1.95%	&lt;br /&gt;
Buzhash typical	    	1.95%	&lt;br /&gt;
Buzhashn low	    	2.10%	&lt;br /&gt;
Buzhashn typical        2.10%	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Serial Correlation: Values close to 0 show that the relationship between the numbers is fairly non-existant (and hence must be random). &lt;br /&gt;
====why is the Correlation for base256 low is undefined?====&lt;br /&gt;
====Ranking based on Correlation====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Buzhash low	    	-0.000047&lt;br /&gt;
Buzhashn low	    	0.000600&lt;br /&gt;
Buzhashn typical    	0.000600&lt;br /&gt;
Buzhash typical	   	-0.007153&lt;br /&gt;
string low	   	0.009136&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Over all Buzhash has highest randomness compare to all the other hush functions.&lt;br /&gt;
&lt;br /&gt;
==task2==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Buzhash low 100/1000: llps = 2, expecting 2.13803&lt;br /&gt;
Buzhash typical 100/1000: llps = 1, expecting 2.13803&lt;br /&gt;
CRC low 100/1000: llps = 2, expecting 2.13803&lt;br /&gt;
CRC typical 100/1000: llps = 3, expecting 2.13803&lt;br /&gt;
base256 low 100/1000: llps = 100, expecting 2.13803&lt;br /&gt;
base256 typical 100/1000: llps = 4, expecting 2.13803&lt;br /&gt;
Object low 100/1000: llps = 100, expecting 2.13803&lt;br /&gt;
Object typical 100/1000: llps = 3, expecting 2.13803&lt;br /&gt;
string low 100/1000: llps = 1, expecting 2.13803&lt;br /&gt;
String typical 100/1000: llps = 2, expecting 2.13803&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rearranged : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
String typical 100/1000:    llps = 2, expecting 2.13803&lt;br /&gt;
Buzhash low 100/1000:      llps = 2, expecting 2.13803&lt;br /&gt;
CRC low 100/1000:          llps = 2, expecting 2.13803&lt;br /&gt;
Buzhash typical 100/1000:  llps = 1, expecting 2.13803&lt;br /&gt;
string low 100/1000:       llps = 1, expecting 2.13803&lt;br /&gt;
Object typical 100/1000:   llps = 3, expecting 2.13803&lt;br /&gt;
CRC typical 100/1000:      llps = 3, expecting 2.13803&lt;br /&gt;
base256 typical 100/1000:  llps = 4, expecting 2.13803&lt;br /&gt;
base256 low 100/1000:      llps = 100, expecting 2.13803&lt;br /&gt;
Object low 100/1000:       llps = 100, expecting 2.13803&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
String typical ,Buzhash low and CRC low have the best actual performance compare to all the others. &lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Buzhash has the best performance in both theoretical and actual situation.&lt;br /&gt;
hash crc low has the best performance in actual situation. (But in the theoretical situation CRC low had an entropy of 4.85247 which is not close to 8 bits per byte. Also it has a chi square of 0.01% which is not close to 50%.The mean of CRC low is 99.261 which is much lower than the expected mean(127.5). the %pi is much greater than 0 . over all theoretical performance of CRC low is not as good as the theoretical performance of Buzhash .&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>