Harmonic entropy: Difference between revisions

Wikispaces>FREEZE
No edit summary
PreImportHandFixes>Battaglia01
Mike - got local copy of external images
Line 58: Line 58:
This process can be summarized by the following picture, taken from [http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf William Sethares' paper on Harmonic Entropy]:
This process can be summarized by the following picture, taken from [http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf William Sethares' paper on Harmonic Entropy]:


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HarmonicEntropySethares.png]]
External image: http://i.imgur.com/aQlqRXz.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


Note the difference in terminology here - in this example, the f<span style="font-size: 90%; vertical-align: sub;">j+n</span> are the basis rationals, the r<span style="font-size: 12px; vertical-align: sub;">j+n</span> are the domains for each basis rational, and the bounds for each domain are the mediants between each f<span style="font-size: 12px; vertical-align: sub;">j+n </span>and its nearest neighbor. The probability assigned to each basis rational is then the area under the spreading function curve for each rational's domain. The entropy of this probability distribution is then the Harmonic Entropy for that dyad.
Note the difference in terminology here - in this example, the f<span style="font-size: 90%; vertical-align: sub;">j+n</span> are the basis rationals, the r<span style="font-size: 12px; vertical-align: sub;">j+n</span> are the domains for each basis rational, and the bounds for each domain are the mediants between each f<span style="font-size: 12px; vertical-align: sub;">j+n </span>and its nearest neighbor. The probability assigned to each basis rational is then the area under the spreading function curve for each rational's domain. The entropy of this probability distribution is then the Harmonic Entropy for that dyad.
Line 102: Line 97:
<span style="background-color: #ffffff;">This uses as a spreading function the Gaussian distribution with s=~17 cents (or a lin-frequency deviation of 1%). The basis set is all rationals of Tenney height less than 10000. This uses the complexity-normalization approach, and the complexity function is sqrt(n·d):</span>
<span style="background-color: #ffffff;">This uses as a spreading function the Gaussian distribution with s=~17 cents (or a lin-frequency deviation of 1%). The basis set is all rationals of Tenney height less than 10000. This uses the complexity-normalization approach, and the complexity function is sqrt(n·d):</span>


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Tenney_N_10000_s_17cents.png]]
External image: http://i.imgur.com/tNg7z1P.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


<span style="background-color: #ffffff;">This example uses the same spreading function and standard deviation, but this time the basis set is all rationals of Weil height less than 100. The complexity function here is max(n,d):</span>
<span style="background-color: #ffffff;">This example uses the same spreading function and standard deviation, but this time the basis set is all rationals of Weil height less than 100. The complexity function here is max(n,d):</span>


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Weil_N_100_s_17cents.png]]
External image: http://i.imgur.com/TZdU6eD.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


The following image compares the domain-integral and complexity-normalization approaches by overlaying the two curves on top of each other. In both cases, the spreading function is again a Gaussian with s=~17 cents, and the basis set is all those rationals with Tenney height ≤ 10000. It can be seen that the curves are extremely similar, and that the locations of the minima and maxima are largely preserved:
The following image (from Paul Erlich) compares the domain-integral and complexity-normalization approaches by overlaying the two curves on top of each other. In both cases, the spreading function is again a Gaussian with s=~17 cents, and the basis set is all those rationals with Tenney height ≤ 10000. It can be seen that the curves are extremely similar, and that the locations of the minima and maxima are largely preserved:


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Tenney_mediant_vs_sqrt_nd_Paul.png|800px]]
External image: http://i.imgur.com/5QPTsEP.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


<span style="font-size: 1.4em; line-height: 1.5;">'''Harmonic Rényi Entropy'''</span>
<span style="font-size: 1.4em; line-height: 1.5;">'''Harmonic Rényi Entropy'''</span>
Line 148: Line 128:
where |R| is the cardinality of the set of basis rationals. This assumes, in essence, an "infinitely dumb" auditory system which can do no better than picking a rational number from a uniform distribution completely at random. All dyads have the same Harmonic Hartley Entropy. The Hartley Entropy is sometimes called the "max-entropy," and is useful mainly as an upper bound on the other forms of entropy: all Rényi Entropies are always guaranteed to be less than the Hartley Entropy.
where |R| is the cardinality of the set of basis rationals. This assumes, in essence, an "infinitely dumb" auditory system which can do no better than picking a rational number from a uniform distribution completely at random. All dyads have the same Harmonic Hartley Entropy. The Hartley Entropy is sometimes called the "max-entropy," and is useful mainly as an upper bound on the other forms of entropy: all Rényi Entropies are always guaranteed to be less than the Hartley Entropy.


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HRE_a=0.png]]
External image: http://i.imgur.com/iVFpChm.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


''Harmonic Hartley Entropy (a=0) with the basis set all rationals with Tenney height ≤ 10000. Note that the choice of spreading function makes no difference in the end result at all.''
''Harmonic Hartley Entropy (a=0) with the basis set all rationals with Tenney height ≤ 10000. Note that the choice of spreading function makes no difference in the end result at all.''
Line 162: Line 137:
This is Paul's original Harmonic Entropy. Within the cryptographic analogy, this can be thought of as an auditory system which simply selects a rational at random from the incoming distribution, weighted via the distribution itself.
This is Paul's original Harmonic Entropy. Within the cryptographic analogy, this can be thought of as an auditory system which simply selects a rational at random from the incoming distribution, weighted via the distribution itself.


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Tenney_N_10000_s_17cents.png]]
External image: http://i.imgur.com/bghmli1.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


''Harmonic Shannon Entropy (a=1) with the basis set all rationals with Tenney height ≤ 10000, spreading function a Gaussian distribution with s=1% (~17 cents), and sqrt(n·d) complexity.''
''Harmonic Shannon Entropy (a=1) with the basis set all rationals with Tenney height ≤ 10000, spreading function a Gaussian distribution with s=1% (~17 cents), and sqrt(n·d) complexity.''
Line 176: Line 146:
where P<span style="font-size: 90%; vertical-align: sub;">d</span> and Q<span style="font-size: 90%; vertical-align: sub;">d</span> are independent and identically distributed random variables corresponding to the same dyad, and the collision entropy is the same as the negative log of the probability that the two variables produce the same outcome.
where P<span style="font-size: 90%; vertical-align: sub;">d</span> and Q<span style="font-size: 90%; vertical-align: sub;">d</span> are independent and identically distributed random variables corresponding to the same dyad, and the collision entropy is the same as the negative log of the probability that the two variables produce the same outcome.


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Tenney_N_10000_s_17cents_a=2.png]]
External image: http://i.imgur.com/LBzWxgY.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


''Harmonic Collision Entropy (a=2) with the basis set all rationals with Tenney height ≤ 10000, spreading function a Gaussian distribution with s=1% (~17 cents), and sqrt(n·d) complexity.''
''Harmonic Collision Entropy (a=2) with the basis set all rationals with Tenney height ≤ 10000, spreading function a Gaussian distribution with s=1% (~17 cents), and sqrt(n·d) complexity.''
Line 190: Line 155:
This is the min-entropy, which simply takes the negative log of the largest probability in the distribution. This can be thought of as representing the "strength" of the incoming dyad from being "deciphered" by a "best-case" auditory system. The name "min-entropy" reflects that the a=∞ case is guaranteed to be a lower bound among all Rényi entropies.
This is the min-entropy, which simply takes the negative log of the largest probability in the distribution. This can be thought of as representing the "strength" of the incoming dyad from being "deciphered" by a "best-case" auditory system. The name "min-entropy" reflects that the a=∞ case is guaranteed to be a lower bound among all Rényi entropies.


<div class='external-image-warning' style='background-color:#f8f9fa; border: 1px solid #eaecf0; padding-left: 0.5em; padding-right:0.5em; display:inline-block'>
[[File:HE_Tenney_N_10000_s_17cents_a=7.png]]
External image: http://i.imgur.com/u91Xkww.png<br>
: <small><b>WARNING</b>: MediaWiki doesn't have very good support for external images.</small><br>
: <small>Furthermore, since external images can break, we recommend that you replace the above with a local copy of the image.</small>
</div>
[[Category:IMPORTDEBUG - Change External Images]]


''Harmonic Rényi Entropy with a=7, with the high value of a being chosen to approximate min-entropy (a=''∞''). The basis set is still all rationals with Tenney height ≤ 10000, the spreading function a Gaussian distribution with s=1% (~17 cents), and the complexity function sqrt(n·d).''
''Harmonic Rényi Entropy with a=7, with the high value of a being chosen to approximate min-entropy (a=''∞''). The basis set is still all rationals with Tenney height ≤ 10000, the spreading function a Gaussian distribution with s=1% (~17 cents), and the complexity function sqrt(n·d).''
= =


=Convolution-Based Expression For Quickly Computing Renyi Entropy=
=Convolution-Based Expression For Quickly Computing Renyi Entropy=