Suppose I have given a finite number of grid values belonging to a probability density function. Moreover, I have the associated values of the density support. For instance:
support density value
0.06 0.07
-0.04 0.11
-0.02 0.52
0.00 1.56
0.02 7.87
0.04 19.18
0.06 13.66
0.08 3.40
0.10 0.98
0.13 0.33
0.15 0.14
0.17 0.07
0.19 0.00
0.22 0.43
0.24 0.01
Does anyone know the formula to calculate the first four moments of the distribution?
I would appreciate any help. Many thanks in advance!