dataFrame.column.stat — andersonDarling()

Description

The andersonDarling() method of the stat object evaluates whether the values of the selected column follow a normal distribution using the Anderson–Darling test.

Signature

dataFrame.column(columnName).stat.andersonDarling({ sorted: false })
Scope
column
Family
stat
Returns
object

Arguments

columnName (string)
The name of the column from which to calculate statistics.
options (object)
Anderson–Darling test options.

Option

sorted (boolean)
Indicates whether the values are already sorted in ascending order.
  • Sorted: true
  • Not sorted: false (default)

Returns

stat (object)
The Anderson–Darling test statistics:
  • AD_stat: the Anderson-Darling statistic.
  • p_value: the associated p-value.

Note

Larger values generally indicate a greater deviation from normality.

Example

// perform the Anderson-Darling test
var stat = dataFrame.column('revenue').stat.andersonDarling();

// log the test stats
notebook.log(stat);