1. Create document vectors for the given documents (Term Frequency Table)\
2. Record the occurrence of the word in the document using term frequency table (Document Frequency Table)
3. Draw the inverse document frequency table wherein, we need to put the document frequency in the denominator while the total number of documents is the numerator. Here, the total number of documents are 4, hence inverse document frequency becomes:
4. The formula of TFIDF for any word W becomes: TFIDF(W) = TF(W) * log (IDF(W))