D
David Byrne
Hi All
I know the Hot Fix is out, but this is a Provable Workaround
The following is based on a VERY large battery of tests using up to
130,000 cells at a time.
1. The percentage of negative numbers generated by Rand() varies
from less than 1 to over 90.
2. This is a bimodal distribution, with peak frequencies of around
16% and 84%.
3. Across around a hundred samples of 100,000 cells, the effect of
adding 1 where the number generated is negative, produces a
distribution indistinguishable from ones where all values are
positive.
4. In the "16%" and "84%" examples, "creative" plotting of the
frequencies at 0.1 intervals from -1 to + 1 produces a graph not
unlike a Normal Distribution. From these graphs, and the similar ones
for other percentages, the result (3) above is almost intuitive.
5. RANDBETWEEN(a,b) produces distributions of a basically similar
form. That is, for a given percentage of results outside the expected
range, there is a predictable set of "out of range" values, and
predictable frequencies for all values within and outside the range.
6. Once again, a (simple) addition to any values outside the
expected range, produces a distribution of values indistinguishable
from one where all values produced are within the expected range.
(email me direct for copies of RAND() results)
Some personal observations
Having formerly been a frequent contributor to these forums, I was
somewhat saddened to see the change in tone that seems to have crept
in more recently.
One regular correspondent appears renowned for public fault-picking.
Just this once I wish to do the same in an attempt to redress the
issue, and will not debate the matter further publicly.
I find this sort of behaviour irritating, distracting, inappropriate,
unprofessional, and demeaning to all concerned.
Those who give freely of their own time deserve better than this.
Perhaps more importantly, on the RAND() issue, we have recently seen a
sweeping "proof" that if the use of ABS(RAND()) produces a skewed
distribution, so "MUST" the use of x+1. This was presumably based on
some ill-founded assumption.
I find it incomprehensible that someone of that author's background,
experience, qualifications and personal beliefs could make such a
statement in a global forum without checking the facts.
For this "foul" alone I would like to wish that contributor well on
his (hopefully) self imposed "time out", and trust that if/when he
returns it will be with a new spirit of goodwill and co-operation. I
feel sure that in the next month or two, problems will continue to be
answered in a timely manner.
"Discovery is seeing what everyone else has seen
And thinking what no-one else has thought"
David Byrne
Melbourne Australia
I know the Hot Fix is out, but this is a Provable Workaround
The following is based on a VERY large battery of tests using up to
130,000 cells at a time.
1. The percentage of negative numbers generated by Rand() varies
from less than 1 to over 90.
2. This is a bimodal distribution, with peak frequencies of around
16% and 84%.
3. Across around a hundred samples of 100,000 cells, the effect of
adding 1 where the number generated is negative, produces a
distribution indistinguishable from ones where all values are
positive.
4. In the "16%" and "84%" examples, "creative" plotting of the
frequencies at 0.1 intervals from -1 to + 1 produces a graph not
unlike a Normal Distribution. From these graphs, and the similar ones
for other percentages, the result (3) above is almost intuitive.
5. RANDBETWEEN(a,b) produces distributions of a basically similar
form. That is, for a given percentage of results outside the expected
range, there is a predictable set of "out of range" values, and
predictable frequencies for all values within and outside the range.
6. Once again, a (simple) addition to any values outside the
expected range, produces a distribution of values indistinguishable
from one where all values produced are within the expected range.
(email me direct for copies of RAND() results)
Some personal observations
Having formerly been a frequent contributor to these forums, I was
somewhat saddened to see the change in tone that seems to have crept
in more recently.
One regular correspondent appears renowned for public fault-picking.
Just this once I wish to do the same in an attempt to redress the
issue, and will not debate the matter further publicly.
I find this sort of behaviour irritating, distracting, inappropriate,
unprofessional, and demeaning to all concerned.
Those who give freely of their own time deserve better than this.
Perhaps more importantly, on the RAND() issue, we have recently seen a
sweeping "proof" that if the use of ABS(RAND()) produces a skewed
distribution, so "MUST" the use of x+1. This was presumably based on
some ill-founded assumption.
I find it incomprehensible that someone of that author's background,
experience, qualifications and personal beliefs could make such a
statement in a global forum without checking the facts.
For this "foul" alone I would like to wish that contributor well on
his (hopefully) self imposed "time out", and trust that if/when he
returns it will be with a new spirit of goodwill and co-operation. I
feel sure that in the next month or two, problems will continue to be
answered in a timely manner.
"Discovery is seeing what everyone else has seen
And thinking what no-one else has thought"
David Byrne
Melbourne Australia