Article 55YYJ Cosine power approximation to normal

Cosine power approximation to normal

by
John
from John D. Cook on (#55YYJ)

Ten years ago I wrote about how cosine makes a decent approximation to the normal (Gaussian) probability density. It turns out you get a much better approximation if you raise cosine to a power.

If we normalize cosk(t) by dividing by its integral

integral_cos_k.svg

we get an approximation to the density function for a normal distribution with mean 0 and variance 1/k.

Here are the plots of cosk(t), normalized to integrate to 1, for k = 1, 2, and 3.

cosnorm1.png

And here's a plot of cos3(t) compared to a normal with variance 1/3.

cosnormal2.png

And finally here's a plot of L^2 error, the square root of the integral of the square of the approximation error, as a function of k.

cosnormal3.png

r5z2J6N7oyM
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments