UNIFORM_VARIANCE Compute mean and variance of uniform samples. N E(X) E(X^2) V1 V2 V3 V4 1 0.282306 0.0796968 0 0 NaN 0.0473906 10 0.438732 0.289924 0.0974386 0.0974386 0.108265 0.101192 100 0.513945 0.340113 0.0759738 0.0759738 0.0767412 0.0761683 1000 0.485882 0.319905 0.0838229 0.0838229 0.0839069 0.0840223 10000 0.49804 0.330419 0.0823751 0.0823751 0.0823833 0.082379 100000 0.499304 0.332423 0.0831185 0.0831185 0.0831193 0.083119 1000000 0.500203 0.333537 0.0833344 0.0833344 0.0833345 0.0833344