Location : Home > Languages > Perl > Package Title : Statistics::DependantTTest |
![]() |
Statistics::DependantTTest - 2サンプルに対するスチューデントのt検定を行うモジュール
use Statistics::DependantTTest; use Statistics::Distributions; my @before_values=('5','5','6','7','7'); my @after_values=('5','6','6.5','6.5','7.5'); my $t_test = new DependantTTest; $t_test->load_data('before',@before_values); $t_test->load_data('after',@after_values); my ($t_value,$deg_freedom) = $t_test->perform_t_test('before','after'); my ($p_value) = Statistics::Distributions::tprob ($deg_freedom,$t_value);
これは対になっている2つのデータセットに対し t検定を行うモジュールである。2つの配列を入力とし、帰無仮説を判定するための t値と自由度を返す。
t値と自由度は Statistics::Distributions モジュールを用いた p値と関係がある。
Martin Lee, Star Technology Group, <mlee@startechgroup.co.uk>
Statistics::Distributions Statistics::TTest
![]() |
Updated : 2006/06/13 |