# Why does frequency encoding work?

Frequency encoding is a widely used technique in Kaggle competitions, and many times proves to be a very reasonable way of dealing with categorical features with high cardinality. I really don't understand why it works.

Does it work in very specific cases where frequencies are correlated with the target or is it more general? What's the rationale behind it?

• maybe this answer – Nikos M. Jul 26 '20 at 8:26
• @NikosM. Can you copy that answer here? – Itamar Mushkin Jul 30 '20 at 7:14