Question

The Weibull distribution was introduced in Sect. 3.5. (a) Find the inverse cdf for the Weibull...

The Weibull distribution was introduced in Sect. 3.5.

(a) Find the inverse cdf for the Weibull distribution.

(b) Write a program to simulate n values from a Weibull distribution. Your program should have three inputs: the desired number of simulated values n and the two parameters α and β. It should have a single output: an n x 1 vector of simulated values.

(c) Use your program from part (b) to simulate 10,000 values from a Weibull(4, 6) distribution and estimate the mean of this distribution. The correct value of the mean is 6Γ(5/4) = 5.438; how close is your sample mean?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

If X follows weibull distribution then cumulative distribution function of x is ,

F(x;k,\lambda) = 1- e^{-(x/\lambda)^k}\,

\therefore 1-F=e^{(x/\lambda )^{k}}

therefore \therefore {(x/\lambda )^{k}}=ln(1-F) \Rightarrow x=\lambda(ln(1-F)) ^{1/k}

\Rightarrow x=\lambda(ln(1-F)) ^{1/k}is inverse cdf of random variable x

here F~U(0,1)

Therefore considering random sample from U(0,1) we can generate random sample x

consider following code in matlab

n=10000
k=4
l=6
for i=1:n
F(i)=unifrnd(0,1);
x(i)=l*(-log(1-F(i)))^(1/k);
end
m=mean(x)

m=5.4708

this implies populaio mean is equal to sample mean

Add a comment
Know the answer?
Add Answer to:
The Weibull distribution was introduced in Sect. 3.5. (a) Find the inverse cdf for the Weibull...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. Show the PDF and CDF of two-parameters of Weibull distribution (1) Use MATLAB to plot...

    4. Show the PDF and CDF of two-parameters of Weibull distribution (1) Use MATLAB to plot three Weibull PDFS with the parameters (a) 7 = 100,B = 1.25 ; (b) 100, B 4 and (c) 10,B 1.25 (2) For the Weibull distribution with the distribution parameter 7 = 20, B =1.5, calculate its = mean and standard deviation (3) For the Weibull distribution with the distribution parameter ) = 20, B =1.5, calculate the probabilities: PCX<80), PCX<40), P(10<X<90) 4. Show...

  • [25 points] Problem 4 - CDF Inversion Sampling ers coming from the U(0, 1) distribution into...

    [25 points] Problem 4 - CDF Inversion Sampling ers coming from the U(0, 1) distribution into In notebook 12, we looked at one method many pieces of statistical software use to turn pseudorandom those with a normal distribution. In this problem we examine another such method. a) Simulating an Exponential i) The exponential distribution has pdf f(x) = le-ix for x > 0. Use the following markdown cell to compute by hand the cdf of the exponential. ii) The cdf...

  • 1 Program 2-paramter Weibull distribution with β 100 rows by copying down the equation from Table...

    1 Program 2-paramter Weibull distribution with β 100 rows by copying down the equation from Table 4.1. In the next column generate 1000 rows and in the next column 10 000 rows. Calculate the mean and standard deviation for each column. By hitting Recalculate' (typically F9) observe the mean and standard deviation values. What can you say about the variation for each group? 3.0 and η 000 into Excel spreadsheet and generate 2. When simulating the function Z-X where X...

  • Finish the following question by showing your Code in R. (μ , σ ). With yield...

    Finish the following question by showing your Code in R. (μ , σ ). With yield reasonably close result as the R regression model b) Simulate at least 4 different simple linear regression scenarios by modifying the mean, the standard 3. Gven a simulated da taset X, and Y-A) + β, x-c, where X ~ N(3.6.2), and ~ the fixed parameters A,-50, and β1: 6, use the code provided in class to answer the following: a) Verify the explicit derivation...

  • Question 3 A more general form of Cauchy distribution is defined by the density function f(x;...

    Question 3 A more general form of Cauchy distribution is defined by the density function f(x; m, 7) = where m is the location parameter, is the scale parameter and they are both constants. We will create a function to simulate draws of a Cauchy(m, 7) distribution in this exercise using the inversion method. (a) (4 points) Derive the cdf, and the inverse function of cdf for Cauchy(m, n). Describe a procedure to generate independent observations from a Cauchy(m, 7)...

  • Using R, Exercise 4 (CLT Simulation) For this exercise we will simulate from the exponential distribution....

    Using R, Exercise 4 (CLT Simulation) For this exercise we will simulate from the exponential distribution. If a random variable X has an exponential distribution with rate parameter A, the pdf of X can be written for z 2 0 Also recall, (a) This exercise relies heavily on generating random observations. To make this reproducible we will set a seed for the randomization. Alter the following code to make birthday store your birthday in the format yyyymmdd. For example, William...

  • Hello, please help solve problem and show all work thank you. (Linear models) Suppose we have a vector of n observations Y (response), which has distribution Nn(XB.ση where x is an n × p matrix of kn...

    Hello, please help solve problem and show all work thank you. (Linear models) Suppose we have a vector of n observations Y (response), which has distribution Nn(XB.ση where x is an n × p matrix of known values (indepedent variables), which has full column rank p, and β is a p x 1 vector of unknown parameters. The least squares estimator of ß is 4. a. Determine the distribution of β. xB. Determine the distribution of Y b. Let Y...

  • Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sur...

    I am just wanting the first question answered. Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sure to include descriptions and explanation in your cod Save them in a file named project3-yourname.R and email them to ysarolousi.edu be date. A model for stock prices Let S, be the closing price of a stock at the end of day j, where j model for the evolution of the future daily closing prices:...

  • What you have Distribution of X. Find the mean and standard deviation of Sampling Distribution. To...

    What you have Distribution of X. Find the mean and standard deviation of Sampling Distribution. To do this, click on: c STAT → BASIC STATISTICS → DISPLAY DESCRIPT STATISTICS On the input screen that appears, select C3 for the Variable. The results will be in the Session Window. Wait until after to print the Session Window.) a. How does the mean of C3 (x) compare to the mean of the original population, μ? Recall that the mean of the original...

  • If X ~ N(0, σ2), then Y function of Y is X follows a half-normal distribution; i.e., the probabil...

    If X ~ N(0, σ2), then Y function of Y is X follows a half-normal distribution; i.e., the probability density This population level model might arise, for example, if X measures some type of zero-mean difference (e.g., predicted outcome from actual outcome) and we are interested in absolute differences. Suppose that Yi, ½, ,y, is an iid sample from fy(ylơ2) (a) Derive the uniformly most powerful (UMP) level α test of 2 2 0 versus Identify all critical values associated...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT