Generating random numbers with the occasional outlier

U

utsuxs

I can do this in excel
=RANDBETWEEN(120,160)

Is it possible to also occasionally generate numbers between 160-300
and 0-120? To use some stats lingo, I want the distribution between
120-160 to be 3 standard deviations with the remainder to be outside of
120-160. I hope I said that correctly.
If this is not possible in a spreadsheet can someone point me to a
software that can? Thank you.
 
J

joeu2004

I can do this in excel
=RANDBETWEEN(120,160)
Is it possible to also occasionally generate numbers between 160-300
and 0-120? To use some stats lingo, I want the distribution between
120-160 to be 3 standard deviations with the remainder to be outside of
120-160.

Are you sure you want a uniform distribution over 120-160 and
"occassionally" a uniform distribution over 0-120 and 160-300
independently? From your request, I wonder if you really want a normal
distribution over 0-300.
 
J

jjj912

I don't know what the statistical implications are of this solution,
but it will give you a random number between 120 and 160 with the
occasional random number between 160 and 300.

=if(RANDBETWEEN(1,1000)<2,RANDBETWEEN(160,300),RANDBETWEEN(120,160))
 
U

utsuxs

I don't know what the statistical implications are of this solution,
but it will give you a random number between 120 and 160 with the
occasional random number between 160 and 300.

=if(RANDBETWEEN(1,1000)<2,RANDBETWEEN(160,300),RANDBETWEEN(120,160))
Thanks.
Wasn't looking for a uniform distribution. Just needed a random number
generator using software I already have and know how to use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top