Module: Num4TstStatisticLib
- Defined in:
- lib/num4tststatistic.rb
Overview
検定統計量を計算
(Apache commoms math3使用)
Class Method Summary collapse
-
.df4welch(xi1, xi2) ⇒ int
ウェルチ検定の為の自由度.
-
.diffPopulationMean(xi1, xi2) ⇒ double
対応のある2つの母平均の差の検定量.
-
.diffPopulationMean2EquVar(xi1, xi2) ⇒ double
2つの母平均の差の検定量 (等分散性を仮定).
-
.diffPopulationMean2UnEquVar(xi1, xi2) ⇒ double
2つの母平均の差の検定量 (不等分散性を仮定).
-
.diffPopulationRatio(m1, n1, m2, n2) ⇒ double
2つの母比率の差の検定量.
-
.diffPopulationVar(xi1, xi2) ⇒ double
2つの母分散の差の検定量.
-
.fidelity(fi, pi) ⇒ double
適合度の検定量.
-
.independency(fij) ⇒ double
独立性の検定量.
-
.populationCorre(x, y, rth0) ⇒ double
母相関係数の検定量.
-
.populationMean(xi, m0) ⇒ double
正規母集団の母平均の検定量.
-
.populationRatio(m, n, p0) ⇒ double
母比率の検定量.
-
.populationVar(xi, sig0) ⇒ double
正規母集団の母分散の検定量.
-
.unCorrelation(x, y) ⇒ double
無相関の検定量.
Class Method Details
.df4welch(xi1, xi2) ⇒ int
ウェルチ検定の為の自由度
104 105 106 107 108 |
# File 'lib/num4tststatistic.rb', line 104 def df4welch(xi1, xi2) return TstStatistic.df4welch( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
.diffPopulationMean(xi1, xi2) ⇒ double
Note:
自由度(N-1)のt分布に従う
対応のある2つの母平均の差の検定量
122 123 124 125 126 |
# File 'lib/num4tststatistic.rb', line 122 def diffPopulationMean(xi1, xi2) return TstStatistic.diffPopulationMean( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
.diffPopulationMean2EquVar(xi1, xi2) ⇒ double
Note:
N1+N2-2のt分布に従う
2つの母平均の差の検定量(等分散性を仮定)
70 71 72 73 74 |
# File 'lib/num4tststatistic.rb', line 70 def diffPopulationMean2EquVar(xi1, xi2) return TstStatistic.diffPopulationMean2EquVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
.diffPopulationMean2UnEquVar(xi1, xi2) ⇒ double
Note:
df4welch関数で求めた自由度のt分布に従う
2つの母平均の差の検定量(不等分散性を仮定)
89 90 91 92 93 |
# File 'lib/num4tststatistic.rb', line 89 def diffPopulationMean2UnEquVar(xi1, xi2) return TstStatistic.diffPopulationMean2UnEquVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
.diffPopulationRatio(m1, n1, m2, n2) ⇒ double
Note:
標準正規分布 N(0,1*1)に従う
2つの母比率の差の検定量
158 159 160 |
# File 'lib/num4tststatistic.rb', line 158 def diffPopulationRatio(m1, n1, m2, n2) return TstStatistic.diffPopulationRatio(m1, n1, m2, n2) end |
.diffPopulationVar(xi1, xi2) ⇒ double
Note:
自由度(N1-1,N2-1)のF分布に従う
2つの母分散の差の検定量
140 141 142 143 144 |
# File 'lib/num4tststatistic.rb', line 140 def diffPopulationVar(xi1, xi2) return TstStatistic.diffPopulationVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
.fidelity(fi, pi) ⇒ double
Note:
自由度(n-1)の階2乗分布に従う
適合度の検定量
211 212 213 |
# File 'lib/num4tststatistic.rb', line 211 def fidelity(fi, pi) return TstStatistic.fidelity(fi.to_java(Java::double), pi.to_java(Java::double)) end |
.independency(fij) ⇒ double
Note:
自由度(m-1)(n-1)の階2乗分布に従う
独立性の検定量
228 229 230 |
# File 'lib/num4tststatistic.rb', line 228 def independency(fij) return TstStatistic.independency(fij.to_java(Java::double[])) end |
.populationCorre(x, y, rth0) ⇒ double
Note:
標準正規分布 N(0,1*1)に従う
母相関係数の検定量
193 194 195 196 197 |
# File 'lib/num4tststatistic.rb', line 193 def populationCorre(x, y, rth0) return TstStatistic.populationCorre( x.to_java(Java::double), y.to_java(Java::double), rth0 ) end |
.populationMean(xi, m0) ⇒ double
Note:
自由度(N-1)のt分布に従う
正規母集団の母平均の検定量
23 24 25 |
# File 'lib/num4tststatistic.rb', line 23 def populationMean(xi, m0) return TstStatistic.populationMean(xi.to_java(Java::double), m0) end |
.populationRatio(m, n, p0) ⇒ double
Note:
標準正規分布 N(0,1*1)に従う
母比率の検定量
53 54 55 |
# File 'lib/num4tststatistic.rb', line 53 def populationRatio(m, n, p0) return TstStatistic.populationRatio(m, n, p0) end |
.populationVar(xi, sig0) ⇒ double
Note:
自由度(N-1)の階2乗分布に従う
正規母集団の母分散の検定量
39 40 41 |
# File 'lib/num4tststatistic.rb', line 39 def populationVar(xi, sig0) return TstStatistic.populationVar(xi.to_java(Java::double), sig0) end |
.unCorrelation(x, y) ⇒ double
Note:
自由度(N-2)t分布に従う
無相関の検定量
174 175 176 177 178 |
# File 'lib/num4tststatistic.rb', line 174 def unCorrelation(x, y) return TstStatistic.unCorrelation( x.to_java(Java::double), y.to_java(Java::double) ) end |