Are there examples, functions in Pymc3 to calculate
I have data–> i fit it to a gumbel, → i update my model
I want to know 5 percentile of prior of X, posterior distribution of X and posterior predictive distribution of X
Very similar to the concept of PPF in scipy stats/frequentistic apporach
ppf(q, s, loc=0, scale=1)** Percent point function (inverse of cdf — percentiles).
Something like this (where i can find the (X,0.05 given Data)
pm.sample gives you a big array of samples; so pass it to np.percentile on it to grab the appropriate percentiles. As this is a random sample, this won’t be exact. You can sample 10 chains, and obtain percentiles for each chain, to establish the sampling uncertainty of the percentile (or you can use lots of samples).