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.0000 362392 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.1237 1211704 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.1237 1211704 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1918 4192792 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1932 4220136 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1939 4237848 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1941 4268368 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1952 4291088 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1952 4291088 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.3327 4959944 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.3365 5152096 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.3371 5173024 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3483 5361216 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.3483 5361472 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

Trying Until You Succed

Sometimes it only matters that you succeed, eventually. You are allowed to take your driving test repeatedly, and once you have passed, after however many attempts, you are free to drive. Suppose that the probability of passing your drive test is a fixed 0.7. What is the probability of passing your driving test after at most three attempts?
You might pass at the first attempt. The probability of this is 0.7.
You might fail the first attempt and retake, passing at the second attempt. The probability of failing the first attempt and passing at the second attempt is 0.3 x 0.7=0.21.
You might fail the first attempt, fail the second attempt and pass at the third attempt. The probability of this is 0.3 x 0.3 x 0.7=0.063.
The verall probability of passing within three attempts is
0.7+0.3 x 0.7 + 0.3 x 0.3 x 0.7=0.973.