Com*_*low 11
您可以将HypothesisTests.jl用于此相关文档.
(另请参阅:网站juliastats.github.io整齐地列出了朱莉娅的统计数据包和ML)
以下是你可能会如何做到这一点:
julia> Pkg.add("HypothesisTests")
julia> using HypothesisTests
julia> xs = [1, 2, 3, 4]
julia> ys = [5, 6, 7, 8]
julia> OneSampleTTest(vec(xs), vec(ys))
One sample t-test
-----------------
Population details:
parameter of interest: Mean
value under h_0: 0
point estimate: -4.0
95% confidence interval: (-4.0,-4.0)
Test summary:
outcome with 95% confidence: reject h_0
two-sided p-value: 0.0 (extremely significant)
Details:
number of observations: 4
t-statistic: -Inf
degrees of freedom: 3
empirical standard error: 0.0
Run Code Online (Sandbox Code Playgroud)
(...上面的例子只是说明了函数的用法,数据并不意味着什么).