In: Statistics and Probability
continuous random variable and uniform distribution
please follow the comment. A random number generator spits out a random real number in the range [1,4]
assume each number is equally likely being out.
what is the probability that the model output an irrational number?
the answer is 1, but i don't understand
Probability of model output an irrational number is 1 because random number generator generally generates values upto 6 to 10 decimal places which is an irrational number. Therefore, every real number generated by random number generator in the range [1,4] is an irrational number.
To generate random number we need a calculator or mathematical software. I am using R studio to generate random number from uniform distribution [1,4]. Look at the image below:
I have generated 10 random number first and then 100 random number from uniform distribution[1,4]. In both cases all random numbers generated are irrational number i.e real number in 6 decimals.
Probability laws states that probability ranges from 0 to 1.
Probability is equal to 1 means that event is certain to happen which is in the case of above question. Irrational number is generated everytime, therefore, it is certain to happen. Therefore, probability is 1.