Question

Question 6. Using only a random number generator that simulates a random number between [0,1], simulate...

Question 6. Using only a random number generator that simulates a random number between [0,1], simulate 1,000 iterations of the following random variables:

a) X ~ exp(5)

b) X such that f(x) = 3x2 , 0 ≤ x ≤ 1

For both (a) and (b), plot a histogram of your simulated random variable. Estimate ?̅ and s2. Compare these values to E(X) and Var(X).

Homework Answers

Answer #1

GIVEN THAT

Using only a random number generator that simulates a random number between [0,1].

(a) exponential (5)

Inverse tranformation

U=

-5x=log(l-U)

x=

(b) we have

=

=3

The inverse transformation

U=

x=

We were unable to transcribe this image

R Graphics. Device 2 (ACTIVE) histogram of mean1 250 200 200 150 150 Frequency 100 BE 100 50 0 0.18 0.19 0.20 0.21 0.22 mean1 CS Scanned with CamScanner

R Graphics: Device 2 (ACTIVE) histogram of variance1 200 150 Frequency 100 0.030 0.035 0.040 0.045 0.050 variance 1 Scanned with CamScanner

> #b) > mean2=c0 > variance2-ci > for(i in 1:1000) 02-runit (1000, 0, 11 Biances t racta mean maz histogram of meat ) et ivarzarca 2, Lainhi stoguan of variance2"}

QR Graphics: Device 2 (ACTIVE) DX histogram of variance2 250 200 150 Frequency i 100 50 0.032 0.034 0.036 0.038 0.040 0.042 0.044 variance2 ES Scanned with CamScannen

CORR Graphics Device 2 (ACTIVE) histogram of mean2 300 250 200 Frequency 150 100 50 0.73 0.75 MM 0.76 0.77 cs Scanned with mean2 CamScanner

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
We are given a random number generator that generates a uniform random variable X over the...
We are given a random number generator that generates a uniform random variable X over the interval [0,1]. Suppose we flip a fair coin and if H occurs, we report X and if T occurs, we report 2X + 1. Let Y be the reported random variable. (a) Derive the cdf and pdf of Y [15 points]. (b) Which one is more likely to occur: Y ∈ [0,1] or Y ∈ [1,2]? Explain your answer [10 points].
We are given a random number generator that generates a uniform random variable X over the...
We are given a random number generator that generates a uniform random variable X over the interval [0, 1]. Suppose we flip a fair coin and if H occurs, we report X and if T occurs, we report 2X + 1. Let Y be the reported random variable. (a) Derive the cdf and pdf of Y (b) Which one is more likely to occur: Y ∈ [0,1] or Y ∈ [1,2]? Explain your answer.
The​ random-number generator on calculators randomly generates a number between 0 and 1. The random variable​...
The​ random-number generator on calculators randomly generates a number between 0 and 1. The random variable​ X, the number​ generated, follows a uniform probability distribution. ​(a) Identify the graph of the uniform density function. ​(b) What is the probability of generating a number between 0.740.74 and 0.910.91​? ​(c) What is the probability of generating a number greater than 0.930.93​?
Question 2 Please submit worked solutions, including a copy of Stata commands and graphs to the...
Question 2 Please submit worked solutions, including a copy of Stata commands and graphs to the following questions. (a) Suppose a random variable X has pdf f(x) = 2xe−x2, where x > 0. Draw a random sample of size 10000 from this distribution. Draw a histogram of the 10000 sampled values and obtain the sample mean and standard deviation. (b) Using your sample obtained above, draw a histogram and calculate mean and variance for 10000 sampled values for the random...
Problem 1: Relations among Useful Discrete Probability Distributions. A Bernoulli experiment consists of only one trial...
Problem 1: Relations among Useful Discrete Probability Distributions. A Bernoulli experiment consists of only one trial with two outcomes (success/failure) with probability of success p. The Bernoulli distribution is P (X = k) = pkq1-k, k=0,1 The sum of n independent Bernoulli trials forms a binomial experiment with parameters n and p. The binomial probability distribution provides a simple, easy-to-compute approximation with reasonable accuracy to hypergeometric distribution with parameters N, M and n when n/N is less than or equal...
(1) Using a generator for a binomial distribution, we will test the results of Example 3.8.2....
(1) Using a generator for a binomial distribution, we will test the results of Example 3.8.2. Using software generate 500 random deviates for X from a B(10, 0.3) distribution and 500 random deviates for Y from a B(5, 0.3) distribution. Add corresponding random deviates from each distribution to form an empirical W=X+Y. Then use the theoretical result of Example 3.8.2 and directly generate another 500 random deviates for W from a B(15, 0.3). Order the result of the sum of...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Let X be the random variable representing the difference between the number of headsand the number...
Let X be the random variable representing the difference between the number of headsand the number of tails obtained when a fair coin is tossed 4 times. a) What are the possible values of X? b) Compute all the probability distribution of X? c) Draw the cumulative distribution function F(x) of the random variable X.
A continuous random variable may assume a. a finite number of values. b. only one value...
A continuous random variable may assume a. a finite number of values. b. only one value c. all values in an interval or collection of intervals d. all positive integers e. Non-numerical values such as categories or types 1 points    QUESTION 9 Let F be the cumulative distribution function for a continuous random variable X. It is known at the following 5 points. F(0)=0 F(1)=0.4 F(2)=0.7 F(3)=0.9 F(4)=1 Which of the following is wrong? a. Pr(1<X<3)=50% b. Pr(X<0)=100% c....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT