Class: Num4HypothTestLib::RightSideTestLib

Inherits:
HypothTest3IF show all
Defined in:
lib/num4hypothtst.rb

Overview

片側(右側)検定

Instance Method Summary collapse

Constructor Details

#initializeRightSideTestLib

Returns a new instance of RightSideTestLib.



76
77
78
# File 'lib/num4hypothtst.rb', line 76

def initialize
    @hypothTest3 = RightSideTest.getInstance()
end

Instance Method Details

#chi2DistTest(statistic, df, a) ⇒ boolean

階2乗検定

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • statistic (double)

    検定統計量

  • df (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



96
97
98
# File 'lib/num4hypothtst.rb', line 96

def chi2DistTest(statistic, df, a)
    return @hypothTest3.chi2DistTest(statistic, df, a)
end

#fDistTest(statistic, nf, df, a) ⇒ boolean

F検定

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • statistic (double)

    検定統計量

  • nf (int)

    自由度

  • df (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



116
117
118
# File 'lib/num4hypothtst.rb', line 116

def fDistTest(statistic, nf, df, a)
    return @hypothTest3.fDistTest(statistic, nf, df, a)
end

#normDistTest(statistic, a) ⇒ boolean

標準正規分布検定

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • statistic (double)

    検定統計量

  • a (double)

    有意水準

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



105
106
107
# File 'lib/num4hypothtst.rb', line 105

def normDistTest(statistic, a)
    return @hypothTest3.normDistTest(statistic, a)
end

#populationCorre(r, n, rth0, a) ⇒ boolean

Note:

標準正規分布 N(0,1*1)に従う(近似的)

母相関係数の検定量

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • r (double)

    標本相関係数

  • n (int)

    自由度

  • rth0 (double)

    母相関係数

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



129
130
131
# File 'lib/num4hypothtst.rb', line 129

def populationCorre(r, n, rth0, a)
    return @hypothTest3.populationCorre(r, n, rth0, a);
end

#tDistTest(statistic, df, a) ⇒ boolean

T検定

Returns 検定結果(true:棄却域内 false:棄却域外).

Parameters:

  • statistic (double)

    検定統計量

  • df (int)

    自由度

  • a (double)

    有意水準

Returns:

  • (boolean)

    検定結果(true:棄却域内 false:棄却域外)



86
87
88
# File 'lib/num4hypothtst.rb', line 86

def tDistTest(statistic, df, a)
    return @hypothTest3.tDistTest(statistic, df, a)
end