I'm doing some research on truncated distributions, specifically on the Truncated Pareto distribution. This has a known density function and probability function, so one is able to design the quantile function and with that a 'random generate numbers' function.
But now that I have these functions, let's say that dtp(x,lower,upper,alpha)
is my density function, how do I plot in fact the density? I know that there exists commands like density()
which uses kernel estimation, but one should however be able to plot the density function with the aid of the density function itself and with random numbers following said distribution?