Maximize[{PDF[NormalDistribution[0, sigma], x], sigma > 0}, x, Reals]
Just returns unevaluated (when, obviously, it should return 0
along with the function value there).
Any ideas?
Edit: This seems to be a general trend over many PDFs:
Maximize[{PDF[GammaDistribution[a, b], x], a > 0 && b > 0 && x > 0}, x]
returns unevaluated, as does:
Maximize[{PDF[LogNormalDistribution[mu, sigma], x], mu > 0 && sigma > 0 && x > 0}, x]
and:
Maximize[{PDF[StudentTDistribution[nu], x], nu > 0 && x > 0}, x]
and so on... I should have specified but I'm not interested in finding the modes of a specific case (like the normal), but more interested in why Mathematica can't handle these.
Maximize[{(-(x^2/(2* sigma^2))), sigma > 0}, x]
shows, the assumption is not taken into account. $\endgroup$Maximize
has problems with transcendental functions. $\endgroup$