Location : Home > Languages > Perl > Package Title : Statistics::Distributions |
![]() |
Statistics::Distributions - 分布関数の閾値と信頼上限を計算する Perl モジュール
use Statistics::Distributions; $chis=Statistics::Distributions::chisqrdistr (2,.05); print "Chi-squared-crit (2 degrees of freedom, 95th percentile " ."= 0.05 level) = $chis\n"; $u=Statistics::Distributions::udistr (.05); print "u-crit (95th percentile = 0.05 level) = $u\n"; $t=Statistics::Distributions::tdistr (1,.005); print "t-crit (1 degree of freedom, 99.5th percentile = 0.005 level) " ."= $t\n"; $f=Statistics::Distributions::fdistr (1,3,.01); print "F-crit (1 degree of freedom in numerator, 3 degrees of freedom " ."in denominator, 99th percentile = 0.01 level) = $f\n"; $uprob=Statistics::Distributions::uprob (-0.85); print "upper probability of the u distribution (u = -0.85): Q(u) " ."= 1-G(u) = $uprob\n"; $chisprob=Statistics::Distributions::chisqrprob (3,6.25); print "upper probability of the chi-square distribution (3 degrees " ."of freedom, chi-squared = 6.25): Q = 1-G = $chisprob\n"; $tprob=Statistics::Distributions::tprob (3,6.251); print "upper probability of the t distribution (3 degrees of " ."freedom, t = 6.251): Q = 1-G = $tprob\n"; $fprob=Statistics::Distributions::fprob (3,5,.625); print "upper probability of the F distribution (3 degrees of freedom " ."in numerator, 5 degrees of freedom in denominator, F = 6.25): " ."Q = 1-G = $fprob\n";
本モジュールは標準正規分布・(ステューデントの)t分布・χ2分布・F 分布のパーセント値を計算する。童謡に信頼上限値も計算する。
これらの値は u 検定・ t 検定・ F 検定・χ2検定など統計的検定を行う際や信頼区間を求める際に必要である。
アルゴリズムについて知りたければ以下を見よ。
StatLib: http://lib.stat.cmu.edu/apstat/ ;
Applied Statistics Algorithms by Griffiths, P. and Hill, I.D., Ellis Horwood: Chichester (1985)
現在の version 1.02 はリリースされて1年以上経つが、過去の version 0.07 以降、バグ報告がない。しかしながら、もしバグや異常が見つかれば著者に知らせてほしい。
Perl モジュールのインストールに関する情報とオプションについては perlmodinstall を見よ。
本モジュールの最新バージョンは Distribution Perl Archive Network (CPAN) で入手可能である。近くのサイトを探すには CPAN http://www.cpan.org/ に訪れるか、 http://www.cpan.org/authors/id/M/MI/MIKEK/ を見よ。
Michael Kospach, mike.perl@gmx.at
整形と単純化・バグ修正は Matthias Trautner Kromann <mtk@id.cbs.dk>
Copyright 2003 Michael Kospach. All rights reserved.
本ライブラリはフリーソフトウェアであり、 Perl 本体と同等の条件で修正/再配布してもよい。
Statistics::ChiSquare, Statistics::Table::t, Statistics::Table::F, perl(1).
![]() |
Updated : 2007/01/18 |