Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate an interactive quiz on matching data to a regression line
ResourceFunction["LinearRegressionDataQuiz"][] generates an interactive graphical quiz for users to specify points fitted by a requested line. |
Check answer | automatically grades input with feedback |
Reset problem | resets the problem by removing all chosen points |
Next problem | randomly generates a new problem and internally saves the previous problem history |
Print report | prints a description of the problems that have been attempted so far, all guesses made and whether the last guess on each problem was correct |
Generate an interactive quiz on matching a specified regression line:
In[1]:= |
Out[1]= |
Clicking Check answer marks an attempt based on the number of points and the approximate linear fit of the chosen points. Correct attempts are marked with a green check mark:
In[2]:= |
Out[2]= |
If an attempt does not approximately meet the specified criteria, clicking Check answer marks the attempt as incorrect with a red x:
In[3]:= |
Out[3]= |
Clicking the Print report button returns a description of the problems that have been attempted so far, all guesses made and if the last guess on each problem was correct:
In[4]:= |
Out[4]= |
For uncorrelated points or a low-quality fit, the P-value is generally high and the t-statistic is low; similarly, for a set of points exhibiting large residuals, the coefficient of determination R2 is small:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License