How to display probabilities calculated for each data point
이전 댓글 표시
Dear Support,
I have a data sample x=(x1,....,xn)
suppose I want to fit negative binomial distribution to the data.
ie. X =NB(r,p)
However, for each data point in the sample, how do I display the probabilities calculated at each data point using Matlab.
Thanks in advance.
Silas
댓글 수: 3
Image Analyst
2013년 5월 4일
I don't even know what that means. Your data is either true or false (1 or 0). You can have a PDF for the whole group of data that gives the likelihood that a particular element will be true or false, but I don't know what it means when you want to click on an element and then get the probability for just that element, as if it's different than for any other element or the set of data as a whole. Please explain by you think that each element has a probability function rather than being just a data sample.
Silas Adiko
2013년 5월 5일
Shashank Prasanna
2013년 5월 6일
편집: Shashank Prasanna
2013년 5월 6일
This is still not clear, the expected value of NB is pr/(1-p) is this what you want? What do you plan to do recursively? Probability for each data is obtained by using the CDF as I mentioned. Please clarify your required approach and what how you want to do this.
Please use the comment option under the answer to reply to my answer instead of the question here.
답변 (1개)
Shashank Prasanna
2013년 5월 5일
0 개 추천
Looks like you are interested in the negative binomial CDF. For your data X and for a given r and p maybe estimated from nbinfit you can use the CDF as described in the doc:
카테고리
도움말 센터 및 File Exchange에서 Univariate Discrete Distributions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!