This m-file calculates any number of l-moments for given data vector X. It uses probability weighted moments (can actually edit the file to give any number of pwm's) and the coefficients of the shifted Legendre polynomial to calculate the l-moments.
MATLAB 6.5 (R13)
FILE REQUIRED: % LegendreShiftPoly.m by Peter Roche, 12-08-2004.
This file is available on the Matlab File Exchange. Thanks to Peter for his work.
I generated 1000 random nos from normal distribution(5,0.2)..i tried lmom(x)...the first three moments are right but the 4 moment kurtosis comes around 0.0137 while L4 for a normal dist is 0.1226...What is causing this discrepancy?