When drawing a number of samples from a NormalDistribution, the distribution of the sample variance is related to the ChiSquareDistribution.
I'm trying to find the pdf of the distribution for the sample variance when samples are drawn from a UniformDistribution.
In the simplest case
n=2;
dvar = TransformedDistribution[(Total[Table[x[i]^2, {i, 1, n}]] - Total[Table[x[i], {i, 1, n}]]^2/n)/(n - 1), Table[x[i] \[Distributed] UniformDistribution[{-a, a}], {i, 1, n}]]
PDF[dvar,x]
it works. However for, n=3 or higher, I cannot evaluate the PDF explicitly -- didn't count on it; no 'UniformSumSquareDistribution' function -- or numerically (e.g. PDF[dvar /. a->1, 0.1]).
I can calculate the CentralMoments fine. It doesn't help with fixed limits in the UniformDistribution, e.g. [{0,1}].
What else to try?
Edit: Background
In order to avoid misunderstandings, I'll just add a little background to my query.
The symmetric uniform distribution has
d = UniformDistribution[{-a, a}]; {Mean[d], Variance[d]}
(* {0, a^2/3} *)
But if you don't know the distribution, and can only draw a limited amount of samples, say 3, you can only get an estimate of the variance by calculating the sample variance. I.e.
n = 3; Variance[RandomVariate[d /. a -> 1, n]]
(* 0.0616734 *)
Repeat it, and you get something else. In any case, not the "expected" 1/3.
You can see how the distribution of the sample variances look, e.g. by
Histogram[Variance /@
Partition[RandomVariate[UniformDistribution[{-1, 1}], 3000000],3],
100, "PDF"]
As it can be seen, it is going to be hard to find the "true" variance of the underlying (in principle unknown) distribution. The reliability of one of the calculated sample variances can be inferred from the properties of the distribution shown.
The basic properties can be found, e.g. (as above)
n=3;
dvar = TransformedDistribution[(Total[Table[x[i]^2, {i, 1, n}]] - Total[Table[x[i], {i, 1, n}]]^2/n)/(n - 1),
Table[x[i] \[Distributed] UniformDistribution[{-a, a}], {i, 1, n}]];
{Mean[dvar], Variance[dvar]}
(* {a^2/3, a^4/15} *)
So if you could do the experiment (draw three samples and calculate the sample variance) an infinite number of times, the mean would give the correct value, but if you do it only once, you will get a value which you must assign an uncertainty. E.g. the 95 % confidence interval - this is where you would use 2*Sqrt[Variance] if it was a normal distribution - but it requires that you can perform calculations on the distribution dvar. Optimally, the PDF or CDF or the ability to calculate Quantile.
If you want to increase the reliability of your estimate, you could take more samples (increase n above). That all good, you still find the Mean[dvar(n)] = a^2/3 and you can easily infer that Variance[dvar(n)] = 2 (2 n + 3) a^4/(45 n (n-1)). But what is e.g. the 95 % confidence interval?
Getting Mathematica to evaluate PDF[dvar, 0.1] or more relevant, CDF[dvar, 0.025] would be a first step.
All this is easy when the underlying distribution was the normal distribution; that's given by the properties of the ChiSquareDistribution.