Register to reply 
Normally distributed numbers... 
Share this thread: 
#1
Feb1612, 07:15 AM

P: 77

Hi.
Any ideas how to generate in any software R, Matlab etc normally distributed random numbers by one condition so they will be integers like 1, 2,3...and not decimal values. I tried to round up the generated decimal values but in my guess normality is doubted after that. Regards 


#2
Feb1612, 07:37 AM

Mentor
P: 18,291

You will have to be clearer than this. A distribution which only takes on integers can never be normal.
What is it you really want?? 


#3
Feb1612, 07:46 AM

P: 77

Thanks,
I mean I need to generate some sample data like 9.00 AM 9.04 AM 9.07 AM but with condition that interarrival times are normally distributed. That's why I need some numbers like 4 (9.04AM 9.00AM ) etc normally distributed. Any help on this? 


#4
Feb1612, 08:24 AM

P: 206

Normally distributed numbers...
Arrivals are continuous. Your numbers will be real. You can round them if you like but if you do that then the approximation to normal depends on the parameters of the distribution.
I don't know what you're trying to do, but has it occurred to you that modeling arrivals with a normal distribution allows for the possibility of an arrival occurring before the previous arrival? You might want to consider that. 


#5
Feb1612, 10:41 AM

P: 77

Can you please explain something more about?
Regards 


#6
Feb1612, 12:05 PM

P: 206

I don't know which part you're referring to. For the first, just consider a normal density with s.d.=.01 vs. one with a very large s.d. If you draw from the first and round everything to the nearest integer then you basically end up with the mean for virtually all of your points. In the second case you could round to the nearest integer and still "approximate" normal, whatever that means in your context.
As to the second point, interarrival times are positive. T1 is the time from zero to the first arrival, T2 is the time from T1 of the second arrival, etc. So the times are usually described with a density that is zero for t<0 such as an exponential. If you use a normal distribution then you permit negative values and risk that, for example, T2<0, and your second arrival occurred prior to your first. You would take this into account in the context of what exactly you are trying to do. 


Register to reply 
Related Discussions  
X is normally distributed and the mean of X  Calculus & Beyond Homework  2  
How are the Real Numbers distributed?  Set Theory, Logic, Probability, Statistics  2  
Normally Distributed.  Precalculus Mathematics Homework  2  
Distributed Loads (When to Cut)  General Physics  0  
Distributed Computing  Computing & Technology  15 