Question

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 variable Y = X2.
(c) From the pdf f(x) = 2xe−x2, where x > 0, find the distribution of Y = X2. The distribution of Y is a special case of which distribution? Hence, what are E(Y ) and Var(Y)? [Hint: look inside back cover of WMS!] Compare these values with your sample results above.

Homework Answers

Answer #1

a)

f(x) = 2xe−x2, where x > 0 it is the pdf of Weibull distribution with parameter ( =1, k=2) the pdf of weibull distribution is

command of r software

sample=rweibull(10000,2,1)
histo=hist(sample)
histo

> mean=mean(sample)
> std=sd(sample)
> mean
[1] 0.8845851
> std
[1] 0.4665082

b)

> y=sample^2
> mean(y)
[1] 1.000099
> sd(y)
[1] 1.011358

> histo2=hist(y)

c)

E(Y)=1

Var(Y)=1

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
a) Suppose that X is a uniform continuous random variable where 0 < x < 5....
a) Suppose that X is a uniform continuous random variable where 0 < x < 5. Find the pdf f(x) and use it to find P(2 < x < 3.5). b) Suppose that Y has an exponential distribution with mean 20. Find the pdf f(y) and use it to compute P(18 < Y < 23). c) Let X be a beta random variable a = 2 and b = 3. Find P(0.25 < X < 0.50)
WILL LIKE POST!!!!! 2. A continuous uniform random variable defined between 0 and 12 has a...
WILL LIKE POST!!!!! 2. A continuous uniform random variable defined between 0 and 12 has a variance of: Select one: a. 12 b. 24 c. 144 d. 6 5.A probability plot shows: Select one: a. Percentile values and best fit distribution. b. Percentile values of a proposed distribution and the sample percentages. c. Percentile values of a proposed distribution and the corresponding measurements. d. Sample percentages and percentile values. 7. Consider a joint probability function for discrete random variables X...
The given problems are from Mathematical Statistics. Kindly solve the problems below with detail explanation. Please...
The given problems are from Mathematical Statistics. Kindly solve the problems below with detail explanation. Please do not use short cut terms. Neat and clean writing and explanation will be helpful. The problems are: (1) It is not known what proportion p of the purchases of a certain brand of breakfast cereal are made by women and what proportion are made by men. In a random sample of 70 purchases of this cereal, it was found that 58 were made...
Let X ∼ Beta(α, β). (a) Show that EX 2 = (α + 1)α (α +...
Let X ∼ Beta(α, β). (a) Show that EX 2 = (α + 1)α (α + β + 1)(α + β) . (b) Use the fact that EX = α/(α + β) and your answer to the previous part to show that Var X = αβ (α + β) 2 (α + β + 1). (c) Suppose X is the proportion of free-throws made over the lifetime of a randomly sampled kid, and assume that X ∼ Beta(2, 8) ....
Let random variable X ∼ U(0, 1). Let Y = a + bX, where a and...
Let random variable X ∼ U(0, 1). Let Y = a + bX, where a and b are constants. (a) Find the distribution of Y . (b) Find the mean and variance of Y . (c) Find a and b so that Y ∼ U(−1, 1). (d) Explain how to find a function (transformation), r(), so that W = r(X) has an exponential distribution with pdf f(w) = e^ −w, w > 0.
1. For which type of continuous distribution are the mean and the median always the same?...
1. For which type of continuous distribution are the mean and the median always the same? uniform and normal distributions only all of the above uniform distribution exponential distribution normal distribution 2. The skewness of a normal distribution is: negative zero positive something that varies 3. The standard normal probability distribution has a mean of ______ and a standard deviation of ______. 0, 1 1, 0 1, 1 0, 0 4. Any normal probability distribution can be converted to a...
1. (a) Y1,Y2,...,Yn form a random sample from a probability distribution with cumulative distribution function FY...
1. (a) Y1,Y2,...,Yn form a random sample from a probability distribution with cumulative distribution function FY (y) and probability density function fY (y). Let Y(1) = min{Y1,Y2,...,Yn}. Write the cumulative distribution function for Y(1) in terms of FY (y) and hence show that the probability density function for Y(1) is fY(1)(y) = n{1−FY (y)}n−1fY (y). [8 marks] (b) An engineering system consists of 5 components connected in series, so, if one components fails, the system fails. The lifetimes (measured in...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the interval [4,8] as follows: random 10000 c1; uniform 4 8. (Do not forget the ”dot”) [3] a. Use mean command to find the sample mean ¯x of these data, ¯x=————- Note: The mean µ of a uniform distribution over an interval [a, b] is simply the middle of this interval, i.e. µ = (a + b)/2. [3] b. What is the mean µ of...
The random variable X is distributed with pdf fX(x, θ) = (2/θ^2)*x*exp(-(x/θ)2), where x>0 and θ>0....
The random variable X is distributed with pdf fX(x, θ) = (2/θ^2)*x*exp(-(x/θ)2), where x>0 and θ>0. Please note the term within the exponential is -(x/θ)^2 and the first term includes a θ^2. a) Find the distribution of Y = (X1 + ... + Xn)/n where X1, ..., Xn is an i.i.d. sample from fX(x, θ). If you can’t find Y, can you find an approximation of Y when n is large? b) Find the best estimator, i.e. MVUE, of θ?
Question 1 Refer to the probability function given in the following table for a random variable...
Question 1 Refer to the probability function given in the following table for a random variable X that takes on the values 1,2,3 and 4 X 1 2 3 4 P(X=x) 0.4 0.3 0.2 0.1 a) Verify that the above table meet the conditions for being a discrete probability distribution b) Find P(X<2) c) Find P(X=1 and X=2) d) Graph P(X=x) e) Calculate the mean of the random variable X f) Calculate the standard deviation of the random variable X...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT