Research project 04

Personalized practice for novice programmers

Recommending Parsons problems, where students reorder scrambled lines of a working program, that fit how each student is already approaching the task.

Role
Research assistant: data analysis, tooling, study design
Setting
University of Michigan, October 2020 to August 2021
Methods
Log analysis in Python, AST-based clustering, Rand and adjusted Rand index, think-aloud studies
Outputs
Clustering and analysis tooling, think-aloud study, contributions to a recommender tool
  1. 01Objective
  2. 02Current practice
  3. 03Approach
  4. 04Impact
  5. 05Risks
  6. 06Resources
  7. 07Timeline
  8. 08Evaluation
01 Objective

What are we trying to do?

Give a struggling novice programmer a practice problem that fits the way they are already trying to solve the task.

02 Current practice

How is it done today, and what are the limits?

Parsons problems are more engaging than writing code from scratch, impose less cognitive load, and may be as effective for learning. They are usually one fixed puzzle per exercise, built from a single reference solution.

  • One solution for everyone. In student data, a problem that students handled well as a write-code exercise proved hard as a Parsons problem.
  • Approach mismatch. Our hypothesis was that the Parsons solution used an approach most students would not have taken, so a student had to abandon their plan before they could start.
Two screenshots of a Parsons problem interface: distractor blocks paired with correct blocks on the left, and mixed in randomly on the right
Paired and unpaired distractors in a Parsons problem interface, from the project.
03 Approach

What is new, and why should it work?

Recommend from many solutions, not one: group students' approaches, build Parsons problems from correct solutions in each group, and match a struggling student to the group their code resembles.

  • Analysis. I separated students who did the Parsons version first from those who wrote code first, compared their performance, tracked which distractors they chose, and hand-classified common mistakes and approaches.
  • Pipeline. I wrote tooling that extracted every attempt from the log files, ran it against test cases, sorted correct and incorrect solutions, and prepared the code for clustering as abstract syntax trees.
  • Realistic distractors. Wrong blocks were written to mirror the mistakes we saw in the data.
04 Impact

Who cares, and what difference does it make?

Students get help that builds on their own thinking, instead of a puzzle that asks them to think like someone else.

  • Novice programmers who get stuck on a problem.
  • Instructors who want scalable, personalized practice for large courses.
  • Computing education researchers studying how scaffolding should adapt to the learner.
05 Risks

What could go wrong?

Risk
Mitigation
Clusters depend on the order the data was processed in
Clustering repeated over 20 random orderings, with Rand and adjusted Rand index computed between every pair
Log data is noisy
Options to drop code that did not compile and to keep only each student's last incorrect attempt
Distractors confuse rather than teach
Distractors based on real, frequent mistakes
Small study samples
Think-aloud findings treated as preliminary
06 Resources

What does it take?

Existing course data, open-source tools and a small research team.

  • Data. Logs of student submissions to Parsons and write-code problems.
  • Software. Python and Jupyter notebooks.
  • People. Two faculty mentors and student researchers, with IRB approval for the think-aloud studies.
07 Timeline

How long does it take?

WhenMilestone
Oct 2020Joined the project. Analysis of Parsons and write-code submissions.
ThenExtraction, testing and clustering pipeline, with reproducibility checks.
ThenThink-aloud studies over Zoom with problems generated from the clusters.
Aug 2021Project concluded.
08 Evaluation

How do we know it is working?

Midterm checks

  • Clear performance differences between groups that explain where students struggle
  • Clusters that agree across random orderings of the data

Final checks

  • Students in think-aloud studies find the recommended problems helpful. In preliminary discussion, they reported a real benefit to their learning.