Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming
A randomized study of 69 young coding novices found that OpenAI Codex sharply raised their correctness while training, 80.1% against 44.4%, and that a day later, without the tool, they scored about the same as learners trained without it.
Kazemitabaar et al., CHI '23: Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, February 21, 2023. AI used: OpenAI Codex (code-davinci-002) in the Coding Steps web app
Verdict
Verdict: High
Model vintage
OpenAI Codex (code-davinci-002) in the Coding Steps web app
Self-selected children and teens with no text-based coding experience, at coding camps in two North American cities, on one Python course with a custom tool.
So what for leaders
- Test juniors with the code assistant switched off before you count their in-tool output as skill.
- Do not read a big jump in assisted output during training as proof of learning: here the unaided test a day later was about even.
- If you let new coders learn with AI, pair it with unaided checks, since this small trial found no clear loss and no clear gain.
Keep track of this study
Watch it and I'll email you if it's corrected, re-run or retracted, or a new study on the same kind of work is published. Nothing else. Save it to a pack for your next deck. Alerts aren't switched on yet. Your watches are kept, and the first email goes out when they are.
Just want the newsletter? Subscribe on Substack
The receipts
- Setting
- Online panel
- Number studied (sample size)
- 69
- Design
- Randomized trial
- Publication
- Conference paper
- Model vintage
- OpenAI Codex (code-davinci-002) in the Coding Steps web app
How far it generalizes
Self-selected children and teens with no text-based coding experience, at coding camps in two North American cities, on one Python course with a custom tool. It stops short of adults, workplaces and other tasks.
- Codex group, training phase with the AI code generatorCorrectness score on code-authoring tasks during training, standardized difference
- Codex group, training phase with the AI code generatorShare of training tasks completed, standardized difference
- Codex group, training phase with the AI code generatorReduction in task completion time on code-authoring tasks during training, standardized difference
- Codex group, immediate post-test without AI after training with the AI code generatorLower correctness score on code-authoring tasks in the immediate post-test, taken without AI, standardized difference, lower is better
- Codex group, retention post-test without AI one week after training with the AI code generatorCorrectness score on code-authoring tasks in the retention post-test, taken without AI, standardized difference
- Codex group, retention post-test without AI one week after training with the AI code generatorCorrectness score on code-modification tasks in the retention post-test, taken without AI, standardized difference
Standard deviations (SD)
Show as table
| Arm | Outcome | Estimate | Interval | Unit | Better when | Source |
|---|---|---|---|---|---|---|
| Codex group, training phase with the AI code generator | Correctness score on code-authoring tasks during training, standardized difference | +1.67 | No interval reported | Standard deviations (SD) | Higher | Section 5.1.2, authoring tasks, training phase, Cohen's d named in Section 5 introduction |
| Codex group, training phase with the AI code generator | Share of training tasks completed, standardized difference | +0.68 | No interval reported | Standard deviations (SD) | Higher | Section 5.1.1, overall completion rates, training phase, Cohen's d named in Section 5 introduction |
| Codex group, training phase with the AI code generator | Reduction in task completion time on code-authoring tasks during training, standardized difference | +1.56 | No interval reported | Standard deviations (SD) | Higher | Section 5.1.2, authoring tasks, training phase, Cohen's d named in Section 5 introduction |
| Codex group, immediate post-test without AI after training with the AI code generator | Lower correctness score on code-authoring tasks in the immediate post-test, taken without AI, standardized difference | +0.05 | No interval reported | Standard deviations (SD) | Lower | Section 5.2.1, immediate post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction |
| Codex group, retention post-test without AI one week after training with the AI code generator | Correctness score on code-authoring tasks in the retention post-test, taken without AI, standardized difference | +0.28 | No interval reported | Standard deviations (SD) | Higher | Section 5.2.2, retention post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction |
| Codex group, retention post-test without AI one week after training with the AI code generator | Correctness score on code-modification tasks in the retention post-test, taken without AI, standardized difference | +0.41 | No interval reported | Standard deviations (SD) | Higher | Section 5.2.2, retention post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction |
Design
- Design
- Randomized trial
- Number studied (sample size)
- 69
- Setting
- Online panel
- How I found it
- Mined from Maier et al. 2026 (scout batch 6, round 2), 2026-11-15
Who it applies to
- Functions
- Education and training
- Roles
- Students
Critique
What the study did well. Academic researchers matched learners on a pre-test, randomized within pairs, and then tested both arms without the tool, both the next day and a week later. That design asks the right question: does the skill stay when the tool leaves the room?
Hole 1: no preregistration. Many tests were run, and several post-test p values sit near the usual cutoff, so the choice of comparisons was not pinned in advance.
Hole 2: dropouts after assignment. A fair share of the learners who started dropped out after they were assigned, and only those who finished are analysed.
Hole 3: small and short. A week later the Codex group scored a little higher on writing code (0.28 SD, small) and on modifying it (0.41 SD, small to medium), but neither difference was significant, so the study cannot show that no harm was done, only that none was detected.
Business significance
For anyone training juniors with a code assistant, the training-phase gain is large: 1.67 SD on correctness and 1.56 SD on speed, both well past the 0.8 benchmark for a large effect. The day-after test without the tool showed a difference of 0.05 SD, essentially none.
So the tool made the learning session look far better than the skill it left behind, which was about even. The study has 69 learners, aged ten to seventeen, and measures no cost.
Does it still hold?
Not re-run. Learners used code-davinci-002 in early 2023, several generations behind current coding models. A stronger model could widen the gap between assisted and unaided performance, or narrow it if used as a tutor; that is untested.
Cite this
The paper
Plain
Kazemitabaar, Majeed, Chow, Justin, Ma, Carl Ka To, Ericson, Barbara J., Weintrop, David, and Grossman, Tovi (2023). Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming. CHI '23: Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems. https://doi.org/10.1145/3544548.3580919
APA
Kazemitabaar, Majeed, Chow, Justin, Ma, Carl Ka To, Ericson, Barbara J., Weintrop, David, & Grossman, Tovi. (2023). Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming. CHI '23: Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems. https://doi.org/10.1145/3544548.3580919
BibTeX
@inproceedings{kazemitabaar-novice-code-generators-2023,
author = {Kazemitabaar, Majeed and Chow, Justin and Ma, Carl Ka To and Ericson, Barbara J. and Weintrop, David and Grossman, Tovi},
title = {Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming},
booktitle = {CHI '23: Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems},
year = {2023},
doi = {10.1145/3544548.3580919},
}My scorecard
Plain
New Baseline (2026). A randomized study of 69 young coding novices found that OpenAI Codex sharply raised their correctness while training, 80.1% against 44.4%, and that a day later, without the tool, they scored about the same as learners trained without it. Verdict: High; Self-selected children and teens with no text-based coding experience, at coding camps in two North American cities, on one Python course with a custom tool. It stops short of adults, workplaces and other tasks. https://www.newbaseline.ai/studies/kazemitabaar-novice-code-generators-2023 Accessed December 5, 2026.
APA
New Baseline. (2026). A randomized study of 69 young coding novices found that OpenAI Codex sharply raised their correctness while training, 80.1% against 44.4%, and that a day later, without the tool, they scored about the same as learners trained without it. Retrieved December 5, 2026, from https://www.newbaseline.ai/studies/kazemitabaar-novice-code-generators-2023
BibTeX
@misc{kazemitabaar-novice-code-generators-2023-newbaseline,
author = {{New Baseline}},
title = {A randomized study of 69 young coding novices found that OpenAI Codex sharply raised their correctness while training, 80.1\% against 44.4\%, and that a day later, without the tool, they scored about the same as learners trained without it.},
year = {2026},
howpublished = {\url{https://www.newbaseline.ai/studies/kazemitabaar-novice-code-generators-2023}},
note = {Verdict: High; Self-selected children and teens with no text-based coding experience, at coding camps in two North American cities, on one Python course with a custom tool. It stops short of adults, workplaces and other tasks. Accessed December 5, 2026.},
}An effect
Cite an effect
Codex group, training phase with the AI code generator (Correctness score on code-authoring tasks during training, standardized difference): +1.67 SD, no interval reported, Section 5.1.2, authoring tasks, training phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.
Codex group, training phase with the AI code generator (Share of training tasks completed, standardized difference): +0.68 SD, no interval reported, Section 5.1.1, overall completion rates, training phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.
Codex group, training phase with the AI code generator (Reduction in task completion time on code-authoring tasks during training, standardized difference): +1.56 SD, no interval reported, Section 5.1.2, authoring tasks, training phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.
Codex group, immediate post-test without AI after training with the AI code generator (Lower correctness score on code-authoring tasks in the immediate post-test, taken without AI, standardized difference): +0.05 SD, no interval reported, Section 5.2.1, immediate post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.
Codex group, retention post-test without AI one week after training with the AI code generator (Correctness score on code-authoring tasks in the retention post-test, taken without AI, standardized difference): +0.28 SD, no interval reported, Section 5.2.2, retention post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.
Codex group, retention post-test without AI one week after training with the AI code generator (Correctness score on code-modification tasks in the retention post-test, taken without AI, standardized difference): +0.41 SD, no interval reported, Section 5.2.2, retention post-test, no-AI condition in Section 4.1.3, evaluation phase, Cohen's d named in Section 5 introduction. In Kazemitabaar et al. 2023.