It's returning excess kurtosis and not the fourth moment, strictly speaking. I don't have docs in front of me to check but if that's not documented it should be.
On Thu, Feb 4, 2016, 15:22 Arunkumar Pillai <arunkumar1...@gmail.com> wrote: > Hi > > I have observed that kurtosis values coming from apache spark has a > difference of 3. > > The value coming from excel and in R as same values(11.333) but the > kurtosis value coming from spark1.6 differs by 3 (8.333). > > Please let me know if I'm doing something wrong. > > I'm executing via sqlcontext.sql("select kurtosis(columnname) from > tablename) > > -- > Thanks and Regards > Arun >