'In R - How to consider two aleatory variables A,B~U(0,1) and denote X as cos(2πB)sqrt(−2 ln A) and finde the mean, asymmetry and kurtosis?

I basically have parameters A and B (i don't have their values) and I'm supposed to generate n=5000 observations from distribution X and then find the mean, median, variance, asymmetry, and kurtosis.

I seriously have no idea of how to do this

I also have to generate n = 5000 obs. coming from a standard normal distribution and calculate the same measures.

Could somebody tell me how I should start?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source