An instructor had 37 students take a quiz. When examinig the quiz statistics, the anlaysis of responses were not adding up correctly. We are running moodle 3.5. As you can see there is only 37 attempts but 61 responses for the analysis of responses. Any help would be appreciated.
If you want to analyse the data differently, you can download the Responses report, and crunch the data how you want.
But what about questions that are single response? They are also getting totla number of choices selected that are higher than the number of test takers. For instance, this is a regular multiple choice question.
If you go to ther quiz Grades report, and change that to show 'All attempts' rather than 'Attempts by users enrolled in the couse', does that show more attempts that explains this mis-counting?
I apologize for the delay in responding as other more pressing topics came up and I very much appreciate your help with this. When I do the grade reports and change to all attempts, I still get only 37 attempts.
Thank you for checking. i am now very mystified. The logic is relatively simple: It loops over every attempt at each question https://github.com/moodle/moodle/blob/master/question/classes/statistics/responses/analyser.php#L125, it asks the question type to classify the response: https://github.com/moodle/moodle/blob/master/question/type/multichoice/question.php#L187, and then counts them up. And, this code is covered by unit tests.
What else could be happening??? Are you using How questions behave: Interactive with multiple tries (or adaptive)? Or are you using Allow redo within an attempt?
I'd love to know what is going on here.
I know I'm resurrecting an old thread, but this was happening on my site also, but I think we accidentally found the issue, at least for us. The "Decimal places in grades" was set to zero for the quiz. The "Count" number corrected after we changed the decimal places to two.
I made MDL-70043 (which is a terrible example of how to report a bug. Don't do that!) Please add any extra details there.