Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
MathPHP
Statistics
Significance
tScore
MathPHP\Statistics\Significance::tScore PHP Method
Significance Class Documentation
Show file
Open project: markrogoyski/math-php
tScore()
public
static
method
Hₐ - H₀ X - μ t = ------- = ----- s/√n s/√n
public
static
tScore
(
number
$Hₐ
,
number
$s
,
integer
$n
,
number
$H₀
) :
number
$Hₐ
number
Alternate hypothesis (M Sample mean)
$s
number
SD of sample
$n
integer
Sample size
$H₀
number
Null hypothesis (μ₀ Population mean)
return
number
public static function tScore($Hₐ, $s, $n, $H₀) { return ($Hₐ - $H₀) / ($s / sqrt($n)); }
Significance
chiSquaredTest
sem
tScore
tTestOneSample
tTestTwoSample
zScore
zTest