Herfindahl Index
en.wikipedia.org
en.wikipedia.org
The formula here gives you a precise number, but it’s based on imprecise inputs, so it feels pretty unsatisfying to me.
Usually find truth is best approximated in data through triangulation with a lot of different sources, rather than this one or that one being the end all.
If you fail to define the relevant market, you fail to spot the failing market. This goes both ways. Sometimes products that are not even that similar work as substitutes preventing the exercise of market power (say red bull and coke). Other times market power in one narrow product group can work as a stepping stone for extending market power over various markets (say, the way a firm like Proctor and Gamble operates).