How is the sum of squared independent standard normals distributed, and why?
Quick Overview
Asks for the distribution of a sum of squared independent standard normal variables and a justification of it. Tests change of variables, moment generating functions and degrees of freedom, and where the result shows up in variance estimation and hypothesis tests.
How is the sum of squared independent standard normals distributed, and why?
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Let $Z_1, \dots, Z_k$ be independent standard normal random variables. How is $\sum_{i=1}^{k} Z_i^2$ distributed, and why?
```hint Start with one term
Find the distribution of a single $Z^2$ by writing $P(Z^2 \le y)$ as a probability about $Z$ and differentiating.
```
```hint Going from one term to k
Use a transform that turns a sum of independent variables into a product.
```
### What a Strong Answer Covers
- The name of the distribution and its parameter
- A derivation of the distribution of a single squared standard normal
- The step from one term to the sum, and where independence is used
- The mean and variance, and where the result is used in practice
- What changes when the normals have nonzero means, other variances, or are correlated
### Follow-up Questions
- What is the distribution of the sum if each $Z_i$ has mean $\mu_i$ instead of 0?
- Why does $(n-1)S^2/\sigma^2$ for normal data have $n-1$ degrees of freedom and not $n$?
- If $Z \sim N(0, \Sigma)$ with $\Sigma$ not the identity, how is $Z^\top Z$ distributed, and which quadratic form in $Z$ is chi-squared?
- How are the t and F distributions built from this result?
Overview: Asks for the distribution of a sum of squared independent standard normal variables and a justification of it. Tests change of variables, moment generating functions and degrees of freedom, and where the result shows up in variance estimation and hypothesis tests.