10
$\begingroup$

I recently started reading Gelman and Hill's, "Data Analysis Using Regression and Multilevel/Hierarchical Models" and the question is based on that:

The sample contains 6 observations on proportions: $p_{1}, p_{2}, \dots, p_{6}$

Each $p_{i}$ has mean $\pi_{i}$ and variance $\frac{\pi_{i}(1-\pi_{i})}{n_i}$, where $n_{i}$ is the number of observations used to compute proportion $p_{i}$.

The test statistic is $T_{i} = $ sample standard deviation of these proportions.

The book says that Expected value of the sample variance of the six proportions, $p_{1}, p_{2}, \dots, p_{6}$, is $(1/6)\sum_{i=1}^{6} \pi_{i}(1-\pi_{i})/n_{i}$. I understand all this.

What I want to know is the distribution of $T_{i}$ and its variance? Would appreciate if someone could let me know what it is, or guide me to a book or article that contains this information.

Thanks a ton.

$\endgroup$
4
  • $\begingroup$ I don't have the book to check, but the statement about the expected value of the sample variance strikes me as strange. Surely it should depend on the variability of $\pi_i$'s as well. $\endgroup$
    – Aniko
    Commented Oct 31, 2011 at 15:35
  • $\begingroup$ A test statistic is a lookup value for a distribution like Student's t, normal distribution, F-distribution, etc. Look in the book and find the name of the distribution for that statistic. The variance should similarly be related to that. $\endgroup$
    – Carl
    Commented Nov 23, 2016 at 19:21
  • 1
    $\begingroup$ Nobody would want to know the distribution of $T_i$ precisely because it's so nasty. That's because the proportions themselves are discrete--$p_i$ can take on only the values $0/n_i, 1/n_i, \ldots, n_i/n_i$--and therefore $T$ (there should be no subscript on it) is discrete, too: but its possible values, which are numerous, do not fall within an evenly spaced series of intervals. Its variance is not too difficult to work out because it is a function of the first four moments of each of the $p_i$ and those are relatively simple to write. $\endgroup$
    – whuber
    Commented May 7, 2017 at 21:08
  • $\begingroup$ @Carl true, and while not a direct answer to OP's question is worth considering. However, at times exact distributions can be derived for test statistics, and these can provide better small sample properties of the corresponding tests. I do not expect this is such a case. $\endgroup$
    – AdamO
    Commented Dec 5, 2017 at 16:30

1 Answer 1

6
$\begingroup$

The exact distributions for the proportions is $p_i \sim \text{Bin}(n_i, \pi_i)/n_i$, and the proportions can take on values $p_i = 0, \frac{1}{n_i}, \frac{2}{n_i}, ..., \frac{n_i-1}{n_i}, 1$. The resulting distribution of the sample standard deviation $T$ is a complicated discrete distribution. Letting $\boldsymbol{p} \equiv (p_1, p_2, ..., p_6)$, it can be written in its most trivial form as:

$$F_T(t) \equiv \mathbb{P}(T \leqslant t) = \sum_{\boldsymbol{p \in \mathcal{P}(t)}} \prod_{i=1}^6 \text{Bin}( n_i p_i|n_i, \pi_i),$$

where $\mathcal{P}(t) \equiv \{ \boldsymbol{p}| T(\boldsymbol{p}) \leqslant t \}$ is the set of all proportion vectors that lead to a sample variance no greater than $t$. There is really no way to simplify this in the general case. Getting an exact probability from this distribution would require you to enumerate the proportion vectors that yield a sample variance in the range of interest, and then sum the binomial products over that enumerated range. It would be an onerous calculation exercise for even moderately large values of $n_1, ..., n_6$.

Now, obviously the above distribution is not a very helpful form. All it really tells you is that you need to enumerate the outcomes of interest and then sum their probabilities. That is why it would be unusual to calculate exact probabilities in this case, and it is much easier to appeal to an asymptotic form for the distribution of the sample variance.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.