[R] variance of discrete uniform distribution

casperyc casperyc at hotmail.co.uk
Tue Mar 9 00:44:40 CET 2010


Hi Rolf Turner ,

God, it directed to the wrong page.

I firstly find the formula in wiki, than tried to verify the answer in R,
now, given that 143/12 ((n^2-1)/12 ) is the correct answer for a discrete
uniform random variable,
I am still not sure what R is calculating there?
why it gives me 13?

Thanks!
-- 
View this message in context: http://n4.nabble.com/variance-of-discrete-uniform-distribution-tp1585328p1585355.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list