Moodle plugins directory: STACK | Moodle.org
STACK
The STACK system is a computer aided assessment package for mathematics, which provides a question type for the Moodle quiz. In computer aided assessment (CAA), there are two classes of question types.
- Selected response questions
In these questions, a student makes a selection from, or interacts with, potential answers which the teacher has selected. Examples include multiple choice, multiple response and so on. - Student-provided answer question
In these questions the student's answer contains the content. It is not a selection. Examples of these are numeric questions.
STACK concentrates on student-provided answers which are mathematical expressions. For example, a student might respond to a question with a polynomial or matrix. Essentially STACK asks for mathematical expressions and evaluates these using computer algebra. The prototype test is the following pseudo-code.
if
simplify(student_answer-teacher_answer) = 0
then
mark = 1,
else
mark = 0.
STACK uses a computer algebra system (CAS) to implement these mathematical functions. A CAS provides a library of functions with which to manipulate students' answers and generate outcomes such as providing feedback. Establishing algebraic equivalence with a correct answer is only one kind of manipulation which is possible.
Using CAS can also help generate random yet structured problems, and corresponding worked solutions.
In STACK a lot of attention has been paid to allowing teachers to author and manage their own questions. The following are the key features.
- Question versions are randomly generated within structured templates.
- There are many different kinds of inputs. These are, for example, where the student enters a mathematical expression, or makes a true/false selection.
- Mathematical properties of students' answers are established using answer tests within the CAS Maxima.
- Feedback is assigned on the basis of these properties using a potential response tree. This feedback includes:
- Textual comments for the student.
- A numerical mark.
- Answer notes from which statistics for the teacher are compiled.
These broadly correspond to formative, summative and evaluative functions of assessment. Which of these outcomes is available to the student, and when, is under the control of the teacher.
- Multi-part mathematical questions are possible: each question may have any number of inputs and any number of potential response trees. There need not be a one-to-one correspondence between these.
- Partial credit is possible when an expression only satisfies some of the required properties.
- Plots can be dynamically generated and included within any part of the question, including feedback in the form of a plot of the student's expression.
Thank you for this great plugin, It basically change the way I teach and evaluate my students.
I have a strange issue since the last update: the score of any question is assign incorrectly. For example, in a cuestionary with 3 questions with 6, 6 and 8 points respectively (20 points), random scores are assigned to each question so the total score could be more or less than 20. The same thing happens if Iry to recalculate the grade of past cuestionaries.
Any advice would be welcome.
Best regards
I think I know what is happening. In questions with multiple answers, no matter what score I assign to each answer, STACK always assign 1 point to each one. For example, if my question of 8 points has 4 parts with 20%, 20%, 30% and 30% score for each part, I set 2, 2, 3, 3 points in order to calculate these percentages; STACK assign 1 point to each part; therefore if a student answer the question correctly, the score he gets is (1+1+1+1)/(2+2+3+3) * 8 =3.2.
If any of you gets the same behaviour please let me know.
Best regards
we have the same problem as Carlos. Moodle 3.11.8+ and STACK 2022071300.
I will open a new issue on github.
Installed STACK plugins in MOODLE 3.11. Maxima is installed on a separate server. I can't connect STACK and Maxima. I did not find a step-by-step instruction on how to do this in the documentation (for beginners). What settings should be in maxim, what in the plugin... etc.
Christian Milani, the last update solves the issue.
Best regards
I am reluctant to upgrade my Moodle to 4.0 version because of this excellent plugin. Anyone would be so kind to comment the use of Stack in Moodle 4.0.
Best regards
like Vardaan Solia, I get the same error (TIMEDOUT) after I have entered a sample solution. I have oriented my procedure 1 to 1 on the tutorial of the University of Bochum, but even so it does not work.
Is this a bug or does it have to do with a non-existent integration of maxima, I read about it in the comment from Al Spay?
I try to follow the instruction of this page to install Stack : https://github.com/maths/moodle-qtype_stack/blob/master/doc/en/Installation/index.md
If I understand correctly I have to install gcc, gnuplot and Maxima on my server and I imagine I cannot do that from Moodle.
My Moodle version is 3.11.15+ and my Moodle is hosted on a Plesk Server so I don’t think that I have the ability to install things.
Do you know if there is a way to be able to use Stack on a Plesk server ? Contact the support of my server (what should I ask them to do ?)
Otherwise what should I consider changing my hosting ? If yes what can you recommend me for people who want to run stack on a server and Moodle who are not an expert in linux and php...
Thank you very much
We just upgraded our Moodle to version 4.1 and the Stack plugin to version 4.4.5.
We did not change the Maxima version.
However, now when using Stack, we get an error message (trying to translate into english):
"Die verwendete Version der STACK-Maxima-Bibliotheken (2022082900) stimmt nicht mit der von dieser Version des STACK-Fragetyps erwarteten (2023072101) überein."
"The version used of the STACK-Maxima-Libraries (2022082900) does not correspond to the one expected by this version of the STACK question type (2023072101)."
However, I am pretty sure that the correct Maxima version (44.0) is selected in the plugin settings.
What do I miss?
Thank you very much!
Florian
How to resolve this is documented here: https://docs.stack-assessment.org/en/Installation/Testing_installation/#troubleshooting-an-upgrade
Some how it looks like you have either not upgraded the plugin DB correctly, or have newer code.
Please let me know if it worked.
Best regards
I just installed STACK for the first time without issues. I enabled all the necessary PHP features, and all the extra dependencies were successfully installed. During my experimentation, I've been unable to successfully create and save any STACK question, however.
The error that keeps plaguing me is "CAS failed to return any data due to timeout.", and is displayed for the input model answer field. Note that I have no question variables. Changing the "CAS connection timeout" value (qtype_stack | castimeout) unfortunately doesn't resolve the problem; nor does changing the Maxima version.
I'm using Moodle 4.3.2 (Build: 20231222) on a Linux server with PHP 8.2. Furthermore, I'm using STACK 4.5.0 for Moodle 3.9+