Location : Home > Languages > Perl > Package
Title : Statistics::Distributions
Toolbox Logo

名称

 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).

Toolbox Logo
Updated : 2007/01/18