0
|
4974 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
GROUPS:

# Compute the derivative of the PDF of a StableDistribution

Posted 10 years ago
 Hi to everyone, I would like to evaluate somehow the derivative of the PDF of a StableDistribution in Mathematica 10, namely D[PDF[StableDistribution[0, 1.88134, 0.736172, -0.0601042, 0.101782], x],x]  numerically or by other means. I would like to plot it (say, in the interval {x,-8,8}) alone and combined with other functions that I know how to plot and evaluate. Thanks in advance!
3 Replies
Sort By:
Posted 10 years ago
 Thanks Udo,Your solution works very well for me and it is more elegant; it serves as well for other cases under study without specific changes. I tried ND before but I did not know that a package had to be loaded...Thanks again, and best wishes.
Posted 10 years ago
 I have found a way to do it, by means of the simple idea of approximating a derivative by the quotient of increments when the increment of the variable x is very small. It works very well and the graph is quite good.Thanks to everyone anyway.
Posted 10 years ago
 Another way to do it Needs["NumericalCalculus"] Plot[{PDF[StableDistribution[0, 1.88134, 0.736172, -0.0601042, 0.101782], x], ND[PDF[StableDistribution[0, 1.88134, 0.736172, -0.0601042, 0.101782], y], y, x]}, {x, -8, 8}, PlotStyle -> {Black, Red}, PlotRange -> All] `observe the usage of variables in the numerical approximation of the derivative, if done wrong, the plot is utterly silly, i.e. constant.