Weibull Distribution Homework: Generating Random Observations from Weibull(k,λ)

  • Thread starter Thread starter squenshl
  • Start date Start date
  • Tags Tags
    Distribution
Click For Summary

Homework Help Overview

The discussion revolves around generating random observations from a Weibull distribution, which is commonly used in survival analysis. The original poster seeks guidance on how to derive a method for transforming uniform random variables into Weibull-distributed random variables.

Discussion Character

  • Exploratory, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the relationship between uniform random variables and the Weibull distribution, considering functions that could facilitate this transformation. There are hints about using the cumulative distribution function (CDF) of the Weibull distribution.

Discussion Status

Some participants have offered hints without providing complete solutions, suggesting that the transformation involves a function of a uniform random variable. There is an acknowledgment that the derivation may not be straightforward.

Contextual Notes

Participants note that the problem may be challenging as it typically involves concepts that are usually taught rather than derived independently. There is also mention of searching for additional resources to aid understanding.

squenshl
Messages
468
Reaction score
4

Homework Statement


The Weibull distribution is used frequently as a lifetime distribution and is so is used a lot in survival analysis. It can be parameterised as:##f(x;\lambda,k) = \frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}e^{-\left(\frac{x}{\lambda}\right)^k}## for ##x\geq 0## & ##0## for ##x < 0##, where ##k > 0## is called the shape parameter and ##\lambda > 0## is called the scale parameter of the distribution.

I have shown that it is a PDF, found the CDF, median value, Variance & failure rate. My question is how would I describe how you would generate random observations from a ##\text{Weibull}(k,\lambda)## distribution from random ##\text{Uniform}(0,1)## observations.

Homework Equations

The Attempt at a Solution


I don't even know where to begin. Please help.
 
Physics news on Phys.org
Hmm. This is something that would usually just be taught, rather than asking the student to derive it, as the answer is not terribly obvious.
I'll try to give a hint that doesn't give the whole thing away.
The desired random variable W will be a function of U where U is a Uniform[0,1] random variable.
Can you think of a suitable function to use that will have the desired properties, given the functions you have worked out above and their properties, including domain and range?
 
squenshl said:

Homework Statement


The Weibull distribution is used frequently as a lifetime distribution and is so is used a lot in survival analysis. It can be parameterised as:##f(x;\lambda,k) = \frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}e^{-\left(\frac{x}{\lambda}\right)^k}## for ##x\geq 0## & ##0## for ##x < 0##, where ##k > 0## is called the shape parameter and ##\lambda > 0## is called the scale parameter of the distribution.

Homework Equations

The Attempt at a Solution


I don't even know where to begin. Please help.

Google "Generation of random variable" or "...random variate".
 
andrewkirk said:
Hmm. This is something that would usually just be taught, rather than asking the student to derive it, as the answer is not terribly obvious.
I'll try to give a hint that doesn't give the whole thing away.
The desired random variable W will be a function of U where U is a Uniform[0,1] random variable.
Can you think of a suitable function to use that will have the desired properties, given the functions you have worked out above and their properties, including domain and range?
Oh right. I used the CDF of the Weibull distribution and noted that if ##U## is Uniform, then so is ##1-U## to get the desired result.
 

Similar threads

Replies
2
Views
12K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
13K
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
1
Views
2K
Replies
9
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K