I have been working through a proof of the chi-square goodness of fit test proof that involves a change of basis step (proof shown here and a related link here). I am getting stuck at the following point (pg 66/67 in the proof); the relevant context to the problem is as follows:
Let $g_1,\dots , g_r$ be i.i.d. standard normal variables. Consider two vectors:
$$\pmb{g} = (g_1, \dots, g_r)^T$$ $$\pmb{p} = (\sqrt{p_1}, \dots, \sqrt{pr})^T$$
Where $p_1 + \dots + p_r = 1$. Note that $\pmb{p}$ is a unit vector:
$$\mid\mid \pmb{p} \mid \mid = \sqrt{\pmb{p} \cdot \pmb{p}} = \sqrt{\sqrt{p_1}\sqrt{p_1} + \dots + \sqrt{p_r}\sqrt{p_r}} = \sqrt{p_1 + \dots + p_r} = \sqrt{1} = 1$$
Let us consider a new orthonormal coordinate system with the first basis vector (first axis) equal to $\pmb{p}$. In this new coordinate system vector $\pmb{g}$ will have coordinates:
$$\pmb{g}' = (g_1', \dots , g_r') = V\pmb{g}$$
obtained from $\pmb{g}$ by orthogonal transformation
$$V = (\pmb{p}, \pmb{p}_2, \dots, \pmb{p}_r)$$
That maps canonical basis into this new basis.
Okay, so I am struggling to understand how $V$ (an orthogonal matrix) maps our canonical basis into the new basis. As far as I can understand, $V$ should map from the new coordinate system back to the canonical basis.
For context I think this because $V$ has columns which correspond to the basis vectors of the new coordinate system (with the first column being the first basis vector, $\pmb{p}$). Hence if we had some vector $a$ described in the new coordinate system, $Va = b$ would yield a vector $b$ described in the canonical system (at least that is how I am understanding change of basis).
However, in the proof it is stated that $V\pmb{g} = \pmb{g}'$ , where $\pmb{g}'$ is supposedly described in the new coordinate system. I would have thought that in order to change basis and describe $\pmb{g}$ in the new coordinate system the inverse of $V$ would be needed:
$$\pmb{g}' = V^{-1}\pmb{g}$$
But that appears not to be the case. Can anyone help me understand why this is so, and where I appear to be making this mental error? Also if there is any additional context or information I can supply to help clarify things please let me know-thanks!
