How do I find the probability of random data

4 Ansichten (letzte 30 Tage)
SANKHYADIP  DEB
SANKHYADIP DEB am 10 Mär. 2015
Beantwortet: Image Analyst am 13 Mär. 2015
I am having 200-300 random data,I want to find the probability of that one particular value, which is not in those data but it is present in data range and other value which is not in that data range for example- I am having 1,2,3,4,5 Now I want to find the probability of occurring 2.2 and 6.2 How to do that?
  1 Kommentar
Bilgehan paray
Bilgehan paray am 10 Mär. 2015
Do you mean that you need to estimate pdf which resulted in those 200-300 random data? From that estimate you can find the prob. of those numbers.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 13 Mär. 2015
If you have floating point values, like 2.2, 6.2, 3.141592653587973, 2.718281828, 123.456789, and so on, the probability of getting an exact value is virtually null/infinitesimal. If you're willing to specify a tolerance around the values, like any 0.1 wide range around 2.2 or 6.2, then you can use histc() to build a histogram. If you have a bin covering the range 2.15 to 2.25, then you can get an estimate of the likelihood your value will be in that range from the histogram. But to get an exact value out to the 64 bit double precision of the computer - no, you most likely will never ever get that number exactly so the probability is zero or some small number like 10^-53 or something (I'm sure others here will know the exact number).

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by