Class: Num4TstStatisticLib::ParametrixTestLib
- Inherits:
-
Object
- Object
- Num4TstStatisticLib::ParametrixTestLib
- Defined in:
- lib/num4tststatistic.rb
Instance 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
独立性の検定量.
-
#initialize ⇒ ParametrixTestLib
constructor
A new instance of ParametrixTestLib.
-
#pearsoCorrelation(x, y) ⇒ double
ピアソン相関係数 (相関係数の検定).
-
#populationMean(xi, m0) ⇒ double
正規母集団の母平均の検定量.
-
#populationRatio(m, n, p0) ⇒ double
母比率の検定量.
-
#populationVar(xi, sig0) ⇒ double
正規母集団の母分散の検定量.
Constructor Details
#initialize ⇒ ParametrixTestLib
Returns a new instance of ParametrixTestLib.
13 14 15 |
# File 'lib/num4tststatistic.rb', line 13 def initialize @paramTest = ParametrixTest.getInstance() end |
Instance Method Details
#df4welch(xi1, xi2) ⇒ int
ウェルチ検定の為の自由度
117 118 119 120 121 |
# File 'lib/num4tststatistic.rb', line 117 def df4welch(xi1, xi2) return @paramTest.df4welch( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
#diffPopulationMean(xi1, xi2) ⇒ double
Note:
自由度(N-1)のt分布に従う
対応のある2つの母平均の差の検定量
136 137 138 139 140 |
# File 'lib/num4tststatistic.rb', line 136 def diffPopulationMean(xi1, xi2) return @paramTest.diffPopulationMean( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
#diffPopulationMean2EquVar(xi1, xi2) ⇒ double
Note:
N1+N2-2のt分布に従う
2つの母平均の差の検定量(等分散性を仮定)
80 81 82 83 84 |
# File 'lib/num4tststatistic.rb', line 80 def diffPopulationMean2EquVar(xi1, xi2) return @paramTest.diffPopulationMean2EquVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
#diffPopulationMean2UnEquVar(xi1, xi2) ⇒ double
Note:
df4welch関数で求めた自由度のt分布に従う
2つの母平均の差の検定量(不等分散性を仮定)
100 101 102 103 104 |
# File 'lib/num4tststatistic.rb', line 100 def diffPopulationMean2UnEquVar(xi1, xi2) return @paramTest.diffPopulationMean2UnEquVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
#diffPopulationRatio(m1, n1, m2, n2) ⇒ double
Note:
標準正規分布 N(0,1*1)に従う
2つの母比率の差の検定量
174 175 176 |
# File 'lib/num4tststatistic.rb', line 174 def diffPopulationRatio(m1, n1, m2, n2) return @paramTest.diffPopulationRatio(m1, n1, m2, n2) end |
#diffPopulationVar(xi1, xi2) ⇒ double
Note:
自由度(N1-1,N2-1)のF分布に従う
2つの母分散の差の検定量
155 156 157 158 159 |
# File 'lib/num4tststatistic.rb', line 155 def diffPopulationVar(xi1, xi2) return @paramTest.diffPopulationVar( xi1.to_java(Java::double), xi2.to_java(Java::double) ) end |
#fidelity(fi, pi) ⇒ double
Note:
自由度(n-1)の階2乗分布に従う
適合度の検定量
209 210 211 |
# File 'lib/num4tststatistic.rb', line 209 def fidelity(fi, pi) return @paramTest.fidelity(fi.to_java(Java::double), pi.to_java(Java::double)) end |
#independency(fij) ⇒ double
Note:
自由度(m-1)(n-1)の階2乗分布に従う
独立性の検定量
227 228 229 |
# File 'lib/num4tststatistic.rb', line 227 def independency(fij) return @paramTest.independency(fij.to_java(Java::double[])) end |
#pearsoCorrelation(x, y) ⇒ double
ピアソン相関係数
(相関係数の検定)
190 191 192 193 194 |
# File 'lib/num4tststatistic.rb', line 190 def pearsoCorrelation(x, y) return @paramTest.pearsoCorrelation( x.to_java(Java::double), y.to_java(Java::double) ) end |
#populationMean(xi, m0) ⇒ double
Note:
自由度(N-1)のt分布に従う
正規母集団の母平均の検定量
29 30 31 |
# File 'lib/num4tststatistic.rb', line 29 def populationMean(xi, m0) return @paramTest.populationMean(xi.to_java(Java::double), m0) end |
#populationRatio(m, n, p0) ⇒ double
Note:
標準正規分布 N(0,1*1)に従う
母比率の検定量
62 63 64 |
# File 'lib/num4tststatistic.rb', line 62 def populationRatio(m, n, p0) return @paramTest.populationRatio(m, n, p0) end |
#populationVar(xi, sig0) ⇒ double
Note:
自由度(N-1)の階2乗分布に従う
正規母集団の母分散の検定量
46 47 48 |
# File 'lib/num4tststatistic.rb', line 46 def populationVar(xi, sig0) return @paramTest.populationVar(xi.to_java(Java::double), sig0) end |