Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 362552 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0495 1211976 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0495 1211976 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1193 4127544 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1206 4155160 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1214 4172872 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1216 4203392 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1226 4226112 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1226 4226112 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1745 4912128 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1781 5104280 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1787 5125208 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.1910 5341600 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.1910 5341856 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

The Goodness of Fit or Chi - Squared Distribution

Thetest can only be used the goodness of fit of a data set to a hypothesised probability distribution.

The observed data is sorted into frequency classes, and for each frequency class, the expected number of observations that would fall into that frequency class is calculated.

The difference between each observed frequency O-i and expected frequency E-i is calculated, squared and divided by the expected frequency. This calculation is performed for each frequency class and the results are all added to give a single number, the test statistic, equal to

If the expected frequency for a frequency class is less than 5,then this group is combined with other frequency classes so that all frequency classes have expected frequencies at least equal to 5.

The significance of the test statistic depends on the number of degrees of freedom,of the data, which is equal to the number of frequency classes AFTER any classes have been combined, c, minus 1, so that

the test statistic is then compared with thevalue drawn from thetables, whereis some set level, to draw some conclusion.


A die is rolled 600 times and the frequency of each score recorded.








Observed Frequency,







Test whether the die is fair at the 1% level of significance.

First state the null and alternative hypotheses,andrespectively.

The probability of each score is 1/6.

The die is not fair and the probability of each score is not 1/6.

The expected frequencies are all 1/6 × 600 = 50 so the test statistic is

since the total is a linear equation connecting the frequencies and is fixed.

From tables we see thatso our result is not significant.

We do not rejectand conclude that the die is not unfair.