Every price implies a probability. Add up the implied probabilities for all outcomes and the total is more than 100 percent. The excess is the margin.
With decimal odds, implied probability is one divided by the odds. A price of 2.00 implies 50 percent. A price of 4.00 implies 25 percent.
Suppose both sides of an even contest are priced at 1.91.
The true probabilities must sum to 100. The extra 4.7 points is the bookmaker's margin, sometimes called the overround. It is how the business is paid regardless of the result. The mathematics are set out in Wikipedia's article on the mathematics of bookmaking.
To estimate the probabilities the prices really reflect, divide each implied probability by the total. In the example, 52.4 / 104.7 gives 50 percent each.
Stripping out the margin gives the market's estimate, not the truth. Markets are often accurate and are sometimes wrong, and knowing which is the hard part.