MathPHP\Statistics\EffectSize::glassDelta PHP Method

glassDelta() public static method

An estimator of the effect size that uses only the standard deviation of the second group. https://en.wikipedia.org/wiki/Effect_size#Glass.27_.CE.94 μ₁ - μ₂ Δ = ------- s₂ where μ₁ = mean of sample population 1 μ₂ = mean of sample population 2 s₂ = standard deviation of sample population 2
public static glassDelta ( number $μ₁, number $μ₂, number $s₂ ) : number
$μ₁ number Mean of sample population 1
$μ₂ number Mean of sample population 2
$s₂ number Standard deviation of sample population 2
return number
    public static function glassDelta($μ₁, $μ₂, $s₂)
    {
        return ($μ₁ - $μ₂) / $s₂;
    }