From a56878522378e7ed26edb78449949c73fbead75d Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 6 Nov 2013 12:32:30 +0000 Subject: [PATCH] MDL-42743 improve wording of the CBM summary on quiz review --- question/behaviour/deferredcbm/behaviourtype.php | 8 ++++++++ .../deferredcbm/lang/en/qbehaviour_deferredcbm.php | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/question/behaviour/deferredcbm/behaviourtype.php b/question/behaviour/deferredcbm/behaviourtype.php index 44cf330a5bb..2b41c5b9ad5 100644 --- a/question/behaviour/deferredcbm/behaviourtype.php +++ b/question/behaviour/deferredcbm/behaviourtype.php @@ -40,6 +40,7 @@ class qbehaviour_deferredcbm_type extends qbehaviour_deferredfeedback_type { } public function summarise_usage(question_usage_by_activity $quba, question_display_options $options) { + global $OUTPUT; $summarydata = parent::summarise_usage($quba, $options); if ($options->marks < question_display_options::MARK_AND_MAX) { @@ -107,6 +108,13 @@ class qbehaviour_deferredcbm_type extends qbehaviour_deferredfeedback_type { $cbmbonus = $this->calculate_bonus($averagecbm, $accuracy); $accuracyandbonus = $accuracy + $cbmbonus; + // Add a note to explain the max mark. + $summarydata['qbehaviour_cbm_grade_explanation'] = array( + 'title' => '', + 'content' => html_writer::tag('i', get_string('cbmgradeexplanation', 'qbehaviour_deferredcbm')) . + $OUTPUT->help_icon('cbmgrades', 'qbehaviour_deferredcbm'), + ); + // Now we can start generating some of the summary: overall values. $summarydata['qbehaviour_cbm_entire_quiz_heading'] = array( 'title' => '', diff --git a/question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php b/question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php index 8d679e5999b..120defd9cb4 100644 --- a/question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php +++ b/question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php @@ -31,6 +31,12 @@ $string['basemark'] = 'Base mark {$a}'; $string['breakdownbycertainty'] = 'Break-down by certainty'; $string['cbmbonus'] = 'CBM bonus'; $string['cbmmark'] = 'CBM mark {$a}'; +$string['cbmgradeexplanation'] = 'For CBM, the grade above is shown relative to the maximum for all correct at C=1.'; +$string['cbmgrades'] = 'CBM grades'; +$string['cbmgrades_help'] = 'With Certainty Based Marking (CBM) getting every question correct with C=1 (low certainty) gives a grade of 100%. Grades may be as high as 300% if every question is correct with C=3 (high certainty). Misconceptions (confident wrong responses) lower grades much more than wrong responses that are acknowledged to be uncertain. This may even lead to negative overall grades. + +**Accuracy** is the % correct ignoring certainty but weighted for the maximum mark of each question. Successfully distinguishing more and less reliable responses gives a better grade than selecting the same certainty for each question. This is reflected in the **CBM Bonus**. **Accuracy** + **CBM Bonus** is a better measure of knowledge than **Accuracy**. Misconceptions can lead to a negative bonus, a warning to look carefully at what is and is not known.'; +$string['cbmgrades_link'] = 'qbehaviour/deferredcbm/certaintygrade'; $string['certainty'] = 'Certainty'; $string['certainty_help'] = 'Certainty-based marking requires you to indicate how reliable you think your answer is. The available levels are: @@ -52,8 +58,8 @@ $string['certaintyshort1'] = 'C=1'; $string['certaintyshort2'] = 'C=2'; $string['certaintyshort3'] = 'C=3'; $string['dontknow'] = 'No idea'; -$string['foransweredquestions'] = 'For just the {$a} answered questions'; -$string['forentirequiz'] = 'For the entire quiz ({$a} questions)'; +$string['foransweredquestions'] = 'Results for just the {$a} answered questions'; +$string['forentirequiz'] = 'Results for the whole quiz ({$a} questions)'; $string['judgementok'] = 'OK'; $string['judgementsummary'] = 'Responses: {$a->responses}. Accuracy: {$a->fraction}. (Optimal range {$a->idealrangelow} to {$a->idealrangehigh}). You were {$a->judgement} using this certainty level.'; $string['howcertainareyou'] = 'Certainty{$a->help}: {$a->choices}';