Randomly generating mathematical questions

Konstantina Zerva, The University of Edinburgh, UK

STACK offers the possibility to randomly generate questions and give feedback, which is relevant to each specific random variable. The task presented in the video is a very simple one, and it was deliberately chosen to be simple, because the main focus here is the randomisation and the things that question authors need to consider when creating random variables in a question.

The task asks students to drag the point so that the slope of the line is the same as the given value; in this case . The values of the slope are randomised.

When the student load the question they all see the same graph. The initial slope of the line is set to in the GeoGebra app and the point is placed at . The students can move the point along the line and drag it around so that the line changes slopes.

In this example the slop needs to be . The slope is defined as so the students can drag the point and place it at and (point ). Then click the check button and see if their answer is correct or not. Another possible solution here and .

Correct slope
Figure: Defining the correct slope.

A common mistake that students do is believe that the slope is defined as so if they put at the point they'll receive specific feedback about this mistake.

Wrong slope
Figure: A common misconception.

Let's look at the background of the question and how to deal with the randomisation. All the slopes need to be ratios of two integers (e.g. ) and also they shouldn't simplify to an integer (avoid cases like ).

An example of Maxima code
Figure: An example of Maxima code for creating the variables for this question.

The variable defines the denominator of the slope. We pick the denominator to be an even number, in this case a power of . We could also predefine a list of even numbers and randomly pick from the list. The variable defines the numerator of the slope. For the numerator we pick the values from a predefined list and these values are all odd numbers. We define the slope as and in our case all the slopes will be fractions.

AuthOMath Logo, EU flag, Co-founded by the European Union
The creation of these resources has been (partially) funded by the ERASMUS+ grant program of the European Union under grant No. 2021-1-DE01-KA220-HED-000032031. Neither the European Commission nor the project's national funding agency DAAD are responsible for the content or liable for any losses or damage resulting of the use of these resources.