Word Entropy
#4
There's a fundamental problem with word-h2.

If a text is made up of 26 different characters , then there are 676 different possible character pairs. The entropy is computed as a function of the 676 different probabilities, effectively by computing the frequency.
The longer the text, the more representative the frequencies become.

For word entropy, the number of different words keeps increasing. The number of possible word pairs actually grows faster than the text length, so in a way the sampling gets worse as the text length increases.

Edit:

One can do an estimate. Assume that a text consists of N+1 words. Then there are N different word pairs. Let's assume that all pairs are different. In that case each of the N pairs has a frequency of 1 / N, and the absolute word H2 would be 2log(N). (Base-2 logarithm).

For the computation of h2 one would need to know H1. For a text following the Zipf law, this has been estimated in a table provided here:
You are not allowed to view links. Register or Login to view.

The h2 can then be estimated (for this particular case) as the difference between the two columns H(max) - H(zipf), and for text lenghts of 5000 to 50,000 words it would run from 3.3 to 4.7 .  (All barring simple mistakes).
Reply


Messages In This Thread
Word Entropy - by Koen G - 13-09-2019, 09:52 PM
RE: Word Entropy - by Koen G - 13-09-2019, 10:17 PM
RE: Word Entropy - by Anton - 14-09-2019, 12:47 AM
RE: Word Entropy - by nablator - 14-09-2019, 08:51 AM
RE: Word Entropy - by Anton - 14-09-2019, 01:01 PM
RE: Word Entropy - by RenegadeHealer - 14-09-2019, 02:22 PM
RE: Word Entropy - by Anton - 14-09-2019, 04:21 PM
RE: Word Entropy - by ReneZ - 15-09-2019, 04:52 AM
RE: Word Entropy - by ReneZ - 14-09-2019, 07:23 AM
RE: Word Entropy - by Koen G - 14-09-2019, 07:31 AM
RE: Word Entropy - by MarcoP - 14-09-2019, 09:02 AM
RE: Word Entropy - by Anton - 14-09-2019, 12:38 PM
RE: Word Entropy - by MarcoP - 14-09-2019, 08:50 AM
RE: Word Entropy - by Anton - 14-09-2019, 12:49 PM
RE: Word Entropy - by Koen G - 14-09-2019, 10:17 AM
RE: Word Entropy - by ReneZ - 14-09-2019, 10:19 AM
RE: Word Entropy - by Koen G - 14-09-2019, 11:41 AM
RE: Word Entropy - by Koen G - 14-09-2019, 01:23 PM
RE: Word Entropy - by Anton - 14-09-2019, 01:35 PM
RE: Word Entropy - by ReneZ - 14-09-2019, 02:16 PM
RE: Word Entropy - by Koen G - 14-09-2019, 02:36 PM
RE: Word Entropy - by ReneZ - 14-09-2019, 03:04 PM
RE: Word Entropy - by Koen G - 14-09-2019, 03:24 PM
RE: Word Entropy - by Koen G - 14-09-2019, 03:40 PM
RE: Word Entropy - by Anton - 14-09-2019, 04:26 PM
RE: Word Entropy - by Koen G - 14-09-2019, 04:27 PM
RE: Word Entropy - by Anton - 14-09-2019, 04:35 PM
RE: Word Entropy - by ReneZ - 14-09-2019, 04:29 PM
RE: Word Entropy - by Koen G - 14-09-2019, 05:14 PM
RE: Word Entropy - by Anton - 14-09-2019, 05:35 PM
RE: Word Entropy - by Koen G - 14-09-2019, 05:51 PM
RE: Word Entropy - by ReneZ - 14-09-2019, 05:16 PM
RE: Word Entropy - by Koen G - 14-09-2019, 08:20 PM
RE: Word Entropy - by Anton - 14-09-2019, 08:28 PM
RE: Word Entropy - by Koen G - 14-09-2019, 09:09 PM
RE: Word Entropy - by Anton - 14-09-2019, 09:19 PM
RE: Word Entropy - by Koen G - 14-09-2019, 09:40 PM
RE: Word Entropy - by Anton - 14-09-2019, 11:46 PM
RE: Word Entropy - by Koen G - 14-09-2019, 10:29 PM
RE: Word Entropy - by ReneZ - 15-09-2019, 04:37 AM
RE: Word Entropy - by Anton - 15-09-2019, 10:45 AM
RE: Word Entropy - by Koen G - 15-09-2019, 10:54 AM
RE: Word Entropy - by ReneZ - 15-09-2019, 11:11 AM
RE: Word Entropy - by Anton - 15-09-2019, 11:05 AM
RE: Word Entropy - by Anton - 15-09-2019, 11:39 AM
RE: Word Entropy - by ReneZ - 15-09-2019, 11:58 AM
RE: Word Entropy - by Koen G - 15-09-2019, 12:07 PM
RE: Word Entropy - by Koen G - 15-09-2019, 08:10 PM
RE: Word Entropy - by Koen G - 15-09-2019, 09:09 PM
RE: Word Entropy - by RenegadeHealer - 15-09-2019, 09:21 PM
RE: Word Entropy - by Monica Yokubinas - 15-09-2019, 11:09 PM
RE: Word Entropy - by Koen G - 15-09-2019, 11:19 PM
RE: Word Entropy - by Monica Yokubinas - 16-09-2019, 12:14 AM
RE: Word Entropy - by ReneZ - 16-09-2019, 03:52 AM
RE: Word Entropy - by Koen G - 16-09-2019, 06:07 AM
RE: Word Entropy - by ReneZ - 16-09-2019, 07:15 AM
RE: Word Entropy - by Koen G - 16-09-2019, 07:31 AM
RE: Word Entropy - by ReneZ - 16-09-2019, 08:37 AM
RE: Word Entropy - by Koen G - 16-09-2019, 09:01 AM
RE: Word Entropy - by MarcoP - 16-09-2019, 10:51 AM
RE: Word Entropy - by Koen G - 16-09-2019, 02:48 PM
RE: Word Entropy - by Koen G - 16-09-2019, 04:00 PM
RE: Word Entropy - by MarcoP - 16-09-2019, 06:58 PM
RE: Word Entropy - by Koen G - 16-09-2019, 07:04 PM
RE: Word Entropy - by MarcoP - 16-09-2019, 07:15 PM
RE: Word Entropy - by Koen G - 16-09-2019, 07:54 PM
RE: Word Entropy - by ReneZ - 16-09-2019, 08:14 PM
RE: Word Entropy - by Koen G - 16-09-2019, 09:19 PM
RE: Word Entropy - by Koen G - 16-09-2019, 09:41 PM
RE: Word Entropy - by RenegadeHealer - 17-09-2019, 12:22 AM
RE: Word Entropy - by ReneZ - 16-09-2019, 09:43 PM
RE: Word Entropy - by Koen G - 16-09-2019, 09:52 PM
RE: Word Entropy - by Koen G - 16-09-2019, 10:09 PM
RE: Word Entropy - by Koen G - 17-09-2019, 06:12 AM
RE: Word Entropy - by RenegadeHealer - 17-09-2019, 02:28 PM
RE: Word Entropy - by ReneZ - 17-09-2019, 07:24 AM
RE: Word Entropy - by Koen G - 17-09-2019, 09:37 PM
RE: Word Entropy - by Koen G - 17-09-2019, 11:18 PM
RE: Word Entropy - by Koen G - 19-09-2019, 09:10 PM
RE: Word Entropy - by MarcoP - 20-09-2019, 11:59 AM
RE: Word Entropy - by Koen G - 20-09-2019, 01:15 PM
RE: Word Entropy - by Koen G - 20-09-2019, 01:20 PM
RE: Word Entropy - by MarcoP - 20-09-2019, 02:30 PM
RE: Word Entropy - by MarcoP - 28-12-2020, 07:57 PM
RE: Word Entropy - by Koen G - 28-12-2020, 08:37 PM
RE: Word Entropy - by RenegadeHealer - 29-12-2020, 08:43 AM
RE: Word Entropy - by MichelleL11 - 29-12-2020, 12:55 PM
RE: Word Entropy - by MarcoP - 29-12-2020, 02:56 PM
RE: Word Entropy - by Koen G - 29-12-2020, 10:15 PM
RE: Word Entropy - by MichelleL11 - 29-12-2020, 11:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Word entropy in reverse direction Emma May Smith 2 6,138 03-06-2022, 10:14 AM
Last Post: MarcoP

Forum Jump:


Users browsing this thread: 2 Guest(s)