Question

In: Statistics and Probability

I'd like to have 30 random numbers generated which are distributed a) exponentially b) uniform c)...

I'd like to have 30 random numbers generated which are distributed

a) exponentially

b) uniform

c) normal

d) binomial

e) Poisson

Would you please generate 30 random numbers regarding these distributions above, please?

Mean=3


Variance is 2

Solutions

Expert Solution

Note:

  1. I have generated the random numbers using R. I am posting the following random nos. with Mean = 3 and Variance = 2.
  2. Also, Poisson Distribution has mean = variance, so I have generated 30 poisson variates using mean = 3

Exponential Variates: Mean = 3 and Rate (lambda) = 1/3

6.12405091 1.56378689 0.58907049 3.72425456 0.53281157 5.40521743 1.22549739 0.78002833
1.44778654 4.00271708 0.12015778 0.31206877 0.16223254 5.08650530 0.47559074 2.14431983
0.03888910 0.78374765 1.90625097 1.85884847 2.27775082 0.07041744 2.87155559 0.32581550
0.52401560 3.24002486 1.31517530 1.58642555 1.51100128 6.23794154

Uniform Variates: Mean = 3 and Variance = 2 implies a = 0.5505 and b = 5.4495

3.9799577 1.3469375 2.6235133 2.3269012 2.7647163 1.3105756 3.5081283 2.6333551 4.6484019
4.1205721 3.6214546 5.1009984 0.6282884 4.9423345 3.5407816 4.0720791 1.6734096 2.3817502
2.8462531 2.4227601 4.9195090 2.6131532 1.9795015 5.2851279 1.6162147 2.0669622 1.6775543
4.1111315 3.6982137 2.0835242

Normal Variates: Mean = 3 and Variance = 2

0.30097653 1.39755639 3.67844996 1.94967500 2.80540596 2.45670503 6.08157267
2.91324234 4.90851393 2.29575358 2.37598274 4.58994742 4.00319100 2.89266819
1.92703111 4.17427228 3.38824334 2.30138067 2.77183187 3.40041563 2.60020459
2.77649700 0.39505529 -0.08442628 1.80187258 4.52287469 2.10877891 4.01711749
3.23014636 4.91806523

Binomial Variates: Mean =3 and Variance = 2 implies n = 9 and p = (1/3)

3 1 4 3 5 5 1 2 3 3 3 2 2 3 4 2 4 3 0 2 7 4 1 4 3 2 3 3 2 4

Poisson Variates: Mean = Variance = 3 ( I have taken this)

1 2 5 2 6 0 4 2 4 0 2 4 1 3 1 4 3 5 1 3 2 3 1 0 3 3 5 3 1 1

R- Code:


Related Solutions

c++ give ways of filling array of uniform random numbers
c++ give ways of filling array of uniform random numbers
how would you use randomly generated numbers to find 30 random numbers from 1 to 500?
how would you use randomly generated numbers to find 30 random numbers from 1 to 500?
Suppose you have access to a random number generator Rng() that generates uniform random numbers in...
Suppose you have access to a random number generator Rng() that generates uniform random numbers in {0, 1, . . . , n − 1}. Design a function uses Rng() generate a uniform random number in {0, 1, . . . , m − 1}, where m ≤ n
A random variable X is exponentially distributed with a mean of 0.21. a-1. What is the...
A random variable X is exponentially distributed with a mean of 0.21. a-1. What is the rate parameter λ? (Round your answer to 3 decimal places.) a-2. What is the standard deviation of X? (Round your answer to 2 decimal places.) b. Compute P(X > 0.36). (Round intermediate calculations to at least 4 decimal places and final answer to 4 decimal places.)
A random variable X is exponentially distributed with an expected value of 50. a-1. What is...
A random variable X is exponentially distributed with an expected value of 50. a-1. What is the rate parameter λ? (Round your answer to 3 decimal places.) a-2. What is the standard deviation of X? b. Compute P(44 ≤ X ≤ 56). (Round intermediate calculations to at least 4 decimal places and final answer to 4 decimal places.) c. Compute P(36 ≤ X ≤ 64). (Round intermediate calculations to at least 4 decimal places and final answer to 4 decimal...
1- Write a function f(n,a,b) that generates n random numbers # from Uniform(a,b) distribution and returns...
1- Write a function f(n,a,b) that generates n random numbers # from Uniform(a,b) distribution and returns their minimum. # Execute the function with n=100, a=1, b=9. 2- Replicate the function call f(100,1,9) 100 thousand times # and plot the empirical density of the minimum of 100 indep. Unif(1,9)'s 3-Use the sampling distribution from (b) to find 95% confidence # interval for the minimum of 100 independent Unif(1,9)'s. Please solve in R
I'd like to test the efficiency of a new bug spray. I take 30 people and...
I'd like to test the efficiency of a new bug spray. I take 30 people and randomly assign one of two bug sprays to either their right or left arm. Bug spray 1 is laboratory tested and Bug spray 2 is just vinegar. Each individual is is then THROWN INTO AN INESCAPABLE CAGE WITH MANY MOSQUITOES. (Yes, I am an evil statistician). Once 30 minutes has passed for each individual, they are released and the number of bug bites on...
Why are random numbers generated with linear congruential methods not truly random? Describe the properties of...
Why are random numbers generated with linear congruential methods not truly random? Describe the properties of the sequence of numbers these types of methods will produce.
I'd like to have the same of this sample of the family nursing care plan but...
I'd like to have the same of this sample of the family nursing care plan but as a risk of fall nursing diagnosis from the water leaking Sample Family Nursing Care Plan (FNCP) Case: This is a case of S. Family. S. Family is composed of 5 children and both parents were alive. Upon observation the family practices improper hygiene in eating and waste disposal. The 5 children have 2 to 3 years of age gaps, having the youngest child...
Of the following intervals, which includes the most prime numbers? A. 20 and 30 B. 30...
Of the following intervals, which includes the most prime numbers? A. 20 and 30 B. 30 and 40 C. 40 and 50 D. 50 and 60 Please explain clearly. How do we even find prime numbers between these intervals. Thank you.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT