The elementwise multiplication before the sum will trigger a memory copy that you be avoided by using:

```python
full_var = np.var(X, axis=0).sum()
```