I tried your formula. The values are random, but the distribution is uniform.
A fact that violates the Central Limit Theorem. But my observation
agrees with yours. Based on that, I would conclude that the 23 values
in the SUMPRODUCT argument are not independent and/or not random.
Aha! The Excel 2003 Evaluate Formula feature under Formula Auditing
confirms my suspicion: RANDBETWEEN seems to be computed only once
because the argument ROW($A$65512:$A$65534) is returning a single
integer (65512), not the array {65512;65512;...;65534} that I
expected.
(BTW, note that the relative references in my previous response should
be absolute references to allow us to copy the formula into many cells
-- I used 1000 -- to analyze the distribution.)
Sigh, I often have trouble coercing Excel to generate arrays when I
expect them. I also have trouble getting array formulas to work
consistently, i.e. when I expect them to work. For example, entering
my original formula as an array formula does not work (for me), even
if I change SUMPRODUCT to SUM.
It would be great if some Excel guru could explain why my formula is
not behaving as I expect -- and more importantly, if there is
reasonable way to make the formula behave the way that I expect.
I do not expect it to behave as well as summing 23 RAND() calls
anyway. But you said you were looking for something more compact, and
you did not say if/how concerned you are about the distribution.
(Other than the fact that it should work, of course. I take that
granted.)
I'm glad you checked the distribution. I had intended to do that
myself, but I forgot.
----- original posting -----
I tried your formula. The values are random, but the distribution is
uniform. That is, they are uniformly spread between 0 and 23. About the same
number of values occur between 3 and 4 as occur between 7 and 8, etc.
Adding a bunch of RAND() together seems to give a normal distribution.
--
Gary''s Student - gsnu200791
joeu2004 said:
On Jun 13, 5:57 am, Gary''s Student
I need to add up 23 independent random numbers.
You are not very specific. From your example, it appears that you
want 23 random values between 0 and 1.
Is there a more compact array formula, or some form of SUMPRODUCT, that can
get the same result?
Not exactly the same, but I wonder if the following would satisfy your
needs.
With Excel 2007 (I have Excel 2003), you should be able to substitute
65535 (and its derivatives; e.g., 65513 is 65535 - 22) with a larger
number. That should improve the random characteristics somewhat.
----- original posting -----
On Jun 13, 5:57 am, Gary''s Student
I need to add up 23 independent random numbers. My first try was:
This proved to be insufficient since it really only added the same random
value 23 times. I can get a correct result with a helper column or with a
formula like:
Is there a more compact array formula, or some form of SUMPRODUCT, that can
get the same result?