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 360480 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0824 1209128 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0824 1209128 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1526 4189584 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1540 4217136 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1547 4234848 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1549 4265368 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1558 4288088 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1559 4288088 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2076 4957616 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2112 5149768 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2117 5170696 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.2230 5369704 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.2230 5369960 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 360480 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0824 1209128 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0824 1209128 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1526 4189584 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1540 4217136 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1547 4234848 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1549 4265368 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1558 4288088 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1559 4288088 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2076 4957616 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2112 5149768 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2117 5170696 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3646 13787920 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.3648 13788320 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.3648 13788320 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.3651 13796568 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.3653 13798304 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.3659 13831352 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.3659 13831752 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.3660 13831832 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Distribution of Web Visits

The distribution of daily visitors among websites follows approximately an exponential distribution.

\[P(X=k)={\lambda}e^{- \lambda k}\]
.
It is a rule of thumb that 20% of the websites gets 80% of the visitors. Assuming there are
\[n\]
, estimate the value of
\[\lambda\]
?
Using the rule of thumb, the upper limit is
\[0.2n\]
and the value of the integral is 0.8
\[P(X \le 0.2n)=0.8=\int^{0.2n}_0  {\lambda}e^{- \lambda x}dx=[-e^{-\lambda x}]^{0.2n}_0\]

\[0.8=-(e^{-0.2 \lambda n} - e^0)=1- e^{- 0.2 \lambda n}\]

(Assuming
\[e^{-\lambda n}\]
equals zero)
\[0.8=1-e^{-0.2 \lambda n}\]

\[0.2=e^{-0.2 \lambda n} \rightarrow \lambda= \frac{ln(0.2)}{-0.2 n}=\frac{5 ln(5)}{n}\]

Add comment

Security code
Refresh