# welch_test()welch_test()

``````// s1, s2 values are from https://en.wikipedia.org/wiki/Welch%27s_t-test
print
s1 = dynamic([27.5, 21.0, 19.0, 23.6, 17.0, 17.9, 16.9, 20.1, 21.9, 22.6, 23.1, 19.6, 19.0, 21.7, 21.4]),
s2 = dynamic([27.1, 22.0, 20.8, 23.4, 23.4, 23.5, 25.8, 22.0, 24.8, 20.2, 21.9, 22.1, 22.9, 20.5, 24.4])
| mv-expand s1 to typeof(double), s2 to typeof(double)
| summarize m1=avg(s1), v1=variance(s1), c1=count(), m2=avg(s2), v2=variance(s2), c2=count()
| extend pValue=welch_test(m1,v1,c1,m2,v2,c2)

// pValue = 0.021
``````

## 语法Syntax

`welch_test(`mean1`, `variance1`, `count1`, `mean2`, `variance2`, `count2`)``welch_test(`mean1`, `variance1`, `count1`, `mean2`, `variance2`, `count2`)`

## 参数Arguments

• mean1：表示第一个序列的平均值的表达式mean1 : Expression that represents the mean (average) value of the first series
• variance1：表示第一个序列的方差值的表达式variance1 : Expression that represents the variance value of the first series
• count1：表示第一个序列中的值计数的表达式count1 : Expression that represents the count of values in the first series
• mean2：表示第二个序列的平均值的表达式mean2 : Expression that represents the mean (average) value of the second series
• variance2：表示第二个序列的方差值的表达式variance2 : Expression that represents the variance value of the second series
• count2：表示第二个序列中的值计数的表达式count2 : Expression that represents the count of values in the second series