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 360720 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0883 1209368 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0883 1209368 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1705 4162144 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1722 4189536 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1732 4207248 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1732 4224256 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1740 4231992 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1740 4231992 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2388 4884608 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2415 4969840 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2423 4990768 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.2550 5101272 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.2550 5101528 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 360720 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0883 1209368 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0883 1209368 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1705 4162144 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1722 4189536 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1732 4207248 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1732 4224256 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1740 4231992 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1740 4231992 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2388 4884608 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2415 4969840 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2423 4990768 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.5628 12957624 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.5630 12958024 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.5630 12958024 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.5632 12966272 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.5676 13346544 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.5682 13379592 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.5682 13379616 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.5683 13379696 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Probability and Tree Diagrams

The definition of independent events is that neither can affect the other: if A and B are independent then the probability of A happening does not depend on whether B has happened or will happen, and vice versa. There is an equation that we can use when two events A and B are independent:

In plain English this says that if two events are independent then to find the probability of them both happening we multiply the individual probabilities together.

The equation may be used in the following way. Suppose John and Bill take their driving tests on the same day. The probability that John will pass is 0.6 and the probability that Bill will pass is 0.3.Find the probability that

a)Both pass

b)Neither pass

c)Exactly one passes

d)At most one passes.

We start by drawing a probability tree:

a)The probability John Passes AND Bill Passes = 0.6*0.3=0.18

b)The prbability That John fails And Bill fails =0.4*0.7=0.28

c) Exactly can pass in two ways:

John can pass AND Bill can fail =0.6*0.7=0.42

OR

John can fail AND Bill can pass =0.4*0.3=0.12

Because either the first OR the second can happen, we add the two probabilities 0.42+0.12=0.54

d)At least one passes mean that both can pass OR exactly one can pass

ie 0.18+0.54=0.72

Example: A bag contains 4 red balls and 7 green balls. Two balls are taken out one at a time and put to one side. Find the probability that

a)Both are red

b)One is red

c)At least one is red

d)both are the same colour

e)Both are different colours

To start we have 4 red balls out of 11, so the probability of picking a red ball isNow we take the ball and put it aside. There are only 3 red balls and 7 red balls out of 10. The probability of the second ball being red isand the probability of the second ball being green isThis labels the top half of the probability tree as shown.

The probability of the first ball being green isThen this ball is put aside and there are now 4 red balls and 6 green balls out of 10, so the probability of the second ball being red isand the probability of the second ball being green isThis labels the bottom half of the probability tree.

a)First Ball Red and Second Ball Red=

b)One of the two balls can be red in two ways:

The first ball is red and the second one is green =

The first ball can be green and the second ball can be red =

Since we can have either the first OR the second way round we add these two answers:

C)At least one is read mean both can be red, OR exactly one can be red, so we add the answers to a) and b)

d)Both have the same colour if they are both red OR if they are both green

The probability of the first one being green and second one being green is

Now we add this and the answer to a)

d) If they are different colours, they cannot be the same colour so we find 1 minus the answer to d) =

Add comment

Security code
Refresh