On numerical integration of $\int x\rho(x) dx$

52 Views Asked by At

Let $\rho:\mathbb R^d\to\mathbb R_+$ be a density function. For each $n\ge 1$ and $q=(q_1,\ldots, q_d)\in\mathbb Z^d$, define the box $V_q^n$ by

$$V_q^n \quad :=\quad \left\{x=(x_1,\ldots, x_d)\in\mathbb R^d:\quad \frac{q_i}{n} \le x_i < \frac{q_i+1}{n},~ \mbox{for } i=1,\ldots, d \right\}.$$

Set

$$I ~:=~ \int_{\mathbb R^d} |x|\rho(x)dx \quad \mbox{and} \quad I_n~ :=~ \sum_{q\in\mathbb Z^d} \int_{V_q^n} \frac{|q|}{n}\rho\left(\frac{q}{n}\right)dx ~ = ~ \sum_{q\in\mathbb Z^d} \frac{|q|}{n^{d+1}}\rho\left(\frac{q}{n}\right).$$

I am interested in the quantity $|I-I_n|$. It seems to be an elementary question, however I am unable to find related references (even under suitable conditions). Any comments or references will be very much appreciated! Thanks a lot!