0

I'm trying to calculate the shape and scale based on mean and standard deviation of a weibull distribution. If mean = 0 and sd = 1, the shape and scale both return NA. But for other values(such as mean = 1 and sd = 2), the result is perfect. Any requirement for the input parameters? I' m a beginner of statistic and R. Can someone help me out or give me any hint or reference? Thanks you so much.

mu = 0
sd = 1
sp = mixdist::weibullpar(mu, sd, loc = 0)$shape
sc = mixdist::weibullpar(mu, sd, loc = 0)$scale
asked Apr 10, 2023 at 19:57
6
  • 1
    What do you know about the Weibull distribution? In particular does it make any sense for a distribution that can only take values greater than 0 to have a mean of 0? Commented Apr 10, 2023 at 20:06
  • 2
    The support for Weibull distribution is 0 to positive infinite. It is impossible to have mean 0 and sd 1 Commented Apr 10, 2023 at 20:08
  • Hello Dason, thank you for the comment. I'm doing a simulation by creating a set of weibull distribution data based on mean and sd. So do you mean there is no practical significance passing mean = 0? Commented Apr 10, 2023 at 20:12
  • Thank you peter861222, can you provide me some reference please? Commented Apr 10, 2023 at 20:13
  • 1
    @Timon Not only is there no practical significance - it's just impossible. Commented Apr 10, 2023 at 20:15

1 Answer 1

1

For closure, the reason why a mean of 0 is inappropriate is that the Weibull distribution is defined on [0, ∞). Unless the distribution always returns 0—and is thus no longer a Weibull—the mean must be greater than 0.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.