[SciPy-user] Another problem with triangular pdf
Santiago Erquicia
serquiciamailing at fastimap.com
Wed Oct 22 17:39:06 EDT 2003
I'm working with the triangular pdf and I find that this is not normalized.
Given this values of x:
[ 1. 1.2 1.4 1.6 1.8 2. 2.2 2.4 2.6 2.8 3. ]
and getting the values of the triangular pdf as follows:
scipy.stats.triang.pdf(x, distr_shape, loc = distr_location, scale =
distr_scale)
where
distr_shape = 2.0
distr_location = 1.0
distr_scale = 0.5
that represents a triangular distribution with min = 1, mode = 2, and
max = 3
the results are:
[ 0. 0.2 0.4 0.6 0.8 1. 0.8 0.6 0.4 0.2 0. ]
Shouldn't the results be always less than 1 and the integral of the pdf
from min to x equal to the cdf?
Is there any other method that normalize the pdf?
Thanks,
Santiago
More information about the SciPy-User
mailing list