mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-13 10:38:40 +00:00
35 lines
835 B
PHP
35 lines
835 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Math\Stochastic\Distribution;
|
|
|
|
use phpOMS\Math\Stochastic\Distribution\ZTest;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class ZTestTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
// http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/BS704_HypothesisTesting-ChiSquare/BS704_HypothesisTesting-ChiSquare_print.html
|
|
public function testHypothesisFalse() : void
|
|
{
|
|
$a = 0.95;
|
|
$observed = 0.512;
|
|
$expected = 0.75;
|
|
$total = 125; // total count of observed sample size
|
|
|
|
self::assertFalse(ZTest::testHypothesis($observed, $expected, $total, $a));
|
|
}
|
|
}
|