dataFrame.column.stat — tOneSample()

Description

The tOneSample() method of the stat object performs a one-sample t-test on the values in the selected column.

Signature

dataFrame.column(columnName).stat.tOneSample(value)
Scope
column
Family
stat
Returns
object

Argument

columnName (string)
The name of the column from which to compute skewness.
value (number)
The reference value against which the sample mean is tested.

Returns

stat ( object[] )
A statistic object containing the results of the one-sample t-test.
T_stat (number)
The T statistic.
df (number)
The degrees of freedom of the test.
p_value (number)
The p-value associated with the test.
confidence (number)
A confidence score computed as 1 - p_value.

Notes

  • The test evaluates whether the mean of the selected column differs from the specified reference value.
  • The null hypothesis assumes that the sample mean is equal to the reference value.

Example

// test the values of a column of the dataFrame
var stat = dataFrame.column('revenue').stat.tOneSample(100);

// log the stat details
notebook.log(stat);