Item Analysis hangs on some quizzes, but not others.

Item Analysis hangs on some quizzes, but not others.

Dallas Ray Smetter發表於
Number of replies: 14
This course has nearly 700 students.

On quiz 1, there were about 10 questions.
Item analysis runs perfectly.

On quiz 2, there are 50 questions.
When we click on item analysis, nothing ever happens. The browser progress just keeps spinning.

Too many students? angry
評比平均分數: -
In reply to Dallas Ray Smetter

Re: Item Analysis hangs on some quizzes, but not others.

Dallas Ray Smetter發表於
Here's a screenshot of the error that follows...

Item Analysis Error
In reply to Dallas Ray Smetter

Re: Item Analysis hangs on some quizzes, but not others.

Jean-Michel Védrine發表於
Hello,
Can I ask what Moodle version you are using ? The version of the mod/quiz/report/analysis/report.php file would help also if available.
item analysis do a lot of calculations and database queries but given your numbers of students and questions no time out should occur on a normal dedicated server.
Also can you give a rought estimate or the 50 questions types ? How many MCQ, how many short answers, ... do you have any random questions ?
Of course the problem to do such tests is that I don't have a big number of students and attempts on my development Moodle install (and not even on my production server only used by me and my 300 students !)

In reply to Jean-Michel Védrine

Re: Item Analysis hangs on some quizzes, but not others.

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
The OU is probalby about to oustsource some developments of the Item Analysis report. When I have written a spec (hopefully next week) I will post it publicly, so people can comment. I think one of the things I will include in the requirements is that this report should do the calculations once and then store the results in the database, rather than recomputing everything every time.
In reply to Tim Hunt

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Tim Hunt

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

Re: Item Analysis hangs on some quizzes, but not others.

Jean-Michel Védrine發表於
This thread speaks of 2 related but very distinct things :
1) Improving item analysis efficiency
Believe it or not, the actual code is a lot more efficient that it was at the begining of this report !
But I agree it could certainly be improved a lot more. Enrique would surely not be mad at me if I say he wasn't a SQL guru when he wrote this report and neither was I when I took the task to maintain his code.

One of the problem is the lot of options you need to support in the code :
- you can analyze just one quiz attempt for each user. This particular attempt may be the one with the highest overall score, the first attempt or the last attempt of those performed. Alternatively all attempts data may be combined for a cumulative analysis.
- Some attempts can be excluded from analysis by setting a low limit for the score of the attempts to analyze. This limit is specified as a percentage (0-100) of the maximum grade achievable in the quiz.
But all people really using the analysis report will agree with me that these options are really necessary and their removal would greatly reduce analysis report usability.

One other problem is that at the time this report was written, we has to support very old MySQL versions. Now that MySQL 4.1 is the minimum requirement, I think some of the queries could be rewritten resulting in a a great gain in efficiency.

2) support more question types in item analysis report
As Piere said analysis report need to call the get_question_responses function wich in turn call the get_all_responses method of the questiontype.

It is very interesting to read again MDL-5379 "Analysis report should not have a list of accepted types" because it was at that time we had to decide how analysis will decide if a qtype is supported or not.
I am strongly in favor of specific get_all_responses methods for some qtypes but Pierre is right, the actual code is written with the assumption that the question can return a list of all possibles students responses. More exactly this assumption is not made by the analysis report but by Classical Test Theory : how could we calculate parameters such as facility index or discrimination index if we can't have a list of all responses ?
This list of all possible responses can either be in ->options->answers and fetched by the default get_all_responses or constructed by the get_all_responses method specific to the question type.

Can some Test experts answer to the following question :
For a question where a student must answer several subquestions is analysis of each subquestion separately the only sensible way to go ?

Tim I am very interested to read your specs because even if I live in a country (France) where most of the teachers (including those using MCQs) never heard about facility or discrimination index, I use item analysis quite a lot.

In reply to Tim Hunt

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

Re: Item Analysis hangs on some quizzes, but not others.

Jean-Michel Védrine發表於
Of course but if I remember well before quiz was rewritten and the actual overview and analysis reports introduced, the old "detailed statistics" didn't support random questions and it was a frequent request.
From a conceptual point of view a quiz with random questions is just a quiz with a bigger set of actual questions where each student don't attempt all questions. So from a conceptual point of view item analysis of a quiz with random question is just item analysis of a bigger quiz grand sourire
My conviction is that the key to optimize this report is :
  • better sql queries
  • as Tim said, store in memory some data to "ease" and speed item analysis work.
In reply to Jean-Michel Védrine

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Jean-Michel Védrine

Re: Item Analysis hangs on some quizzes, but not others.

Dallas Ray Smetter發表於
Hi Jean-Michel
We are using 1.8.3+, and the version of mod/quiz/report/analysis/report.php is

// $Id: report.php,v 1.30.2.8 2007/09/18 12:15:10 tjhunt Exp $

The questions are all of type MC, with four options, none of which are random.

眨眼
In reply to Dallas Ray Smetter

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

Re: Item Analysis hangs on some quizzes, but not others.

Dallas Ray Smetter發表於
Pierre

Thank you... I am going to try that and report back on how it went.

How far do you think I should bump up the allowed execution time?

眨眼

Dallas Ray