Law of large numbers states that:
If $X_1, \dots X_n \sim p(x)$ are IID, then $ \frac{1}{n} \sum_{i=1}^{n} X_i \rightarrow \mathbb{E}_{p(x)}\{X\}= \mu$, where $X \sim p(x)$.
Below is what I'm having trouble connecting to this, as this is new notation for me from an online lecture:
If we have a function $f(X)$ of some random variable $X$ and a pdf $p(x)$, then by LLN $\frac{1}{n} \sum_{i=1}^{n} f(X_i) \rightarrow \mathbb{E}_{p(x)}\{f(X)\}$, where $X_1, \dots , X_n \sim p(x)$
Is $p(x)$ referring to the transformed PDF of $X$ under $f(\cdot)$ or a different distribution? Or is this notation too ambiguous to tell?
So in the first case, $X_1, \dots X_n \sim g(x)$, therefore $f(X_1), \dots, f(X_n)$ are random variables with pdf $p(x)$, where $p(x)$ can be computed using the formula for transformation of a random variable. Hence, we can use LLN to state that the summation will eventually converge to $\mathbb{E}\{f(X)\}$ where $X \sim p(x)$, which can also be written as $\mathbb{E}_{p(x)}\{f(X)\}$.