alternating patterns
#17
(30-03-2018, 08:57 PM)ReneZ wrote: You are not allowed to view links. Register or Login to view.Hi Marco, this is very interesting.
I haven't yet have time to fully digest it, but I have an initial question: 
how did you compute the 'expected' occurences of X as part of 'X Y X Z'?

Intuitively, for the more frequent cases of X, the actual number should clearly exceed the statistically expected number, but this intuition could be wrong.

Hello Rene,
I am glad you find this interesting and I hope I haven't made any major error.
I computed the expected number in the same way as I did for expected repetition / reduplication:

N*N/TOT
Where N is the number of occurrences of word "X" and TOT is the total number of words in the text. 

If a word occurs 50 times in a 1000 long text, it occurs 5% of the times. 
5% of the 50 occurrences are expected to match the pattern: 
50*50/1000=50*5%=2.5

This is likely overestimated, because I include in this number some combinations I actually excluded from the "actual" counts (e.g. X X X Z): but I think the impact of this imprecision is small.

As a VMS example: 'daiin' occurs 845 times in the ms, which has a total of 37718 words.
I computed the expected number of occurrences of the pattern daiin Y daiin Z as  845*845/37718=18.9

As you can see from the graphs, it seems that different languages behave differently. The most frequent word exceeds the expectation in Latin, but not in Italian and English.
Reply


Messages In This Thread
alternating patterns - by MarcoP - 29-03-2018, 05:33 PM
RE: alternating patterns - by -JKP- - 29-03-2018, 06:28 PM
RE: alternating patterns - by Koen G - 29-03-2018, 08:04 PM
RE: alternating patterns - by MarcoP - 30-03-2018, 10:33 AM
RE: alternating patterns - by Wladimir D - 29-03-2018, 09:54 PM
RE: alternating patterns - by Anton - 29-03-2018, 11:37 PM
RE: alternating patterns - by MarcoP - 30-03-2018, 09:59 AM
RE: alternating patterns - by doranchak - 30-03-2018, 11:32 AM
RE: alternating patterns - by Koen G - 30-03-2018, 12:45 AM
RE: alternating patterns - by Anton - 30-03-2018, 12:21 PM
RE: alternating patterns - by MarcoP - 30-03-2018, 12:54 PM
RE: alternating patterns - by doranchak - 30-03-2018, 01:01 PM
RE: alternating patterns - by Anton - 30-03-2018, 01:19 PM
RE: alternating patterns - by Anton - 30-03-2018, 01:09 PM
RE: alternating patterns - by Helmut Winkler - 30-03-2018, 04:20 PM
RE: alternating patterns - by ReneZ - 30-03-2018, 08:57 PM
RE: alternating patterns - by MarcoP - 30-03-2018, 09:23 PM
RE: alternating patterns - by Anton - 30-03-2018, 09:54 PM
RE: alternating patterns - by Anton - 30-03-2018, 10:05 PM
RE: alternating patterns - by davidjackson - 30-03-2018, 10:49 PM
RE: alternating patterns - by Anton - 30-03-2018, 11:12 PM
RE: alternating patterns - by Anton - 30-03-2018, 11:15 PM
RE: alternating patterns - by MarcoP - 31-03-2018, 10:02 AM
RE: alternating patterns - by Anton - 31-03-2018, 05:23 PM
RE: alternating patterns - by MarcoP - 31-03-2018, 06:46 PM
RE: alternating patterns - by Anton - 31-03-2018, 05:40 PM
RE: alternating patterns - by -JKP- - 31-03-2018, 06:43 PM
RE: alternating patterns - by Anton - 31-03-2018, 06:53 PM
RE: alternating patterns - by MarcoP - 31-03-2018, 07:13 PM
RE: alternating patterns - by Anton - 31-03-2018, 07:16 PM
RE: alternating patterns - by Anton - 31-03-2018, 07:33 PM
RE: alternating patterns - by Anton - 31-03-2018, 07:36 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)