<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>FAQ/combinatorics/repeval</title><revhistory><revision><revnumber>5</revnumber><date>2015-07-01 13:55:53</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>4</revnumber><date>2015-07-01 13:55:07</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>3</revnumber><date>2015-07-01 13:54:14</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>2</revnumber><date>2015-07-01 13:52:45</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>1</revnumber><date>2015-07-01 13:52:29</date><authorinitials>PeterWatson</authorinitials></revision></revhistory></articleinfo><section><title>A few worked examples evaluating some repetition probabilities</title><para>For drawing from 92 stimuli with replacement into a sequence of length 6. </para><para><emphasis role="underline">No repetitions</emphasis> </para><para>P(0 repetitions) = (Number of permutations of six distinct stimuli chosen from 92 with replacement) / (total number of permutations of 92 stimuli with replacement) = (92x91x90x89x88x87) / ($$92<superscript>6 </superscript>$$)  = 0.847. </para><para><emphasis role="underline">1 instance of 1 replicate</emphasis>  </para><para>There are 15 possible pairs of positions of any of the 92 repeated stimuli. These are </para><screen><![CDATA[1 2
1 3
1 4
1 5
1 6
2 3
2 4
2 5
2 6
3 4
3 5
3 6
4 5
4 6
5 6]]></screen><para>The remaining four positions are assumed to be distinct and different to the stimulus that has been repeated. This gives a probability of (92 x (5+4+3+2+1)x91x90x89x88) / $$92<superscript>6 </superscript>$$= 0.146.                                               </para><para><emphasis role="underline">5 repetitions</emphasis> </para><para>For 5 repetitions (the same stimulus used in all six positions of the sequence) there are 92 possibilities giving a probability of 92 / $$92<superscript>6 </superscript>$$  = 1.5172629 x 10(-10).                       </para></section></article>