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 360384 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0478 1208984 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0478 1208984 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1217 4123888 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1231 4151232 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1239 4168944 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1241 4199464 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1250 4222184 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1250 4222184 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1811 4944904 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1849 5137056 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1854 5157984 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.1977 5389136 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.1977 5389392 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JCommentsACL has a deprecated constructor in /var/www/astarmathsandphysics/components/com_jcomments/classes/acl.php on line 17 Call Stack: 0.0001 360384 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0478 1208984 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0478 1208984 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1217 4123888 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1231 4151232 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1239 4168944 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1241 4199464 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1250 4222184 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1250 4222184 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1811 4944904 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1849 5137056 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1854 5157984 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3445 13811392 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.3447 13811792 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.3447 13811792 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.3449 13820040 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.3452 13821776 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.3458 13854824 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.3458 13855224 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.3459 13855304 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Moving Averages

Moving averages allow us to identify a trend when we have quantities that flucutate over time. For example, ice cream sales may fluctuate by season, with higher sales in the summer and lower sales in the winter. By finding the moving average it becomes much easier to find out if ice cream sales are increasing from year to year.

The table below shows quarterly ice cream sales over three years.

Quarter

1

2

3

4

5

6

7

8

9

10

11

12

Sales £000's

12

15

9

11

16

13

10

12

14

14

12

12

We find the 4 point moving average by finding the average of the sales of quarters taken four at a time, moving from left to right one point at a time.

Quarter

1

2

3

4

5

6

7

8

9

10

11

12

Sales £000's

12

15

9

11

16

13

10

12

14

14

12

12

Moving Averages £000's

11.75

               
 

12.75

             
   

12.25

           
     

12.5

         
       

12.75

       
         

12.25

     
           

12.5

   
             

13

 
               

13.25

From these results we can plot the following graph. By plotting a trend line we can forecast annual sales for a year ahead.

Add comment

Security code
Refresh