Using Microsoft Copilot to Create WeBWorK Problems
Microsoft Copilot basic access is available using your Dalhousie NetID.
Copilot can assist instructors and teaching assistants in creating new WeBWorK problems for Mathematics and Statistics courses, even if they have little or no knowledge of Perl programming or WeBWorK PG files.
Getting Started
- Sign in to Microsoft Copilot using your Dalhousie NetID
- Read the "Start Here" instructions
Download the authoring files
- The instructions, templates, examples, and other files that can be provided to Copilot are available here
Describe your problem idea to Copilot
- You do not need to know PG or Perl syntax. Describe the mathematical or statistical concept you want to assess, along with any requirements such as difficulty, randomization, notation, rounding, or question style.
- Copilot can then generate a complete .pg file for testing in WeBWorK.
- Thoroughly test the generated PG file in WeBWorK
- AI-generated PG files must always be reviewed and tested before being assigned to students.
- Test multiple randomized versions of the problem and verify both correct and incorrect answers. Check the mathematical content, displayed values, rounding, answer tolerances, tables, notation, and problem formatting.
If WeBWorK reports an error or warning, provide Copilot with:
- the complete PG file;
- the exact WeBWorK error or warning;
- a description of what you expected to happen.
Copilot can then diagnose the problem and suggest or generate a corrected PG file.
The supplied Copilot instructions, templates, examples, and authoring guide incorporate many issues already encountered during our course migrations, which should reduce the likelihood of common PG authoring errors.
Notes
About these resources
- The Copilot instructions and authoring resources were developed from experience gained while migrating the STAT 1060, STAT 2060, and STAT 2080 LON-CAPA problem libraries to WeBWorK.
- The migration included both converting existing CAPA problems and creating new WeBWorK problems based on the mathematical and statistical topics represented in the original courses.
- The resulting authoring resources capture many of the practices, pitfalls, debugging techniques, randomization strategies, and WeBWorK conventions discovered during that work.
- These resources are intended to support both Mathematics and Statistics problem authoring.
Important note about R in Statistics problems
- R support is available on the WeBWorK server, but its use in PG problems is strongly discouraged unless there is a specific need for it.
- During the migration of the existing Statistics courses, the functionality for which R had been used in the CAPA problems could be implemented directly using Perl and native WeBWorK/PG facilities.
- When describing a Statistics problem to Copilot, please do not explicitly request that R be used. Simply describe the statistical problem, calculations, data, plots, or learning objectives you require and allow Copilot to construct the problem using the standard WeBWorK facilities.
- Live R execution can consume substantially more computational resources than an ordinary PG problem. An inadvertently generated simulation or other computationally intensive R operation could create an unnecessarily heavy workload on the WeBWorK server.
- Server-side protections are in place to limit the resources available to R workloads, but native WeBWorK/PG implementations should remain the default.
- If you believe a problem has a genuine educational requirement for live R execution, please discuss the use case with the WeBWorK administrator.
This is a pilot
These Copilot authoring resources are new and will continue to evolve as Mathematics and Statistics instructors and TAs use them.
If you encounter:
- a Copilot-generated PG error;
- a problem that behaves differently under different randomizations;
- a WeBWorK feature that Copilot handles incorrectly;
- a missing template or example;
- a problem that works particularly well;
- or a useful authoring technique that should be documented,
Please report it so that the shared authoring resources can be improved for everyone.
