how to get Gamma pdf from gamma cdf?

2 visualizzazioni (ultimi 30 giorni)
Genhou
Genhou il 16 Gen 2014
Commentato: Genhou il 24 Gen 2014
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 Commenti
the cyclist
the cyclist il 16 Gen 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
John D'Errico il 16 Gen 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.

Accedi per commentare.

Risposta accettata

the cyclist
the cyclist il 16 Gen 2014
Modificato: the cyclist il 16 Gen 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 Commenti
Youssef  Khmou
Youssef Khmou il 16 Gen 2014
so how many approaches do exist to find the corresponding pdf, from samples, besides computing the histograms?

Accedi per commentare.

Più risposte (1)

Youssef  Khmou
Youssef Khmou il 16 Gen 2014
Modificato: Youssef Khmou il 16 Gen 2014
You differentiate the Cumulative distribution function with respect to x to get the density :
Pdf=diff(Cdf)./diff(x);
  2 Commenti
the cyclist
the cyclist il 16 Gen 2014
This approach does not take into account the fact that OP knows his data is from a gamma distribution.
Youssef  Khmou
Youssef Khmou il 16 Gen 2014
alright it is particular answer.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by