What Is TF IDF and How It Can Improve SEO? - DiagnoSEO

What Is TF IDF and How It Can Improve SEO?

June 28, 2020

What is TF IDF?

TF IDF comes from the English language. TF stands for term frequency. IDF stands for inverse document frequency – the inverse frequency of a word in documents. It is a method of calculating the weight of words based on the number of times they occur.

Let’s simplify:

TF IDF informs about the frequency of occurrence of the word and its importance in the context of all examined documents (e.g. websites).

This algorithm can be used as a method of content quality assessment by search engines.

Fact: TF IDF is used in anti-plagiarism systems.

Formula and sample calculations

Simplified formula

TF IDF = TF * IDF

where:

TF – is the number of occurrences of the word or phrase in the document (e.g. on a webpage), e.g. if the word “fox” appears 10 times in the article and the entire article has 500 words, TF is 10/500 = 0.02.

IDF – IDF is the logarithm of the number of documents in the corpus divided by the number of documents in the corpus that contain the studied keyword.

Having calculated separately TF and IDF, you can proceed to calculate the whole TF IDF, just multiply TF times IDF. In our example, it will be 0.02 * 0.52 = 0.01.

Fact: Popular words that often appear in articles are called “stopwords”. Example: If a word from the “stopwords” group, e.g. “to” appears in 10 documents in the corpus consisting of 10 documents, it is easy to calculate the IDF, i.e. log (10/10) = 0.

Why TF IDF helps SEO?

Currently, Google in its search results awards websites that have high-quality content, i.e. article describe a topic in-depth and in-detail.

A simple example:

If the article uses all closely related keywords and is of the right length, it is an important signal to the search engine that it covers the topic in a complete manner.

How to do TF IDF analysis for websites from top 10 search results?

To automate the calculation process and make the analysis as easy as possible, it is best to use the TF IDF tool. It is very easy to use. You only need to enter the addresses of the top 10 pages in Google for the query for which you plan to write an article. The tool will analyze all pages and will indicate sorted words and phrases according to the highest TF IDF weights.

But what if your article is already written and published and not optimized for TF IDF? In the TF IDF tool in addition to the 10 websites of your competitors, also enter your website address. This will give you information on exactly what words are missing on your webpage.

Summary