daily pastebin goal
4%
SHARE
TWEET

Entropy Experiment

a guest Mar 13th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat /dev/input/mouse1 > test1 && ent -bc test1
  2. -----------------------------------------------------------------------------------------------
  3. Value Char Occurrences Fraction
  4.   0             2648   0.711828
  5.   1             1072   0.288172
  6.  
  7. Total:          3720   1.000000
  8.  
  9. Entropy = 0.866348 bits per bit.
  10.  
  11. Optimum compression would reduce the size
  12. of this 3720 bit file by 13 percent.
  13.  
  14. Chi square distribution for 3720 samples is 667.68, and randomly
  15. would exceed this value less than 0.01 percent of the times.
  16.  
  17. Arithmetic mean value of data bits is 0.2882 (0.5 = random).
  18. Monte Carlo value for Pi is 4.000000000 (error 27.32 percent).
  19. Serial correlation coefficient is 0.397180 (totally uncorrelated = 0.0).
  20.  
  21.  
  22. cat /dev/urandom > test2 && ent -bc test2
  23. -----------------------------------------------------------------------------------------------
  24. Value Char Occurrences Fraction
  25.   0        319292565   0.499976
  26.   1        319322987   0.500024
  27.  
  28. Total:     638615552   1.000000
  29.  
  30. Entropy = 1.000000 bits per bit.
  31.  
  32. Optimum compression would reduce the size
  33. of this 638615552 bit file by 0 percent.
  34.  
  35. Chi square distribution for 638615552 samples is 1.45, and randomly
  36. would exceed this value 22.87 percent of the times.
  37.  
  38. Arithmetic mean value of data bits is 0.5000 (0.5 = random).
  39. Monte Carlo value for Pi is 3.141439619 (error 0.00 percent).
  40. Serial correlation coefficient is -0.000006 (totally uncorrelated = 0.0).
  41.  
  42.  
  43. cat /dev/null > test3 && ent -bc test3
  44. -----------------------------------------------------------------------------------------------
  45. Value Char Occurrences Fraction
  46.   0         74178560   1.000000
  47.  
  48. Total:      74178560   1.000000
  49.  
  50. Entropy = 0.000000 bits per bit.
  51.  
  52. Optimum compression would reduce the size
  53. of this 74178560 bit file by 100 percent.
  54.  
  55. Chi square distribution for 74178560 samples is 74178560.00, and randomly
  56. would exceed this value less than 0.01 percent of the times.
  57.  
  58. Arithmetic mean value of data bits is 0.0000 (0.5 = random).
  59. Monte Carlo value for Pi is 4.000000000 (error 27.32 percent).
  60. Serial correlation coefficient is undefined (all values equal!).
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top