I am working in a cosmological context where I use the $C_{\ell}$ quantities coming from Legendre transformation.
I am faced to a issue to prove the gain that we get by computing the variance of an estimator, that is to say in my case an integral of $C_\ell$ (actually dicrete summing), compared on the variance of a single $C_\ell$.
I made the following reasoning:
by defining this integral below:
$$\begin{aligned} \hat{\mathcal{D}}_{\mathrm{gal}}&=\int_{l_{\min}}^{l_{\max }} \hat{C}_{\ell, \mathrm{gal}, }(\ell) \,\mathrm{d}\ell\\ &\simeq \dfrac{(\ell_{max}-\ell_{min})}{n} \sum_{i=l}^{n} \hat{C}_{\ell,\mathrm{gal}}(\ell_{i})\\ \end{aligned}$$
and by taking the definition of a $\hat{C}_\ell(\ell_i)$:
$$\hat{C_{\ell_i}}=<|\hat{a}_{\ell_i m}|^{2}>_{m=-\ell_i, \ldots, \ell_i}\,\,$$
I would like to demonstrate the fact that I have a gain when I estimate the variance on $\hat{\mathcal{D}}_{\mathrm{gal}}$ compared to the situation where I consider only one $C_\ell$.
From my old memories, I thought that the following relation was right:
$$\,\,\dfrac{1}{\sigma_{\hat{\mathcal{D}}}^{\,\,\,2}}=\dfrac{1}{\hat{C}_{\ell,1}}+\dfrac{1}{\hat{C}_{\ell,2}}+\ldots+\dfrac{1}{\hat{C}_{\ell,n}}\gg \dfrac{1}{\hat{C}_{\ell,i}} \,\text{for any}\, i$$
But firstly, I don't know if this formula is valid and if this is not the case, how to formulate that we have all benefit by considering the estimated integral $\hat{\mathcal{D}}_{\mathrm{gal}}$ instead of considering a single $C_\ell$: I talk about this point at level of variance of $\hat{\mathcal{D}}_{\mathrm{gal}}$ which should be smaller than the variance of one $\hat{C}_\ell $.
I just need help to justify clearly how we get better accuracy (smaller variance) by integrating.
If someone could tell how to proceed to prove that, or just gives elements/tracks of answers.
UPDATE 1: to justify the choice of taking the integral instead of taking a single $C_{\ell}\left(\ell_{i}\right)$, someone suggested me to prove, if we take $Z=\sum_{i=1}^{n} X_{i}$, that :
$$\frac{\sigma_{Z}}{Z}<\frac{\sigma_{X_{i}}}{X_{i}} \text { for any } i$$
But $\frac{\sigma_{Z}}{Z}$ is a relative error, that is to say, it makes imply the value of $Z$ and not just $\sigma_{Z}$, doesn't it ?
By the way, what the absolute difference (just $\sigma_{Z}$ ) and relative difference can bring as informations ? I mean, how to interpret and compare them if we want to get significant informations about the variables that we want to estimate ?
UPDATE 2: I think that I may find the solution from the "Inverse variance weighting". Indeed, I was stuck by the condition that sum of weights below $w_{i}$ should be equal to 1.
If I Consider a generic weighted sum $Y=\sum_{i} w_{i} X_{i}$, where the weights $w_{i}$ are normalised such that $\sum w_{i}=1$. If the $X_{i}$ are all independent, the variance of $Y$ is given by :
$$\operatorname{Var}(Y)=\sum_{i} w_{i}^{2} \sigma_{i}^{2}\quad(1)$$
Lagrange multiplier $w_{0}$ to enforce the constraint, we express the variance
$$\operatorname{Var}(Y)=\sum_{i} w_{i}^{2} \sigma_{i}^{2}-w_{0}\left(\sum_{i} w_{i}-1\right)$$
For $k>0$ $0=\frac{\partial}{\partial w_{k}} \operatorname{Var}(Y)=2 w_{k} \sigma_{k}^{2}-w_{0}$
which implies that
$w_{k}=\frac{w_{0} / 2}{\sigma_{k}^{2}}$
The main takeaway here is that $w_{k} \propto 1 / \sigma_{k}^{2}$.
Since $\sum_{i} w_{i}=1$,
$$\frac{2}{w_{0}}=\sum_{i} \frac{1}{\sigma_{i}^{2}}:=\frac{1}{\sigma_{0}^{2}}$$
The individual normalised weights are $$w_{k}=\frac{1}{\sigma_{k}^{2}}\left(\sum_{i} \frac{1}{\sigma_{i}^{2}}\right)^{-1}$$
Variance of the estimator is then given by $$\operatorname{Var}(Y)=\sum_{i} \frac{\sigma_{0}^{4}}{\sigma_{i}^{4}} \sigma_{i}^{2}=\sigma_{0}^{4} \sum_{i} \frac{1}{\sigma_{i}^{2}}=\sigma_{0}^{4} \frac{1}{\sigma_{0}^{2}}=\sigma_{0}^{2}=\frac{1}{\sum_{i} 1 / \sigma_{i}^{2}}$$
and I realized that weigths $w_{i}$ may be equal, at a factor near, to $\Delta\ell=\dfrac{\ell_{max}-\ell_{min})}{N}$ where $N$ is the number of values that I am summing when one computes integral by rectangular numerical method : we have $\sum_{i=1}^{N}\Delta\ell$.
How could I find the trick to respect the conditions where the weights $w_{i}$ are normalised such that $\sum w_{i}=1$ , with :
$Y=\sum_{i} w_{i} X_{i}$
and where we can assimilate $\hat{\mathcal{D}}_{\mathrm{gal}}\equiv Y$ and $X_{i}\equiv \hat{C}_{\ell,\mathrm{gal}}(\ell_{i})$ :
What do you think about this track ? How to normalize the sum of weights $w_{i}$ ?
UPDATE 3: In order you understand the goal :
Initially, my tutor wanted to compare the ratio between 2 $C_\ell$ coming from 2 different probes (let say 1 and 2): so I should have to compute the variance of quantity $O=\dfrac{C_\ell,1}{C_\ell,2}$. And after this, my tutor tolds me that, by compute instead the ratio of the 2 integrals of $C_\ell,1$ and $C_\ell,2$ :
that is to say, the ratio between
$\begin{aligned} \hat{\mathcal{D}}_{\mathrm{ga,1}}&=\int_{l_{\min}}^{l_{\max }} \hat{C}_{\ell, \mathrm{gal,1}, }(\ell) \,\mathrm{d}\ell\\ &\simeq \dfrac{(\ell_{max}-\ell_{min})}{n} \sum_{i=l}^{n} \hat{C}_{\ell,\mathrm{gal,1}}(\ell_{i})\\ \end{aligned}$
and
$\begin{aligned} \hat{\mathcal{D}}_{\mathrm{ga,2}}&=\int_{l_{\min}}^{l_{\max }} \hat{C}_{\ell, \mathrm{gal,2}, }(\ell) \,\mathrm{d}\ell\\ &\simeq \dfrac{(\ell_{max}-\ell_{min})}{n} \sum_{i=l}^{n} \hat{C}_{\ell,\mathrm{gal,2}}(\ell_{i})\\ \end{aligned}$
He justified this by tell me we will more accuracy and that's why I try to prove the gain I get for the variance of the integral compared to a ratio of 2 single $C_\ell$ taken at the same redshift.
UPDATE 4: From the last answer of @Andrew
below, I would like to mention that I am using in my code the general well-known (if we could say) that variance on a $C_\ell$ is given by : $\sigma_{C_\ell}=\sqrt{\dfrac{2}{2\ell+1}}\,C_\ell$ : how to include this standard deviation in the reasoning of his answer ?