How to display probabilities calculated for each data point
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
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
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:
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!