|
Size: 1285
Comment:
|
← Revision 21 as of 2015-09-14 13:54:53 ⇥
Size: 1669
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
= Repetition probabilities = |
= Repetition probabilities = |
| Line 5: | Line 5: |
| Suppose we have a sequence of length 6 (k) taken from a possible 92 (K) stimuli and wish to consider the probability of a repetition of any single stimulus in a randomly drawn sequence then we consider two probabilities below concerning repetition of a single stimulus and an entire sequence of stimuli. | Suppose we have a sequence of length 6 (k) taken from a possible 92 (K) stimuli and wish to consider the probability of stimulus repetition in a randomly drawn sequence of length n. We consider two probabilities, below, concerning repetition of (i) a single stimulus and (ii) an entire sequence of stimuli. |
| Line 9: | Line 10: |
| = 1 – [(92 x 91 x 90 x89 x88) / 92^6] = 0.99 | = 1 – [(92 x 91 x 90 x 89 x 88 x 87) / $$92^6 ^$$ ] = 0.15 |
| Line 11: | Line 12: |
| = 1 – (number of sequences of length six which have no repetition of any of the 92 stimuli e.g. ABCDEF) / (total number of possible sequences of length 6 chosen from 92 stimuli) | = 1 – (number of sequences of length six which have no repetition of any of the 92 stimuli e.g. ABCDEF) / (total number of possible sequences of length 6 chosen from 92 stimuli). |
| Line 13: | Line 14: |
| so we are almost sure to get a single stimulus repeated in a randomly chosen sequence of length 6. | [[FAQ/combinatorics/mreps | We can similarly work out probabilities for 1,2,3,4 and 5 repetitions (from Laurence Shaw and Daniel Molinari)]] taking into account that there can be multiple instances of a repetition in a sequence e.g. the sequence AABBCD represents two instances of a single repetition (of A and B). |
| Line 15: | Line 16: |
| Another repetition which we may be interested in is the probability of an entire sequence of length 6 taken from 92 stimuli repeating in n independent draws: | Another repetition which we may be interested in is the probability of at least one entire sequence of length 6 taken from 92 stimuli repeating in n independent draws: |
| Line 19: | Line 20: |
| = 1 – Product (i=0, n-1) [92^6 – i] / [92 ^6] | = 1 – $$ Product(i=0, n-1) [92^6 ^ – i] / [92 ^6 ^] $$ |
| Line 21: | Line 22: |
| since there are 92^6 possibly distinct sequences of 92 stimuli of length 6 and once we have used one we don’t want to use it again. | since there are $$92^6 ^$$ distinct sequences of 92 stimuli of length 6 and once we have used one sequence we don’t want to use it again. |
| Line 23: | Line 25: |
| which from this website | Using the result from [[http://www.johndcook.com/blog/2012/04/16/random-number-sequence-overlap/ | this website]] the above probability |
| Line 25: | Line 27: |
| = 1 - ( 92^6 ! / [(92^6)^n (92^6 - n)!] ) |
= 1 - $$( [92^6 ^ !] / [(92^6 ^)^n ^ (92^6 ^ - n)!] ) |
Repetition probabilities
Suppose we have a sequence of length 6 (k) taken from a possible 92 (K) stimuli and wish to consider the probability of stimulus repetition in a randomly drawn sequence of length n. We consider two probabilities, below, concerning repetition of (i) a single stimulus and (ii) an entire sequence of stimuli.
The probability of any of the six of the 92 stimuli repeating in a randomly drawn sequence of length six
= 1 – [(92 x 91 x 90 x 89 x 88 x 87) / $$926 $$ ] = 0.15
= 1 – (number of sequences of length six which have no repetition of any of the 92 stimuli e.g. ABCDEF) / (total number of possible sequences of length 6 chosen from 92 stimuli).
We can similarly work out probabilities for 1,2,3,4 and 5 repetitions (from Laurence Shaw and Daniel Molinari) taking into account that there can be multiple instances of a repetition in a sequence e.g. the sequence AABBCD represents two instances of a single repetition (of A and B).
Another repetition which we may be interested in is the probability of at least one entire sequence of length 6 taken from 92 stimuli repeating in n independent draws:
This equals 1 – P(no repetition of any sequence in the n draws)
= 1 – $$ Product(i=0, n-1) [926 – i] / [92 6 ] $$
since there are $$926 $$ distinct sequences of 92 stimuli of length 6 and once we have used one sequence we don’t want to use it again.
Using the result from this website the above probability
= 1 - $$( [926 !] / [(926 )n (926 - n)!] )
