FAQ/multi - CBU statistics Wiki

Revision 2 as of 2016-01-07 15:41:16

Clear message
location: FAQ / multi

Multinomial probabilities of location of peaks which can occur in one of K positions

Suppose we have K positions for a set of N trials and nk of these trials have peaks occurring in position k then the probability of the distribution of peaks follows a multinomial distribution with MN(N,n1,...,nK,p1,...,pK) with sum of k frequencies summed over K equal to N. The probability of a peak occurring by chance in position k = pk = 1/K.

The multinomial probabilities can be evaluated using the dmultinom procedure in R as in this example taken from David Howell's page here and reproduced below.

# We really need the multinomial when we have more than two possible outcomes.   


# Suppose p <- c(.333, .5, .167)
# I want prob of getting x = c(4,5,1) in the 3 boxes
 x <- c(4,5,1)
 prob <- c(.333, .5, .167)
dmultinom(x=x,prob=prob)
#0.08085632

A p-value could be obtained for a specific set of frequencies by summing up the multinomial probabilities of all sets of frequencies with an equal or lower chance of occurring than the observed set of frequencies with pk = 1/K for all k.