This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to calculate probability of a value under Weibull distribution?

I have fitted in R a Weibull distribution to my data like PD = fitdist(data,'Weibull'). Now I have a data point (e.g. x = 5) and I would like to calculate its probability under distribution.

How can I calculate the probability (like a p-value)?

Thanks in advance for any help!

r genome hic statistics

This question is more suited to Cross-validated. Be aware that you should put some more effort in the question, though.

Anyway, for continuous probability distributions, probabilities are represented by areas under the curve of the probability distribution. For a single point, the area under the curve is zero, thus its probability is also zero.

1 answer

In case you're looking for the cumulative distribution (i.e. P(X<=5)), check the pweibull() function in base R. As h.mon mentioned the P(x=5) = 0 for continuous random variables.

Log in to answer this question.