Hello, I have a problem in Mathematica and I don’t know if you could help me. I’m trying to compare the “performance” of a Laplace distribution and a Generalized Pareto Distribution (GPD) for the tail of a distribution of returns. But, as you can see in the image, when I truncate the histogram to fit the tail to a GPD and try to compare them in the histogram, the PDF histogram has changed its probabilities (like changing its scale). How can I plot them so the GPD represents the probability of the tail of the original histogram?
I would like to have something similar to this second image but in a PDF histogram because I want to have the half Laplace and the GPD in the same "scale". Sorry, I`m new here. Here is the code:
q = Quantile[wReturns, 0.5]
tail = Cases[wReturns, x_ /; x >= q];
ldist = EstimatedDistribution[wReturns, LaplaceDistribution[a, b]]
pdist = EstimatedDistribution[tail, ParetoPickandsDistribution[a, b, c]]
Show[Histogram[{tail, wReturns}, Automatic, PDF, PlotRange -> All], Plot[{PDF[ldist, x], PDF[pdist, x]}, {x, Min[tail], Max[tail]}, PlotRange -> All]]
WReturns is a vector of Returns and GPD is the Generalized Pareto Distribution (or Pareto Picklands).
Sorry if the question is not clear. I will edit again if necessary.
I've found this picture. I would like to have a plot like this (or at least half of this plot):
I do not know how to do it with the truncated Laplace distribution.
Thank you in advance.
ldist
andpdist
. While I assume that GPD is "generalized Pareto distribution", you should not use acronyms without spelling them out the first time they are used. Please edit your question. $\endgroup$