How to teach coding for data analysis in the era of LLM-based AI assistants? Focusing on in-person college education, especially at senior undergraduate and graduate level.
This version: 0.1, 2024-08-08 (Gábor Békés, bekesg@ceu.edu)
I. Starting points
-
We teach coding for Data Analysis in different languages. Most popular are Python and R, but Stata and maybe soon, in Julia. Everything here is coding language independent point.
-
People are now used to doing stuff with LLMs
-
Use built-in copilots like Github copilot -- tools that minor your coding and make suggestions in real-time.
-
Copilots are built in modern IDEs like VScode, RStudio, or Anaconda. The default setting is that these are on
-
Currently, LLMs produce excellent answers to easy/prevalent coding prompts but need debugging for less frequent use cases
-
LLMs may be used differently, for instance
-
As a source of input, improved Google search
-
As a source of code suggestion, improved Stackoverflow
-
As a tutor (explaining concepts), like a TA
-
As a code writer for a given problem, this is a new possibility
-
II. Our approach
-
We believe that learning to code has value even if LLMs will do a great deal of assistance and even if the next iteration of AI
-
It will help understand what code is suggested by LLM, help finetune it
-
It has intrinsic value when thinking in terms of a code. This will be important for prompting or designing workflows.
-
-
Our teaching material will be mostly the same
-
Based on https://github.com/gabors-data-analysis/da-coding-python
-
But move towards the “why” we do certain tasks (such as use functions) rather than their syntax.
-
-
What is different is the examination and motivation of students.
-
We propose a 3-step phase-in of LLMs. (Each step is 6 weeks at CEU.)
-
1: Prohibit AI.
-
Focus on core structures, objects, and basic skills.
-
The exam as pen and paper style.
-
-
2: Tolerate AI:
-
Focus on core problem-solving skills.
-
AI is encouraged as tutor not as copilot.
-
In-class short quiz without AI.
-
The exam is online but debugging is key.
-
-
3. Encourage AI:
-
Focus on projects.
-
AI is now a copilot that will raise the bar.
-
Exam is assignment-focused, where high-quality and designed products are expected.
-
-