The elements of the vectors given by tf•idf are the co-occurrence frequencies of words and contexts, weighted by normalized idf.
denoting the number of distinct words and contexts as N and M , respectively, (1) where tf(w i , c j ) is the co-occurrence frequency of word w i and context c j .