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 362392 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0894 1213160 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0894 1213160 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1604 4133928 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1617 4161432 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1623 4179144 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1625 4209664 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1636 4232384 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1636 4232384 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.4074 4914176 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.4108 5106328 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.4114 5127256 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.4222 5343368 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.4223 5343624 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 362392 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0894 1213160 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0894 1213160 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1604 4133928 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1617 4161432 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1623 4179144 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1625 4209664 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1636 4232384 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1636 4232384 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.4074 4914176 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.4108 5106328 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.4114 5127256 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.5467 13766256 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.5470 13766656 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.5470 13766656 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.5472 13774904 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.5474 13776640 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.5480 13809688 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.5480 13810088 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.5481 13810168 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Regression Lines

Many variables are related by a straight line, or more strictly, over a certain range for both variables the relationship between them can be expressed as a straight line. Often we have to find the equation of the line from a table of raw data. This may be a a table of temperatures at certain heights, or the yield of wheat for different amounts of rainfall, or English exam scores and maths exam scores. We often look for linear relationships first of all because a linear relationship is the simplest to calculate. Having found a linear relationship, we can test how good a relationship it is by calculating the correlation coefficientIfis close to either 1 or -1, there is a good linear relationship. Ifis close to 1 the two quantities increase together. Ifis close to -1, then as one quantity increases, the other one decreases.

The equation of the regression line of y on x is given by

whereandWe usually find a last using

The correlation coefficient can be found if necessary to found how good a relationship we have.

You may be given summary statisticsetc but I will illustrate an example from scratch.

Example: Find the equation of the regression line of heightabove ground level against temperatureusing the data in the table.

h

100

1000

1500

2400

4000

5500

9000

10000

14000

t

24

10

8

2

-4

-8

-20

-22

-28

It is a good habit to calculate and write down the summary statistics:

Hence

Add comment

Security code
Refresh