I got two samples originating from the following multivariate
$$ (X_1, X_2) \sim \mathcal{N}\left(0, \left[ \begin{matrix} \sigma^2 & \rho\sigma^2 \\ \rho\sigma^2 & \sigma^2 \end{matrix} \right] \right) $$
(I am using this multivariate normal to simulate an autoregressive process)
What I am trying to check is what happens to the total variance of the pooled sample $X$ when considering $X_1$ and $X_2$ independent instead of correlated by $\rho$.
I can compute the pooled variance of two independent samples pretty easily using the weighted mean of variance of each sample
$$ \sigma_X = \frac{n\sigma + n\sigma}{2n} = \sigma $$
But I can't find any lead on how to compute the pooled variance when the samples are correlated. I tried finding a solution using the general expression of the variance of a sample but I just end up with the weighted mean of variances. I am missing the moment where the independence of samples is assumed, could someone help me with this ?
Here are my computation
Let's have $(X_1, X_2)$ two samples from a multivariate with means $(0,0)$, variances $(\sigma_1^2, \sigma_2^2)$, covariance $\sigma_{1,2}$ and of sample size $(n, m)$. Let's now have $X$ the pooled sample of size $p = n + m$ ordered so that elements $1:n$ are elements of $X_1$ and elements $n+1:n+m$ are elements of $X_2$. I am trying to estimate $\sigma_X$ the variance of $X$
\begin{align} \sigma_X &= \frac{1}{p}\sum_{i = 1}^{p} (x_i - \mu)^2 \\ &= \frac{1}{p}\sum_{i = 1}^{p} x_i^2 \\ &= \frac{1}{p}\left( \sum_{i = 1}^{n} x_i^2 + \sum_{i = n+1}^{p=n+m} x_i^2 \right) \\ &= \frac{1}{p}\left( n\sigma_1 + m\sigma_2 \right)\\ &= \frac{n\sigma_1 + m\sigma_2}{p} \end{align}
Using the assumption that the mean of $X$ is zero because
\begin{align} \mu &= \frac{1}{p}\sum_{i=1}^{p}x_i \\ &= \frac{1}{p} \left( \sum_{i=1}^{n}x_i + \sum_{i=n+1}^{p=n+m}x_i\right) \\ &= \frac{1}{p} \left( n\times 0 + m\times 0\right) \\ &= 0 \end{align}