I suppose you are interested in obtaining a confidence interval for the true mean of a distribution with bounded support (although your post does not mention the mean at any point...)
If your sample size is not tiny, then Student intervals will provide usually an excellent approximation (Central Limit Theorem, no heavy tails).
To illustrate this, we can simulate from a beta distribution with known mean, compute the t-confidence interval and check in each run if the interval contains the mean $\mu$ (which is 1/3 in the example below).
n <- 20 # sample size
a <- 2 # parameters of beta distribution
b <- 4
mu <- 1/(1 + b/a) # true mean of beta distribution
set.seed(1)
out <- replicate(10000, {
x <- rbeta(n, a, b)
t.test(x)$conf.int
})
mean(out[1, ] <= mu & mu <= out[2, ]) # 0.948
par(mfrow = 1:2)
hist(x)
boxplot(x)
So the real coverage probability is almost exactly identical to the nominal coverage of 0.95 even if the underlying is not normal but asymmetric beta. Histogram and boxplot in the last run of the simulation are looking as follows:
If we run above simulation with tiny sample sizes, we get the following coverage probabilities:
- 0.9399 ($n = 5$)
- 0.9365 ($n = 4$)
- 0.9403 ($n = 3$)
- 0.943 ($n = 2$)