Consider a gene whose expression fraction follows some distribution with mean
$$\begin{align}
K_i|Q_i &\sim \text{Pois}(s_i Q_i) \
\operatorname{E}(Q_i) &= q \
\operatorname{Var}(Q_i) &= v
\end{align}$$ The total expectation and variance of
To estimate the variance, we study the following estimator, which is the formula for the sample variance of
Its expectation is (see after the calculation for explanations):
$$\begin{align} \text{E}(\hat w)
&= \text{E}\left(\frac{1}{n-1}\sum_i\left(\frac{K_i}{s_i}-\frac{1} {n}\sum_j\frac{K_j}{s_j}\right)^2\right) \
&=\frac{1}{n-1}\sum_i\text{E}\left(\left(\frac{1}{n}\sum_j\left(\frac{K_i}{s_i}-\frac{K_j}{s_j}\right)\right)^2\right)\
&=\frac{1}{n-1}\sum_i\text{E}\left(\frac{1}{n^2}\sum_j\sum_l\left(\frac{K_i}{s_i}-\frac{K_j}{s_j}\right)\left(\frac{K_i}{s_i}-\frac{K_l}{s_j}\right)\right)\
&=\frac{1}{n^2(n-1)}\sum_i\sum_j\sum_l\left( \frac{\text{E}(K_i^2)}{s_i^2} - \frac{\text{E}(K_iK_l)}{s_is_l} - \frac{\text{E}(K_iK_j)}{s_is_j} + \frac{\text{E}(K_jK_l)}{s_js_l} \right)\
&\stackrel{(a)}{=}\frac{1}{n^2(n-1)}\left( n^2\sum_i\frac{\text{E}(K_i^2)}{s_i^2}-n\sum_i\sum_j\frac{\text{E}(K_iK_j)}{s_is_j} \right)\
&\stackrel{(b)}{=}\frac{1}{n^2(n-1)}\left( (n^2-n)\sum_i\frac{\text{E}(K_i^2)}{s_i^2}-n\sum_i\sum_{\substack{j\neq i}}\frac{\text{E}(K_iK_j)}{s_is_j} \right)\
&\stackrel{}{=}\frac{1}{n^2(n-1)}\left( (n^2-n)\sum_i\frac{s_i^2 q^2 + s_iq + s_i^2v}{s_i^2}-n\sum_i\sum_{\substack{j\neq i}}\frac{s_is_jq^2}{s_is_j} \right)\
&\stackrel{}{=}\frac{1}{n^2(n-1)}\left( (n^2-n)\sum_i\left( q^2 + \frac{q}{s_i} + v\right) - n\sum_i\sum_{\substack{j\neq i}}q^2 \right)\
&\stackrel{}{=}\frac{1}{n^2(n-1)}\left( n(n-1)(nq^2+q\sum_i\frac{1}{s_i}+nv) - n^2(n-1)q^2 \right)\
&\stackrel{}{=} q^2+q\frac{1}{n}\sum_i\frac{1}{s_i}+v - q^2 \
&=q\Xi+v
\end{align} $$
In (a), we made use of the fact that the three mixed terms are all the same, with permuted indices, and hence two of them cancel. In (b), we moved the diagonal part (
We see that the sample variance of the