Harmonic entropy: Difference between revisions
Wikispaces>mbattaglia1 **Imported revision 624289853 - Original comment: ** |
Wikispaces>mbattaglia1 **Imported revision 624289865 - Original comment: ** |
||
| Line 1: | Line 1: | ||
<h2>IMPORTED REVISION FROM WIKISPACES</h2> | <h2>IMPORTED REVISION FROM WIKISPACES</h2> | ||
This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br> | This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br> | ||
: This revision was by author [[User:mbattaglia1|mbattaglia1]] and made on <tt>2017-12-28 22: | : This revision was by author [[User:mbattaglia1|mbattaglia1]] and made on <tt>2017-12-28 22:50:29 UTC</tt>.<br> | ||
: The original revision id was <tt> | : The original revision id was <tt>624289865</tt>.<br> | ||
: The revision comment was: <tt></tt><br> | : The revision comment was: <tt></tt><br> | ||
The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br> | The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br> | ||
| Line 304: | Line 304: | ||
where the expression | where the expression | ||
[[math]]\left[S \ast K\right]^a(-d)[[math]] represents the convolution of S and K, taken to the a'th power. | [[math]] | ||
\left[S \ast K\right]^a(-d) | |||
[[math]] | |||
represents the convolution of S and K, taken to the a'th power. | |||
We have succeeded in representing Harmonic Renyi Entropy in simple terms of two convolution products, each of which can be computed in O(N log N) time. | We have succeeded in representing Harmonic Renyi Entropy in simple terms of two convolution products, each of which can be computed in O(N log N) time. | ||
| Line 319: | Line 323: | ||
\newcommand{\cent}{\text{¢}}&lt;br/&gt;[[math]] | \newcommand{\cent}{\text{¢}}&lt;br/&gt;[[math]] | ||
--><script type="math/tex">\newcommand{\cent}{\text{¢}}</script><!-- ws:end:WikiTextMathRule:0 --><br /> | --><script type="math/tex">\newcommand{\cent}{\text{¢}}</script><!-- ws:end:WikiTextMathRule:0 --><br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:35:&lt;h1&gt; --><h1 id="toc0"><a name="Introduction"></a><!-- ws:end:WikiTextHeadingRule:35 -->Introduction</h1> | ||
<!-- ws:start:WikiTextTocRule: | <!-- ws:start:WikiTextTocRule:69:&lt;img id=&quot;wikitext@@toc@@normal&quot; class=&quot;WikiMedia WikiMediaToc&quot; title=&quot;Table of Contents&quot; src=&quot;/site/embedthumbnail/toc/normal?w=225&amp;h=100&quot;/&gt; --><div id="toc"><h1 class="nopad">Table of Contents</h1><!-- ws:end:WikiTextTocRule:69 --><!-- ws:start:WikiTextTocRule:70: --><div style="margin-left: 1em;"><a href="#Introduction">Introduction</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:70 --><!-- ws:start:WikiTextTocRule:71: --><div style="margin-left: 1em;"><a href="#Background">Background</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:71 --><!-- ws:start:WikiTextTocRule:72: --><div style="margin-left: 1em;"><a href="#Model">Model</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:72 --><!-- ws:start:WikiTextTocRule:73: --><div style="margin-left: 1em;"><a href="#Domain-Integral Probabilities">Domain-Integral Probabilities</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:73 --><!-- ws:start:WikiTextTocRule:74: --><div style="margin-left: 1em;"><a href="#Complexity-Normalization Probabilities">Complexity-Normalization Probabilities</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:74 --><!-- ws:start:WikiTextTocRule:75: --><div style="margin-left: 1em;"><a href="#Examples">Examples</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:75 --><!-- ws:start:WikiTextTocRule:76: --><div style="margin-left: 3em;"><a href="#Examples--a=0: Harmonic Hartley Entropy">a=0: Harmonic Hartley Entropy</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:76 --><!-- ws:start:WikiTextTocRule:77: --><div style="margin-left: 3em;"><a href="#Examples--a=1: Harmonic Shannon Entropy (Harmonic Entropy)">a=1: Harmonic Shannon Entropy (Harmonic Entropy)</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:77 --><!-- ws:start:WikiTextTocRule:78: --><div style="margin-left: 3em;"><a href="#Examples--a=2: Harmonic Collision Entropy">a=2: Harmonic Collision Entropy</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:78 --><!-- ws:start:WikiTextTocRule:79: --><div style="margin-left: 3em;"><a href="#Examples--a=∞: Harmonic Min-Entropy">a=∞: Harmonic Min-Entropy</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:79 --><!-- ws:start:WikiTextTocRule:80: --><div style="margin-left: 1em;"><a href="#toc10"> </a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:80 --><!-- ws:start:WikiTextTocRule:81: --><div style="margin-left: 1em;"><a href="#Convolution-Based Expression For Quickly Computing Renyi Entropy">Convolution-Based Expression For Quickly Computing Renyi Entropy</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:81 --><!-- ws:start:WikiTextTocRule:82: --><div style="margin-left: 3em;"><a href="#Convolution-Based Expression For Quickly Computing Renyi Entropy--Preliminaries">Preliminaries</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:82 --><!-- ws:start:WikiTextTocRule:83: --><div style="margin-left: 3em;"><a href="#Convolution-Based Expression For Quickly Computing Renyi Entropy--Convolution product for ψ(d)">Convolution product for ψ(d)</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:83 --><!-- ws:start:WikiTextTocRule:84: --><div style="margin-left: 3em;"><a href="#Convolution-Based Expression For Quickly Computing Renyi Entropy--Convolution product for ρa(d)">Convolution product for ρa(d)</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:84 --><!-- ws:start:WikiTextTocRule:85: --><div style="margin-left: 3em;"><a href="#Convolution-Based Expression For Quickly Computing Renyi Entropy--Round-up">Round-up</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:85 --><!-- ws:start:WikiTextTocRule:86: --><div style="margin-left: 1em;"><a href="#References">References</a></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:86 --><!-- ws:start:WikiTextTocRule:87: --></div> | ||
<!-- ws:end:WikiTextTocRule: | <!-- ws:end:WikiTextTocRule:87 --><strong>Harmonic Entropy</strong>, sometimes abbreviated as &quot;HE&quot;, is a simple model to quantify the extent to which musical chords exhibit various psychoacoustic effects, lumped together in a single construct called psychoacoustic <strong>concordance</strong>. It was invented by Paul Erlich and developed extensively on the Yahoo! tuning and harmonic_entropy lists. Various later contributions to the model have been made by Steve Martin, Mike Battaglia, Keenan Pepper, and others.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:37:&lt;h1&gt; --><h1 id="toc1"><a name="Background"></a><!-- ws:end:WikiTextHeadingRule:37 -->Background</h1> | ||
The general workings of the human auditory system lead to a plethora of well-documented and sonically interesting phenomena that can occur when a musical chord is played:<br /> | The general workings of the human auditory system lead to a plethora of well-documented and sonically interesting phenomena that can occur when a musical chord is played:<br /> | ||
<ul><li>The perception of partial <strong>timbral fusion</strong> of the chord into one complex sound</li><li>The appearance of a <strong>virtual fundamental</strong> pitch in the bass</li><li>Critical band effects, such as timbral <strong>beatlessness</strong>, compared to mistunings of the chord in the surrounding area</li><li>The appearance of a quick fluttering effect sometimes known as <strong>periodicity buzz</strong></li></ul><br /> | <ul><li>The perception of partial <strong>timbral fusion</strong> of the chord into one complex sound</li><li>The appearance of a <strong>virtual fundamental</strong> pitch in the bass</li><li>Critical band effects, such as timbral <strong>beatlessness</strong>, compared to mistunings of the chord in the surrounding area</li><li>The appearance of a quick fluttering effect sometimes known as <strong>periodicity buzz</strong></li></ul><br /> | ||
| Line 356: | Line 360: | ||
Concordance has often been confused with actual musical consonance, an unfortunate fact made more common by the<span style="line-height: 1.5;"> psychoacoustics literature under the unfortunate name </span><strong><span style="line-height: 1.5;">sensory consonance</span></strong><span style="line-height: 1.5;">, most often used to refer to phenomena related to roughness and beatlessness specifically. This is not to be confused with the more familiar construct of tonal stability, typically just called &quot;consonance&quot; in Western common practice music theory and sometimes clarified as &quot;musical consonance&quot; in the music cognition literature. To make matters worse, the literature has also at times referred to concordance -- and not tonal stability -- as </span><strong><span style="line-height: 1.5;">tonal consonance</span></strong><span style="line-height: 1.5;">, often referring to phenomena related to virtual pitch integration, creating a complete terminological mess. As a result, the term &quot;consonance&quot; has been completely avoided in this article.</span><br /> | Concordance has often been confused with actual musical consonance, an unfortunate fact made more common by the<span style="line-height: 1.5;"> psychoacoustics literature under the unfortunate name </span><strong><span style="line-height: 1.5;">sensory consonance</span></strong><span style="line-height: 1.5;">, most often used to refer to phenomena related to roughness and beatlessness specifically. This is not to be confused with the more familiar construct of tonal stability, typically just called &quot;consonance&quot; in Western common practice music theory and sometimes clarified as &quot;musical consonance&quot; in the music cognition literature. To make matters worse, the literature has also at times referred to concordance -- and not tonal stability -- as </span><strong><span style="line-height: 1.5;">tonal consonance</span></strong><span style="line-height: 1.5;">, often referring to phenomena related to virtual pitch integration, creating a complete terminological mess. As a result, the term &quot;consonance&quot; has been completely avoided in this article.</span><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:39:&lt;h1&gt; --><h1 id="toc2"><a name="Model"></a><!-- ws:end:WikiTextHeadingRule:39 -->Model</h1> | ||
The original Harmonic Entropy model limited itself to working with dyads. More recently, work by Steve Martin and others has extended this basic idea to higher-cardinality chords. This article will concern itself with dyads, as the dyadic case is still the most well-developed, and many of the ideas extend naturally to larger chords without need for much exposition.<br /> | The original Harmonic Entropy model limited itself to working with dyads. More recently, work by Steve Martin and others has extended this basic idea to higher-cardinality chords. This article will concern itself with dyads, as the dyadic case is still the most well-developed, and many of the ideas extend naturally to larger chords without need for much exposition.<br /> | ||
<br /> | <br /> | ||
| Line 385: | Line 389: | ||
Given a spreading function and set of basis rationals, there are two different procedures commonly used to assign probabilities to each rational. The first, the <strong>domain-integral approach</strong>, works for arbitrary nowhere dense sets of rationals without any further free parameters. The second, the <strong>complexity-normalization approach</strong>, has nice mathematical properties which sometimes make it easier to compute and which may lead to generalizations to infinite sets of rationals which are sometimes dense in the reals. It is conjectured that there are certain important limiting situations where the two converge; both are described in detail below.<br /> | Given a spreading function and set of basis rationals, there are two different procedures commonly used to assign probabilities to each rational. The first, the <strong>domain-integral approach</strong>, works for arbitrary nowhere dense sets of rationals without any further free parameters. The second, the <strong>complexity-normalization approach</strong>, has nice mathematical properties which sometimes make it easier to compute and which may lead to generalizations to infinite sets of rationals which are sometimes dense in the reals. It is conjectured that there are certain important limiting situations where the two converge; both are described in detail below.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:41:&lt;h1&gt; --><h1 id="toc3"><a name="Domain-Integral Probabilities"></a><!-- ws:end:WikiTextHeadingRule:41 -->Domain-Integral Probabilities</h1> | ||
For sets of basis rationals which are nowhere dense, the log-frequency spectrum can be divided up into <strong>domains</strong> assigned to the basis rationals. Each rational is assigned a domain with lower bound equal to the mediant of itself and its nearest lower neighbor, and likewise with upper bound equal to the mediant of itself and its nearest upper neighbor. If no such neighbor exists, ±∞ is used instead. Mathematically, this can be represented via the following expression:<br /> | For sets of basis rationals which are nowhere dense, the log-frequency spectrum can be divided up into <strong>domains</strong> assigned to the basis rationals. Each rational is assigned a domain with lower bound equal to the mediant of itself and its nearest lower neighbor, and likewise with upper bound equal to the mediant of itself and its nearest upper neighbor. If no such neighbor exists, ±∞ is used instead. Mathematically, this can be represented via the following expression:<br /> | ||
<br /> | <br /> | ||
| Line 397: | Line 401: | ||
This process can be summarized by the following picture, taken from <a class="wiki_link_ext" href="http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf" rel="nofollow" target="_blank">William Sethares' paper on Harmonic Entropy</a>:<br /> | This process can be summarized by the following picture, taken from <a class="wiki_link_ext" href="http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf" rel="nofollow" target="_blank">William Sethares' paper on Harmonic Entropy</a>:<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:110:&lt;img src=&quot;http://i.imgur.com/aQlqRXz.png&quot; alt=&quot;&quot; title=&quot;&quot; /&gt; --><img src="http://i.imgur.com/aQlqRXz.png" alt="external image aQlqRXz.png" title="external image aQlqRXz.png" /><!-- ws:end:WikiTextRemoteImageRule:110 --><br /> | ||
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.<br /> | 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.<br /> | ||
<br /> | <br /> | ||
In the case where the set of basis rationals consists of a finite set bounded by Tenney or Weil height, the resulting set of widths is conjectured to have interesting mathematical properties, leading to mathematically nice conceptual simplifications of the model. These simplifications are explained below.<br /> | In the case where the set of basis rationals consists of a finite set bounded by Tenney or Weil height, the resulting set of widths is conjectured to have interesting mathematical properties, leading to mathematically nice conceptual simplifications of the model. These simplifications are explained below.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:43:&lt;h1&gt; --><h1 id="toc4"><a name="Complexity-Normalization Probabilities"></a><!-- ws:end:WikiTextHeadingRule:43 -->Complexity-Normalization Probabilities</h1> | ||
It has been noted empirically by Paul Erlich that, given all those rationals with Tenney height under some cutoff N as a basis set, that the domain widths for rationals sufficiently far from the cutoff seem to be proportional to 1/sqrt(nd). While it's still an open conjecture that this pattern holds for arbitrarily large N, the assumption is sometimes made that this is the case, and hence that for these basis rational sets, 1/sqrt(nd) &quot;approximations&quot; to the width are sufficient to estimate domain-integral Harmonic Entropy. This modifies the expression for the p<span style="font-size: 12px; vertical-align: sub;">d</span>(b) as follows, noting that for the moment the &quot;probabilities&quot; won't sum to 1:<br /> | It has been noted empirically by Paul Erlich that, given all those rationals with Tenney height under some cutoff N as a basis set, that the domain widths for rationals sufficiently far from the cutoff seem to be proportional to 1/sqrt(nd). While it's still an open conjecture that this pattern holds for arbitrarily large N, the assumption is sometimes made that this is the case, and hence that for these basis rational sets, 1/sqrt(nd) &quot;approximations&quot; to the width are sufficient to estimate domain-integral Harmonic Entropy. This modifies the expression for the p<span style="font-size: 12px; vertical-align: sub;">d</span>(b) as follows, noting that for the moment the &quot;probabilities&quot; won't sum to 1:<br /> | ||
<br /> | <br /> | ||
| Line 441: | Line 445: | ||
This approach to assigning probabilities to basis rationals is useful because it hypothetically makes it possible to consider the HE of sets of rationals which are dense in the reals, or even the entire set of positive rationals ℚ<span style="font-size: 80%; vertical-align: super;">+</span>, although the best way to do this is a subject of ongoing research.<br /> | This approach to assigning probabilities to basis rationals is useful because it hypothetically makes it possible to consider the HE of sets of rationals which are dense in the reals, or even the entire set of positive rationals ℚ<span style="font-size: 80%; vertical-align: super;">+</span>, although the best way to do this is a subject of ongoing research.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:45:&lt;h1&gt; --><h1 id="toc5"><a name="Examples"></a><!-- ws:end:WikiTextHeadingRule:45 -->Examples</h1> | ||
<br /> | <br /> | ||
<span style="background-color: #ffffff;">In all of these examples, the x-axis represents the width in cents of the dyad, and the y-axis represents </span><em><span style="background-color: #ffffff;">discordance</span></em> rather than concordance<span style="background-color: #ffffff;">, measured in nats of Shannon entropy. Note that by convention, the value for s is typically expressed as a percentage of frequency deviation; this can be converted to cents via </span><br /> | <span style="background-color: #ffffff;">In all of these examples, the x-axis represents the width in cents of the dyad, and the y-axis represents </span><em><span style="background-color: #ffffff;">discordance</span></em> rather than concordance<span style="background-color: #ffffff;">, measured in nats of Shannon entropy. Note that by convention, the value for s is typically expressed as a percentage of frequency deviation; this can be converted to cents via </span><br /> | ||
| Line 447: | Line 451: | ||
<br /> | <br /> | ||
<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><br /> | <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><br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:111:&lt;img src=&quot;http://i.imgur.com/tNg7z1P.png&quot; alt=&quot;&quot; title=&quot;&quot; /&gt; --><img src="http://i.imgur.com/tNg7z1P.png" alt="external image tNg7z1P.png" title="external image tNg7z1P.png" /><!-- ws:end:WikiTextRemoteImageRule:111 --><br /> | ||
<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><br /> | <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><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:112:&lt;img src=&quot;http://i.imgur.com/TZdU6eD.png&quot; alt=&quot;&quot; title=&quot;&quot; /&gt; --><img src="http://i.imgur.com/TZdU6eD.png" alt="external image TZdU6eD.png" title="external image TZdU6eD.png" /><!-- ws:end:WikiTextRemoteImageRule:112 --><br /> | ||
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:<br /> | 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:<br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:113:&lt;img src=&quot;http://i.imgur.com/5QPTsEP.png&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;height: 600px; width: 800px;&quot; /&gt; --><img src="http://i.imgur.com/5QPTsEP.png" alt="external image 5QPTsEP.png" title="external image 5QPTsEP.png" style="height: 600px; width: 800px;" /><!-- ws:end:WikiTextRemoteImageRule:113 --><br /> | ||
<span style="font-size: 1.4em; line-height: 1.5;"><strong>Harmonic Rényi Entropy</strong></span><br /> | <span style="font-size: 1.4em; line-height: 1.5;"><strong>Harmonic Rényi Entropy</strong></span><br /> | ||
An extension to the base Harmonic Entropy model, proposed by Mike Battaglia, is to generalize the use of <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Entropy_(information_theory)" rel="nofollow" target="_blank">Shannon entropy</a> by replacing it instead with <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/R%C3%A9nyi_entropy" rel="nofollow" target="_blank">Rényi entropy</a>, a <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Q-analog" rel="nofollow" target="_blank">q-analog</a> of Shannon's original entropy. The <strong>Harmonic Rényi Entropy of order a</strong> of an incoming dyad can be defined as follows:<br /> | An extension to the base Harmonic Entropy model, proposed by Mike Battaglia, is to generalize the use of <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Entropy_(information_theory)" rel="nofollow" target="_blank">Shannon entropy</a> by replacing it instead with <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/R%C3%A9nyi_entropy" rel="nofollow" target="_blank">Rényi entropy</a>, a <a class="wiki_link_ext" href="http://en.wikipedia.org/wiki/Q-analog" rel="nofollow" target="_blank">q-analog</a> of Shannon's original entropy. The <strong>Harmonic Rényi Entropy of order a</strong> of an incoming dyad can be defined as follows:<br /> | ||
| Line 471: | Line 475: | ||
Certain values of <em>a</em> reduce to simpler expressions and have special names.<br /> | Certain values of <em>a</em> reduce to simpler expressions and have special names.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:47:&lt;h3&gt; --><h3 id="toc6"><a name="Examples--a=0: Harmonic Hartley Entropy"></a><!-- ws:end:WikiTextHeadingRule:47 -->a=0: Harmonic Hartley Entropy</h3> | ||
<!-- ws:start:WikiTextMathRule:9: | <!-- ws:start:WikiTextMathRule:9: | ||
[[math]]&lt;br/&gt; | [[math]]&lt;br/&gt; | ||
| Line 477: | Line 481: | ||
--><script type="math/tex">H(d) = \log |R|</script><!-- ws:end:WikiTextMathRule:9 --><br /> | --><script type="math/tex">H(d) = \log |R|</script><!-- ws:end:WikiTextMathRule:9 --><br /> | ||
where |R| is the cardinality of the set of basis rationals. This assumes, in essence, an &quot;infinitely dumb&quot; 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 &quot;max-entropy,&quot; 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.<br /> | where |R| is the cardinality of the set of basis rationals. This assumes, in essence, an &quot;infinitely dumb&quot; 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 &quot;max-entropy,&quot; 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.<br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:114:&lt;img src=&quot;http://i.imgur.com/iVFpChm.png&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;height: 281px; width: 560px;&quot; /&gt; --><img src="http://i.imgur.com/iVFpChm.png" alt="external image iVFpChm.png" title="external image iVFpChm.png" style="height: 281px; width: 560px;" /><!-- ws:end:WikiTextRemoteImageRule:114 --><br /> | ||
<em>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.</em><br /> | <em>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.</em><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:49:&lt;h3&gt; --><h3 id="toc7"><a name="Examples--a=1: Harmonic Shannon Entropy (Harmonic Entropy)"></a><!-- ws:end:WikiTextHeadingRule:49 -->a=1: Harmonic Shannon Entropy (Harmonic Entropy)</h3> | ||
<!-- ws:start:WikiTextMathRule:10: | <!-- ws:start:WikiTextMathRule:10: | ||
[[math]]&lt;br/&gt; | [[math]]&lt;br/&gt; | ||
| Line 486: | Line 490: | ||
--><script type="math/tex">H(d) = -\sum_{b} p_d(b) \log p_d(b)</script><!-- ws:end:WikiTextMathRule:10 --><br /> | --><script type="math/tex">H(d) = -\sum_{b} p_d(b) \log p_d(b)</script><!-- ws:end:WikiTextMathRule:10 --><br /> | ||
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.<br /> | 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.<br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:115:&lt;img src=&quot;http://i.imgur.com/bghmli1.png&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;height: 278px; width: 560px;&quot; /&gt; --><img src="http://i.imgur.com/bghmli1.png" alt="external image bghmli1.png" title="external image bghmli1.png" style="height: 278px; width: 560px;" /><!-- ws:end:WikiTextRemoteImageRule:115 --><br /> | ||
<em>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.</em><br /> | <em>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.</em><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:51:&lt;h3&gt; --><h3 id="toc8"><a name="Examples--a=2: Harmonic Collision Entropy"></a><!-- ws:end:WikiTextHeadingRule:51 -->a=2: Harmonic Collision Entropy</h3> | ||
<!-- ws:start:WikiTextMathRule:11: | <!-- ws:start:WikiTextMathRule:11: | ||
[[math]]&lt;br/&gt; | [[math]]&lt;br/&gt; | ||
| Line 495: | Line 499: | ||
--><script type="math/tex">H(d) = -\log \sum_b p_d(b)^2 = -log (P_d = Q_d)</script><!-- ws:end:WikiTextMathRule:11 --><br /> | --><script type="math/tex">H(d) = -\log \sum_b p_d(b)^2 = -log (P_d = Q_d)</script><!-- ws:end:WikiTextMathRule:11 --><br /> | ||
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.<br /> | 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.<br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:116:&lt;img src=&quot;http://i.imgur.com/LBzWxgY.png&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;height: 278px; width: 560px;&quot; /&gt; --><img src="http://i.imgur.com/LBzWxgY.png" alt="external image LBzWxgY.png" title="external image LBzWxgY.png" style="height: 278px; width: 560px;" /><!-- ws:end:WikiTextRemoteImageRule:116 --><br /> | ||
<em>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.</em><br /> | <em>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.</em><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:53:&lt;h3&gt; --><h3 id="toc9"><a name="Examples--a=∞: Harmonic Min-Entropy"></a><!-- ws:end:WikiTextHeadingRule:53 -->a=∞: Harmonic Min-Entropy</h3> | ||
<!-- ws:start:WikiTextMathRule:12: | <!-- ws:start:WikiTextMathRule:12: | ||
[[math]]&lt;br/&gt; | [[math]]&lt;br/&gt; | ||
| Line 504: | Line 508: | ||
--><script type="math/tex">-\log \max_b p_d(b)</script><!-- ws:end:WikiTextMathRule:12 --><br /> | --><script type="math/tex">-\log \max_b p_d(b)</script><!-- ws:end:WikiTextMathRule:12 --><br /> | ||
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 &quot;strength&quot; of the incoming dyad from being &quot;deciphered&quot; by a &quot;best-case&quot; auditory system. The name &quot;min-entropy&quot; reflects that the a=∞ case is guaranteed to be a lower bound among all Rényi entropies.<br /> | 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 &quot;strength&quot; of the incoming dyad from being &quot;deciphered&quot; by a &quot;best-case&quot; auditory system. The name &quot;min-entropy&quot; reflects that the a=∞ case is guaranteed to be a lower bound among all Rényi entropies.<br /> | ||
<!-- ws:start:WikiTextRemoteImageRule: | <!-- ws:start:WikiTextRemoteImageRule:117:&lt;img src=&quot;http://i.imgur.com/u91Xkww.png&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;height: 281px; width: 560px;&quot; /&gt; --><img src="http://i.imgur.com/u91Xkww.png" alt="external image u91Xkww.png" title="external image u91Xkww.png" style="height: 281px; width: 560px;" /><!-- ws:end:WikiTextRemoteImageRule:117 --><br /> | ||
<em>Harmonic Rényi Entropy with a=7, with the high value of a being chosen to approximate min-entropy (a=</em>∞<em>). 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).</em><br /> | <em>Harmonic Rényi Entropy with a=7, with the high value of a being chosen to approximate min-entropy (a=</em>∞<em>). 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).</em><br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:55:&lt;h1&gt; --><h1 id="toc10"><!-- ws:end:WikiTextHeadingRule:55 --> </h1> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:57:&lt;h1&gt; --><h1 id="toc11"><a name="Convolution-Based Expression For Quickly Computing Renyi Entropy"></a><!-- ws:end:WikiTextHeadingRule:57 -->Convolution-Based Expression For Quickly Computing Renyi Entropy</h1> | ||
Below is given an derivation that expresses Harmonic Renyi Entropy in terms of two simpler functions, each of which is a convolution product and hence can be computed quickly using the Fast Fourier Transform. The below derivation depends on the use of complexity-normalization probabilities, although it may be possible to extend to domain-integral probabilities instead.<br /> | Below is given an derivation that expresses Harmonic Renyi Entropy in terms of two simpler functions, each of which is a convolution product and hence can be computed quickly using the Fast Fourier Transform. The below derivation depends on the use of complexity-normalization probabilities, although it may be possible to extend to domain-integral probabilities instead.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:59:&lt;h3&gt; --><h3 id="toc12"><a name="Convolution-Based Expression For Quickly Computing Renyi Entropy--Preliminaries"></a><!-- ws:end:WikiTextHeadingRule:59 -->Preliminaries</h3> | ||
The Harmonic Renyi Entropy is defined as<br /> | The Harmonic Renyi Entropy is defined as<br /> | ||
<br /> | <br /> | ||
| Line 563: | Line 567: | ||
We thus reduce the term inside the logarithm to the quotient of the functions ρ<span style="vertical-align: sub;">a</span>(d) and ψ(d)<span style="vertical-align: super;">a</span>. Our aim is now to express each of these two functions in terms of a convolution product.<br /> | We thus reduce the term inside the logarithm to the quotient of the functions ρ<span style="vertical-align: sub;">a</span>(d) and ψ(d)<span style="vertical-align: super;">a</span>. Our aim is now to express each of these two functions in terms of a convolution product.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:61:&lt;h3&gt; --><h3 id="toc13"><a name="Convolution-Based Expression For Quickly Computing Renyi Entropy--Convolution product for ψ(d)"></a><!-- ws:end:WikiTextHeadingRule:61 -->Convolution product for ψ(d)</h3> | ||
ψ(d), the normalization function, is written as follows:<br /> | ψ(d), the normalization function, is written as follows:<br /> | ||
<br /> | <br /> | ||
| Line 607: | Line 611: | ||
--><script type="math/tex">\psi(d) = \left[S \ast K\right](-d)</script><!-- ws:end:WikiTextMathRule:26 --><br /> | --><script type="math/tex">\psi(d) = \left[S \ast K\right](-d)</script><!-- ws:end:WikiTextMathRule:26 --><br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:63:&lt;h3&gt; --><h3 id="toc14"><a name="Convolution-Based Expression For Quickly Computing Renyi Entropy--Convolution product for ρa(d)"></a><!-- ws:end:WikiTextHeadingRule:63 -->Convolution product for ρ<span style="vertical-align: sub;">a</span>(d)</h3> | ||
The derivation for ρ<span style="vertical-align: sub;">a</span>(d) proceeds similarly. Recall the function is written as follows:<br /> | The derivation for ρ<span style="vertical-align: sub;">a</span>(d) proceeds similarly. Recall the function is written as follows:<br /> | ||
<!-- ws:start:WikiTextMathRule:27: | <!-- ws:start:WikiTextMathRule:27: | ||
| Line 647: | Line 651: | ||
Note that the function K<span style="vertical-align: super;">a</span>(d) involves a slight abuse of notation, as it is not literally K(d) taken to the a'th power (as the square of the delta distribution is undefined). Rather, we are simply taking the weights of each delta distribution in the summation to the a'th power.<br /> | Note that the function K<span style="vertical-align: super;">a</span>(d) involves a slight abuse of notation, as it is not literally K(d) taken to the a'th power (as the square of the delta distribution is undefined). Rather, we are simply taking the weights of each delta distribution in the summation to the a'th power.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:65:&lt;h3&gt; --><h3 id="toc15"><a name="Convolution-Based Expression For Quickly Computing Renyi Entropy--Round-up"></a><!-- ws:end:WikiTextHeadingRule:65 -->Round-up</h3> | ||
Taking all of this, we can rewrite the original expression for Harmonic Renyi Entropy as follows:<br /> | Taking all of this, we can rewrite the original expression for Harmonic Renyi Entropy as follows:<br /> | ||
<!-- ws:start:WikiTextMathRule:33: | <!-- ws:start:WikiTextMathRule:33: | ||
| Line 656: | Line 660: | ||
where the expression<br /> | where the expression<br /> | ||
<br /> | <br /> | ||
<a | <!-- ws:start:WikiTextMathRule:34: | ||
[[math]]&lt;br/&gt; | |||
\left[S \ast K\right]^a(-d)&lt;br/&gt;[[math]] | |||
--><script type="math/tex">\left[S \ast K\right]^a(-d)</script><!-- ws:end:WikiTextMathRule:34 --><br /> | |||
<br /> | |||
represents the convolution of S and K, taken to the a'th power.<br /> | |||
<br /> | <br /> | ||
We have succeeded in representing Harmonic Renyi Entropy in simple terms of two convolution products, each of which can be computed in O(N log N) time.<br /> | We have succeeded in representing Harmonic Renyi Entropy in simple terms of two convolution products, each of which can be computed in O(N log N) time.<br /> | ||
<br /> | <br /> | ||
<!-- ws:start:WikiTextHeadingRule: | <!-- ws:start:WikiTextHeadingRule:67:&lt;h1&gt; --><h1 id="toc16"><a name="References"></a><!-- ws:end:WikiTextHeadingRule:67 -->References</h1> | ||
<a class="wiki_link_ext" href="http://www.webcitation.org/60qOlJVFS" rel="nofollow">Paul Erlich article</a><br /> | <a class="wiki_link_ext" href="http://www.webcitation.org/60qOlJVFS" rel="nofollow">Paul Erlich article</a><br /> | ||
<a class="wiki_link_ext" href="http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf" rel="nofollow">William Sethares article</a><br /> | <a class="wiki_link_ext" href="http://sethares.engr.wisc.edu/paperspdf/HarmonicEntropy.pdf" rel="nofollow">William Sethares article</a><br /> | ||