- What do the two different rows of x values represent? Two independent samples of the x's for the same population cdf? Two different cdfs you want to estimate?
- What does "peak" mean here? It's not clear to me how it is relevant to the pdf calculation.
how to get Gamma pdf from gamma cdf?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, everybody.
My question is this. i have a gamma cdf( cumulative distribution function) and corresponding x, now i want to get gamma pdf( probability distribution function) from the cdf data.
I have a the cdf and the corresponding x. such as:
peak 10% 30% 50% 70% 90% ///
49 17 42 64 91 136 ///
53 18 45 69 97 145
the first row is the cdf,this second and third row are the corresponding x, in meters.
I need get probability from 0 to 135m the step can be set 5 meter at interval.
How can I do this? thanks.
4 commentaires
the cyclist
le 16 Jan 2014
John, your comment confuses me, and I hope you can help me understand. He has values of x, and the corresponding cumulative percentages at those x values. Isn't that a CDF (albeit a very sparse and empirical one)? I trust your expertise enough to believe that there is a nuance here, but I don't see it.
John D'Errico
le 16 Jan 2014
No. That is NOT a CDF. A CDF is a Cumulative Distribution Function. A list of points FROM any function is not the function itself, but just a list of points. You may choose to interpolate those points, so getting a function that you may interpret as an empirical approximation to the CDF you so desire. But so far, all we have seen are a list of points from some function, without any information as to the source of those values. Unless you know the parameters of the Gamma CDF that putatively would produce these points, you don't have the true CDF.
An issue is that if all we have are a set of points that the poster CLAIMS represent points from a gamma CDF, then we don't really know that they do arise from any gamma CDF at all. For example, I can provide a set of points representing a distribution that is clearly bimodal, but claim that it "is" a Normal CDF. I'd be wrong of course.
So the problem seems most likely to do a distribution fit, trying to find the most reasonable Gamma distribution to match that list of points. There are tools for this in the stats TB.
Réponse acceptée
the cyclist
le 16 Jan 2014
Modifié(e) : the cyclist
le 16 Jan 2014
I think the page http://www.mathworks.com/help/stats/examples/fitting-a-univariate-distribution-using-cumulative-probabilities.html explains the approach you could take. You'll probably want to read the whole page, but the most relevant part is probably the section entitled "Non-Location-Scale Families", where gamma fitting is discussed explicitly.
2 commentaires
Youssef Khmou
le 16 Jan 2014
so how many approaches do exist to find the corresponding pdf, from samples, besides computing the histograms?
Plus de réponses (1)
Youssef Khmou
le 16 Jan 2014
Modifié(e) : Youssef Khmou
le 16 Jan 2014
You differentiate the Cumulative distribution function with respect to x to get the density :
Pdf=diff(Cdf)./diff(x);
2 commentaires
the cyclist
le 16 Jan 2014
This approach does not take into account the fact that OP knows his data is from a gamma distribution.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!