# Subscript in an equation [duplicate]

I would like to add a subscript to my equation. For example the following one:

W(P_{r}, P_{q}) = \min_{G} \max_{D \in \mathcal{D}} \mathbb{E}_{x \sim P_{r}}[D(x)]  - \mathbb{E}_{\hat{x} \sim P_{g}}[log(1 - D(\hat{x}))]

However, as it is the subscript to \mathbb{E} does not work beneath, but in the right down corner. I would like to achieve sth like:

How can I do so?

• What exactly is \mathbb{E} here? I've never seen this type of syntax before. Apr 6, 2020 at 20:06
• @daleif Peraphs is it an euclidean space? Apr 6, 2020 at 20:21
• @daleif It think it is used to represent the expectation operator. Apr 6, 2020 at 20:32
• @Vincent even if so I've never seen that before and I've edited my share of statistics preprints. That said I think you're right, now what is G then Apr 6, 2020 at 20:33
• @daleif I study probability and I see it all the time. Maybe it is a more popular notation in probability theory than in statistics. Apr 6, 2020 at 20:36

$W(\mathbb{P}_{r}, \mathbb{P}_{q}) = \min_{G} \max_{D \in \mathcal{D}} \, \underset{x \sim \mathbb{P}_{r}}{\mathbb{E}}\log[D(x)]- \underset{\hat{x}\sim \mathbb{P}_{g}}{\mathbb{E}}[\log(1 - D(\hat{x}))]$