Also uses AI
Objectifs d'apprentissage du cours « Modern flexible regression », présentés aux étudiant·es.
In this project, students will interact with ChatGPT to perform a statistical analysis, while providing a critical report on the results obtained. They are encouraged to explore the potential and limitations of using generative artificial intelligence in data analysis.
This project arose from a questioning of the impact of generative artificial intelligence tools, such as ChatGPT, on pedagogical and professional statistical practices. The course content has not changed, but the emergence of these new tools has prompted a twofold reflection. On the one hand, on the necessary evolution of teaching methods in the face of these technologies, and on the other, on the way in which the profession of statistician could be led to integrate, or even depend on, such digital assistance. The desire to confront students with these transformations within a defined framework therefore became a priority.
This reflection has taken place in an institutional context open to experimentation, where the use of AI is not forbidden, but remains little regulated. The course in question, taught as part of the Master’s degree in Statistics, lends itself particularly well to this type of exploration, as students already have a solid grounding in modeling and data analysis. The introduction of ChatGPT in an analysis project therefore enabled us to explore in concrete terms how AI could intervene in the statistical processing chain, while assessing its contributions and limitations.
This data analysis course introduces approaches to regression modeling for a wide variety of response variables. By the end of the course, students should be able to decide which technique is relevant in which situation and apply it successfully, including to new situations.
Students work in groups of 3-4 and are given a set of simulated data. Unlike the first year, which revealed that the proposed data set was too trivial (real data), in the second year the teachers altered the simulated data beforehand, to get the students to make methodological choices. Missing values, outliers and inconsistencies were deliberately introduced, so that the analysis could not simply be automated. Their task is to analyze the data provided to answer scientific question of interest, using ChatGPT as a digital partner playing the role of analyst.
The project relies on students’ active involvement in a critical interaction with the tool, guiding its analysis by integrating the methodological and statistical tools covered in the course. ChatGPT is used to generate code in R and analyze the data provided in relation to the research question. Students then write a critical report.
The expected report must include a rigorous evaluation of the AI proposals, considering the accuracy and consistency of the statistical choices, the validity of the methodologies applied in relation to the course content, the robustness of the interpretations, as well as any biases, errors or inconsistencies encountered in the response generated. All exchanges with ChatGPT must be documented via an accessible link. At the end of the project, the groups present their work orally and are questioned by another group having worked on the same data set.
This is supplemented by an in-class practical session during which the teaching assistant demonstrates an interaction with ChatGPT on a concrete example. An intermediate feedback phase is also offered, during which groups can request a meeting to discuss their progress.
Whereas in the first year this work only provided students with a bonus, the project assessment now accounts for 30% of the final course grade, with the remaining 70% allocated to an individual computer-based examination. This exam is based on a new dataset, with questions assessing students’ understanding and application of the methods taught in class.
The implementation of this project revealed a high level of enthusiasm on the part of the students. In the first year, when the activity was optional and rewarded with a bonus, all students took part. This voluntary participation encouraged teachers to make the project compulsory the following year, with a significant weighting in the evaluation. Feedback from the students highlighted their interest in experimenting with ChatGPT within a structured pedagogical framework, enabling them to understand both its usefulness and its limitations. They implemented some interesting strategies, such as assigning different roles (statistics ignoramus versus advanced user) or comparing it with an analysis carried out by the students themselves (without the help of generative AI).
The main challenge lies in striking the right balance between openness and supervision. Too broad a set of instructions can generate heterogeneous productions and make evaluation difficult, while too precise a set of instructions risks stifling creativity. It is therefore essential to clearly define the scope of the exercise, for example, by limiting the tools authorized (in this case, only R and ChatGPT), while leaving some leeway in the way the interaction is constructed. For example, last year, the number of prompts was limited to 10, but the teachers discovered that it was not pedagogically interesting to restrict students in this respect. They now ask them to provide the link to the ChatGPT conversation.
Another point of vigilance concerns the formulation of instructions. It is sometimes difficult to convey expectations without locking students into an overly rigid approach. It is advisable to formulate expectations in such a way as to preserve a degree of autonomy in the chosen approach, while specifying evaluation criteria using a structured grid. The instructions for the critical report, for example, have been reworded and expanded to specify the level expected for this exercise.
Finally, it is important to bear in mind that AI tools evolve very rapidly. What seemed impossible or unreliable one year may become accessible the next. The project must therefore remain flexible, and its methodological framework regularly reassessed. The use of simulated, error-enriched datasets has proved particularly useful in avoiding overly standardized answers and encouraging students to take a step back from AI proposals.
The support of the Pôle SEA can also prove invaluable in helping to set up such a system, particularly during the design or revision phase of the project.
“I found that working with chatgpt made me understand concepts studied in class a lot better because you kind of have to”fight” with it and tell it exactly what you want to do, so you really need to understand what you’re doing.”
“It was really a great experience because it was very practical and we could really put ourselves in the shoes of data analysts. This kind of approach is super useful too because we need to work with new innovation if we want to be employable.”