One-Way Tables (Testing Goodness of Fit)

Answers

  1. If all four colors were equally likely to be put in the bag, then the expected frequency for a given color would be 1/4\mathrm{th} of the lollipops. So, the expected frequency would be (1 / 4)(40)=10. (Of course, this is the theoretical expected frequency, not what we actually expect the bag to look like).

  2. Take the sum of each \text { (expected - observed) }^{2} / \text { expected }=(10-8)^{2} / 10+(10-5)^{2} / 10+(10-12)^{2} / 10+(10-15)^{2} / 10=5.8

Callback before_footer in local_aigrade component should be migrated to new hook callback for core\hook\output\before_footer_html_generation
  • line 7225 of /lib/moodlelib.php: call to debugging()
  • line 7292 of /lib/moodlelib.php: call to {closure}()
  • line 71 of /lib/classes/hook/output/before_footer_html_generation.php: call to get_plugins_with_function()
  • line 987 of /lib/classes/output/core_renderer.php: call to core\hook\output\before_footer_html_generation->process_legacy_callbacks()
  • line 154 of /mod/book/view.php: call to core\output\core_renderer->footer()