TD_ChiSq Output - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-04-01
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

Output Table Schema

Column Data Type Description
chi_square DOUBLE PRECISION Chi-squared statistic.
cramers_v DOUBLE PRECISION Cramer's V statistic.
df INTEGER Degrees of freedom.
alpha DOUBLE PRECISION alpha (see Optional Syntax Elements for TD_ChiSq).
p_value DOUBLE PRECISION Probability associated with chi-squared statistic.
criticalvalue DOUBLE PRECISION Critical value calculated using Alpha for test.
conclusion VARCHAR Chi-squared test result, either 'reject null hypothesis' or 'fail to reject null hypothesis'.

Table of Expected Values

The function outputs this table only if you include the OUT clause in the function call. The OUT clause specifies its name.

This table contains the expected frequencies calculated under the assumption that the null hypothesis is true.

This table has the same schema as the CONTINGENCY table that contains the observed frequencies, except that all columns but the first have the data type DOUBLE PRECISION.