@nolanr
If I misunderstand your question please let me know.
I take it to mean that you are asking about the average score that appears at the top of the Quiz Summary for a legacy quiz. That is, the 86% in the image below. Under "Section Filter", all sections are selected.
![James_0-1612668253833.png James_0-1612668253833.png](https://community.canvaslms.com/t5/image/serverpage/image-id/61013iBC51F29C07CB0CE9/image-size/medium?v=v2&px=400)
I set my scores to also be the average attempt, but I do not use the quiz statistics summary because I basically find it useless.
I downloaded the Student Analysis, where it gives me the score for every attempt for the students. I brought it into Excel, created a pivot table based on the student's name, and asked for the average score across all the attempts.
- When I used the mean score of all the students, my average score was 82.59%, not 86%.
- When I used the highest score of any of the attempts, my average score was 88.15%, not 86%.
- When I used the score from the last attempt, then my average score was 88.15%, not 86%, which means that everyone finished higher on their last attempt.
- When I used the score from the first attempt, then my average score was 77.59%, not 86%.
- When I used the score for every attempt, then my average score was 80%, not 86%
At this point, you may be thinking that Canvas is totally screwed up. Or perhaps that I did the screen shot for a different quiz than what I downloaded the results for (I didn't).
I moved on to the bar chart that says no one scored less than 70%. That is true if I look at the maximum score, but not the average score. For the average score, my lowest was 58.33%.
I then found a weighted average of the average scores, weighted by the number of attempts. The students had 45 attempts between them.
- The weighted average of the max score was 89%, not 86%. That is, if I replace every attempt by the average score and then find the mean, I get 89%.
- The weighted average of the average scores was 80%, not 86%. This is mathematically equivalent to finding the average for all attempts without weighting, but at this point I'm starting to doubt my math skills, so it serves as confirmation.
All of those had sample sizes of 27, but there are 30 students in my class. 3 students didn't take the quiz at all. I then went into the gradebook and exported the grades. When I looked at the results, I had 27 students who had taken it and 3 zeros.
- The average of the 30 grades (including the 0's) was 74.33% not 86%.
- The average of the 27 students with grades was 82.59%, not 86%. This is pretty close to the 82.59% that I had with the pivot table, but the numbers exported from the gradebook were rounded to 2 decimal places, so it was really 82.59259259% from the student analysis and 82.58888889% from the gradebook. Neither one is 86%, though.
- If I use all 45 attempts, but throw in the 0 for the three students who didn't take the exam, then I get 83.44%, not 86%.
Since I'm unable to match their results, I now go into the Developer Tools in Chrome and look at the information that is retrieved. It gets the values from the quiz statistics API. From that network call, I find out this information (the quiz was worth 10 points).
correct_count_average: 2.4375
duration_average: 378.1875
incorrect_count_average: 0
score_average: 8.625
score_high: 10
score_low: 7
score_stdev: 0.9921567416492215
scores: {70: 2, 75: 1, 80: 3, 85: 3, 90: 3, 100: 4}
unique_count: 16
Aha, the average is 86.25%, not 86%. But I still never got that number.
The weird thing is the unique count of 16. I have 27 students who took the quiz. What is that about? If I add up the counts for the scores, 2+1+3+3+3+4, I get 16.
If I find the weighted sum of their scores, I get 2*70+1*75+3*80+3*85+3*90+4*100=1380. Now if I divide that by the 16 values, I get ... wait for it ... 86.25%
So the 86.25%, which is displayed as 86%, is not the real average of the course, but the weighted average of highest scores for some of the students who took the quiz.
Are you starting to see why I said I find those statistics useless?
And why are there only 16 values when I had 27 students who took it?
If I filter by section (none of my students are in multiple sections), then I get 10 for that unique count for each section. This is despite 17 out of 18 students taking it in one section and 10 out of 12 taking it in the other.
Is that 10 meaningful?
Maybe the 10 and 10 represent the number of students who only took one attempt? Nope. I had 15 take it once. I had 6 take it twice and 6 take it three times. There's no logical way to get 10 out of those numbers.
I checked another quiz. Canvas reported that I had 3 students attempt that quiz when I had 29 students take it and there were 68 total attempts. So what is going on? For me, I hoped it had something to do with my use of question groups. I have enough questions that each question sees little usage. Still the question that was delivered the least was delivered 13 times and to more than 3 students.
None of these quizzes had questions that were modified this semester. There was one quiz [neither of the two I'm looking at] where I modified the instructions to remind students not to use Safari while taking the quiz because the images may not show up, but I did not modify the questions on any of them.
There is one optional parameter that you can pass to the API to get the quiz statistics. That is whether to include all_versions. Using all_versions=true or all_versions=false made absolutely no difference in my case.
There is a line in the source code that says the scope are all quiz submissions that are not settings only and have been completed. Maybe there is some strange reason my quizzes aren't getting completed? So I downloaded the quiz submissions through the API and all 27 students (I'm back to my first quiz) had a status of completed and the "kept" score is the average.
Further compounding things is that the tooltip on the graph claims that it is the "Score percentiles chart." That is just wrong. If that's the case, why are all of my students in the 70th percentile or higher? And how do you figure that the average of the top percentiles should count as the average for the course?
As messy as the first answer was (it's appears to be keeping the highest grade but for only some of the students), the second one is straight forward. You don't edit the quiz at all. Go to SpeedGrader for the quiz and look at the top right below the student's name.
If a student has only taken the quiz once, you will see something like this:
![James_1-1612673326668.png James_1-1612673326668.png](https://community.canvaslms.com/t5/image/serverpage/image-id/61017iDB0693A31DAD55AC/image-size/medium?v=v2&px=400)
If the student has taken the quiz multiple times, then you will see something like this:
![James_2-1612673358199.png James_2-1612673358199.png](https://community.canvaslms.com/t5/image/serverpage/image-id/61018iA35D9A37E56AC9EE/image-size/medium?v=v2&px=400)
This student's final grade is 7.5. If I click on the drop down, I can see the grades for each of the attempts.
![James_3-1612673394811.png James_3-1612673394811.png](https://community.canvaslms.com/t5/image/serverpage/image-id/61019i7E7A63DFC3F0DB45/image-size/medium?v=v2&px=400)
I hope that got you close enough to an answer to know not to use quiz statistics. In fairness, it might be different if all of your questions were multiple choice.