I recently answered a question on the stats SE site which involved a $\text{Sinc}^2$ distribution with pdf:
f = (Sin[x]^2)/(Pi x^2)
... defined on the real line. Plotting it with code such as:
Plot[f, {x, -15, 15}, PlotRange -> All, AxesLabel -> {"x", "f"}]
yields:
(source: tri.org.au)
Another user commented that the plot seems to have a visual aberration ... it appears as though the pdf becomes negative each time it hits the $x$-axis (which it cannot actually do). Perhaps this is because the plotted curve is thicker than $x$-axis curve --- using PlotStyle -> Thin
seems to alleviate the problem. On the other hand, the problem becomes worse if I generate the picture, and then re-size it to be smaller, or use say ImageSize -> 300
.
I am wondering to what extent this is a visual aberration or a Mma plotting aberration? Is Mma actually plotting the curve below the axis - because that is how it appears?
AxesStyle -> Thick
satisfy you? $\endgroup$Frame->True
$\endgroup$Sinc2Distribution = ProbabilityDistribution[ f[x], {x, -Infinity, Infinity}]
and then usingPDF[Sinc2Distribution][x]
within thePlot
? $\endgroup$