1
$\begingroup$

I have data where each person can take 5 potential values of $(0, 0.25, 0.5, 0.75, 1)$. Each person is part of a larger group of 3 people, so that the reported value for each group is the average of 3 people's values, which is between 0 and 1.

For example,

Group Name  Scores              Average of Scores
Group 1     (0.50, 0, 0.50)     0.333
Group 2     (1.0, 0.5, 1.0)     0.833    
Group 3     (0.75, 0.5, 0.25)   0.500
Group 4     (0.5, 1, 0.5)       0.666

I would like to construct a confidence interval for the "Average of Scores" column. Is it fair to use a confidence interval for binomial proportion $\hat{p}=(0.333+0.833+0.5+0.666)/4$

$$ \hat{p} \pm z_{\alpha}\sqrt{\dfrac{p(1-p)}{N}} $$ ?

The histogram of "Average of Scores" looks like the following for 200 scores:

enter image description here

$\endgroup$
8
  • 1
    $\begingroup$ What would you take $p$ to be? $\endgroup$
    – whuber
    Commented Feb 14, 2022 at 20:41
  • 3
    $\begingroup$ That's an interesting thought. However, these score averages will not have a Binomial distribution. Why not use the simplest possible applicable method, that based on a Normal sampling distribution of the mean? Provided your averages tend to stay away from exactly $0$ and exactly $1,$ that ought to work well. $\endgroup$
    – whuber
    Commented Feb 14, 2022 at 20:49
  • 1
    $\begingroup$ @whuber Thanks for your response. It may be the case I have all 0's and all 1's, which might induce the average to be exactly 0 and 1. In this case, would there be a way to still construct an analytical interval without relying on bootstraps? Thanks $\endgroup$
    – user145416
    Commented Feb 14, 2022 at 20:53
  • 2
    $\begingroup$ That gets tricky. To supply a good answer, it would help to know how many groups are involved and have a statistical summary of the group means. $\endgroup$
    – whuber
    Commented Feb 14, 2022 at 22:35
  • 1
    $\begingroup$ Can you add that histogram to your Q, as an edit? $\endgroup$ Commented Feb 15, 2022 at 3:01

1 Answer 1

1
$\begingroup$

First note, that you are looking for a confidence interval for a mean value (not for a proportion) of n "average scores" $x_1,\ldots,x_n$, so approximately you can use the confidence interval based on the t-distribution ($s^2$ denotes the estimated variance): $$\overline{x}\pm t_{1-\alpha/2}(n-1)\cdot \sqrt{s^2}$$

As your observables ("average scores") $x_i$ are limited to the range $x_i\in [0,1]$ there is even a strict analytical formula for a $1-\alpha$ confidence interval which can be derived from Hoeffding's inequality: $$\overline{x}\pm \sqrt{-\frac{\ln(\alpha/2)}{2n}}$$ This interval has a strict (!) coverage probability greater than $1-\alpha$. To prove this, start with Hoeffding's inequality with $a_i=0\leq x_i\leq 1=b_i$:

$$P\left(|\overline{x}-\mu|\geq\frac{t}{n}\right)\leq 2\exp\left(-\frac{2t^2}{\sum_{i=1}^n (b_i-a_i)^2}\right)$$

The sum in the denominator of the right hand side is $n$, and setting $s=t/n$ yields the inequality

$$P\left(|\overline{x}-\mu|\geq s\right)\leq 2\, e^{-2ns^2}$$

Now setting the right hand side to $\alpha$ yields the above confidence interval.

A more general approach that does not require an analytical approximation is repeated sampling with replacement, aka "bootstrap". There are different ways to obtain confidence intervals via bootstrapping, and one of the better methods is the "bias corrected accelerated bootstrap" (BCa). In R, you can compute it as follows:

# function that computes your observable from data
observable <- function(x, indices) {
  x.bootstrap <- x[indices]
  ... # compute your observable from x.bootstrap
  return obs
}

# computation of non-parametric bootstrap intervals
library(boot)
boot.out <- boot(data=x, statistic=observable, R=1000)
ci <- boot.ci(boot.out, conf=0.95, type="bca")

I have done some comparative studies and found the BCa inerval to have better coverage probabilities than the other bootstrap intervals, but poorer coverage probability than analytic approximations if an analytic approximation is possible (see the reference below). I would thus conjecture that, in your use case, the simple approach over the t-distribution will have better coverage probability than bootstrap methods.

Dalitz: "Construction of confidence intervals." Technical Report No. 2017-01, pp. 15-28, Hochschule Niederrhein, Fachbereich Elektrotechnik und Informatik, 2017

$\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.