How to calculate probability of a value under Weibull distribution?
1
0
Entering edit mode
4.0 years ago
star ▴ 350

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 • 1.6k views
1
Entering edit mode

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.

2
Entering edit mode
4.0 years ago

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.

1
Entering edit mode