I am going through this paper https://arxiv.org/pdf/1803.02194.pdf on Bidding Machine. In the section 3.1 Problem definition, I got the part about finding the probability of winning at bidding price $b$ (Equation 1, as it is quite straightforward), but I am kind of stuck on the part where it denotes the expected cost in the second price auction (Equation 2) as:
$$w(b) = \int_{0}^{b} p_z(z) dz$$
$$c(b) = \frac{\int_{0}^{b} z p_z(z) dz}{\int_{0}^{b} p_z(z) dz}$$
where $p_z(z)$ is the PDF of the market price, $w(b)$ is the probability of winning and $c(b)$ denotes the expected cost.
What is the significance of the denominator in the Equation 2 which calculates the expected cost in the second price auction?
Edit: I visited this post
Expected payment in second price seal-bid auction and got some insights about the calculation of the expected value. Shouldn't the probability be as the numerator and outside the integral as the constant term instead of the denominator?