How do I find the probability of random data

조회 수: 4 (최근 30일)
SANKHYADIP  DEB
SANKHYADIP DEB 2015년 3월 10일
답변: Image Analyst 2015년 3월 13일
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
Bilgehan paray
Bilgehan paray 2015년 3월 10일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 13일
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).

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by