dataFrame.column.stat — kurtosis()

Description

The kurtosis() method of the stat object returns the kurtosis of the values in the selected column.

Signature

dataFrame.column(columnName).stat.kurtosis({ estimator: 'sample', type: 'pearson' })
Scope
column
Family
stat
Returns
number

Argument

columnName (string)
The column from which to compute the kurtosis.
options (object)
Kurtosis calculation options.

Options

estimator (string)
The estimator used to compute kurtosis.
  • population
  • sample (default)
type (string)
The kurtosis definition to use.
  • fisher
  • pearson (default)

Returns

kurtosis (number)
The kurtosis of the values in the selected column.

Notes

  • Pearson kurtosis is defined such that a normal distribution has a kurtosis of 3.
  • Fisher kurtosis (excess kurtosis) is defined such that a normal distribution has a kurtosis of 0.
  • The sample estimator applies a bias correction, whereas the population estimator does not.

Example

// get the kurtosis of values of a column of the dataFrame
var kurtosis = dataFrame.column('revenue').stat.kurtosis();

// log the kurtosis
notebook.log(kurtosis);