# Replicate distribution image kurtosis

I am trying to replicate one of the images from this post.

In particular I want to plot something similar to this image in matlab:

I.e. I want these three differently peaked distributions, where the tails are very clear. Can someone help me with such a plot?

Code as of now:

y = normpdf(x,0,1);
plot(x,y)
y1 = tpdf(x,5);
hold on
plot(x,y1)
hold on
y2 = tpdf(x,1000)

• It's always a good idea to explain what software you are using, here I think MATLAB, A $t$ distribution with 1000 df will be hard to distinguish from a normal distribution and does not in any case have lower kurtosis. A more basic pitfall for e.g. a $t$ distribution with 5 df has variance 5/3 compared with your normal which has variance 1. Hence a graph conflates different kurtosis and different variance, although that problem is soluble by scaling by SD. Mar 13, 2021 at 11:48