PHP Class MathPHP\Statistics\SignificanceTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: markrogoyski/math-php

Public Methods

Method Description
dataProviderForChiSquaredTest ( )
dataProviderForSEM ( )
dataProviderForTScore ( )
dataProviderForTTestOneSample ( )
dataProviderForTTestTwoSample ( ) Used for calculating t and p values for test data: http://www.usablestats.com/calcs/2samplet&summary=1 http://www.socscistatistics.com/pvalues/tdistribution.aspx
dataProviderForZScore ( )
dataProviderForZScoreRaw ( )
dataProviderForZTestOneSample ( ) - https://www.easycalculation.com/statistics/p-value-for-z-score.php
testChiSquaredTest ( array $observed, array $expected, $χ², $p )
testChiSquaredTestExceptionCountsDiffer ( )
testSEM ( , integer $n, $sem )
testTScore ( $Hₐ, $s, $n, $H₀, $t )
testTTest ( $Hₐ, $s, $n, $H₀, array $ttest )
testZScore ( , , $M, $z )
testZScoreRaw ( , , $M, $z )
testZTestOneSample ( $Hₐ, $n, $H₀, , array $ztest )
testtTestTwoSample ( $μ₁, $μ₂, $n₁, $n₂, $σ₁, $σ₂, , array $ztest )

Method Details

dataProviderForChiSquaredTest() public method

dataProviderForSEM() public method

public dataProviderForSEM ( )

dataProviderForTScore() public method

dataProviderForTTestOneSample() public method

dataProviderForTTestTwoSample() public method

Used for calculating t and p values for test data: http://www.usablestats.com/calcs/2samplet&summary=1 http://www.socscistatistics.com/pvalues/tdistribution.aspx

dataProviderForZScore() public method

dataProviderForZScoreRaw() public method

dataProviderForZTestOneSample() public method

- https://www.easycalculation.com/statistics/p-value-for-z-score.php

testChiSquaredTest() public method

public testChiSquaredTest ( array $observed, array $expected, $χ², $p )
$observed array
$expected array

testChiSquaredTestExceptionCountsDiffer() public method

testSEM() public method

public testSEM ( , integer $n, $sem )
$n integer

testTScore() public method

public testTScore ( $Hₐ, $s, $n, $H₀, $t )

testTTest() public method

public testTTest ( $Hₐ, $s, $n, $H₀, array $ttest )
$ttest array

testZScore() public method

public testZScore ( , , $M, $z )

testZScoreRaw() public method

public testZScoreRaw ( , , $M, $z )

testZTestOneSample() public method

public testZTestOneSample ( $Hₐ, $n, $H₀, , array $ztest )
$ztest array

testtTestTwoSample() public method

public testtTestTwoSample ( $μ₁, $μ₂, $n₁, $n₂, $σ₁, $σ₂, , array $ztest )
$ztest array