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' })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.
populationsample(default)
type(string)- The kurtosis definition to use.
fisherpearson(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
sampleestimator applies a bias correction, whereas thepopulationestimator 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);