I wrote Python code to simulate the Monty Hall problem.
Calculating Fourier transform of the probability density function of the normal distribution.
I calculated the expected value of the cosine of a random variable following the standard normal distribution.