Back to the 2026 paper

Module 5: Mining Object, Spatial, Multimedia, Text and Web Data

20262m

If a word occurs 4 times in a document containing 100 words, its term frequency is

(i) 0.004
(ii) 0.4
(iii) 0.04
(iv) 4

Worked SolutionAI Assisted

Solution

Correct Answer: (iii) 0.04

Explanation

Term frequency (TF) = (number of times the term occurs in the document) / (total number of words in the document)

TF = 4 / 100 = 0.04

TF is the first part of the TF-IDF weight used in text mining: TF-IDF = TF x log(N / df).

Why other options are incorrect:

  • (i) 0.004 = 4/1000, (ii) 0.4 = 4/10, (iv) 4 is the raw count, not the frequency ratio.

Answer: (iii) 0.04

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.