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

名称

 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

Toolbox Logo
Updated : 2006/06/13