Transcript#

This transcript was generated automatically and may contain errors.

Well, hello everyone. I'd like to welcome you all to our closing keynote of our last two days of amazing discussions and talks. And it is my great pleasure to introduce you to Mina, well, I'm sure most of you know her. Mina Sentenkaya-Rundell is Professor of Practice in the Department of Statistical Science at Duke University and Senior Developer Advocate at Posit PBC, as well as an affiliated faculty member in the Computational Media, Arts, and Cultures program at Duke University.

Her work is dedicated to advancing innovation in statistics and data science pedagogy, focusing particularly on computing reproducible research, student-centered learning, and open source education. She emphasizes integrating computation into the undergraduate statistics curriculum, employing reproducible research methodologies, and analyzing real and complex data sets. It is, again, my very great pleasure to introduce Mina Sentenkaya-Rundell. Thank you so much. Mina, the floor is yours.

All right. Thank you very much for the invitation to speak today. I'm really grateful for the invitation and I thoroughly enjoyed the talks that I was able to catch and very much looking forward to catching up on the recordings of those I missed as well. So, as you know, I have been, some of you may not know me, I've been teaching for over 15 years, mostly at Duke University as a professor of statistical science.

Statistics and data science have changed enormously during this time, and my teaching has changed with them as well. But one commitment has stayed constant, which is designing clear, carefully scaffolded exercises, assignments, and assessments that give students room for productive struggle. And another thing that hasn't changed is that I'm always on the hunt for interesting data sets, and interesting gets harder and harder to define as my age gets farther and farther from my students. So, I try to gravitate towards data sets that I think should be of interest to them.

A sample homework assignment

So, I'm going to start my talk with a sample assignment from an introductory data science course that I teach. I just actually finished teaching a lecture that brings these two things together. And the example is from this website. The data set is based on this website called OpenSecrets, which is a non-profit organization, not just a website, and they collect data and share data on the money in American politics. So, for each election cycle, they provide data on foreign connected political action committees, or PACs as we refer to them in the U.S., and the parent company and the country of that company, the amount they contribute, and to which party, Republican or Democrat.

And the gist of the assignment that I give the student is to compile data on these contributions over various election cycles into a single data frame, transform and tidy it. There's a lot of information there as to how to do so, but in a nutshell, transform and tidy it, calculate annual contributions, and then create a visualization that can shed light on trends of contributions towards Republican and Democratic candidates from various companies and countries.

So, the assignment is written with student success in mind. It's scaffolded so that student who wants to complete it has enough information to complete it. And this version of the assignment was written in the before AI era, so students could use keywords from the assignment to find their way. But things, as we know, look a little bit different today.

AI doing the homework

So, I am going to fire up Positron with Posit Assistant, and all I've said to Positron is do my homework for me. So, do the tasks outlined in the README. This is using, as I said, Posit Assistant. This is the built-in agentic AI tool, and we've just pointed it to the homework instructions, and it's doing some things. As you can see, it's thinking through, and then at some point, it says, would you like me to do these things? I am barely taking a look at what it's asking me to do, and I just hit allow every single time, and just watch it crush the homework assignment that I have meticulously put together and scaffolded for my students. Not only does it do the analysis, but it creates a Quarto document that does the full analysis for me, formats it nicely, and if I was to preview that Quarto document and take a look, you can see that, you know, it uses the sort of the coding principles that I tend to teach my students.

It also writes the narrative. Now, it looks like something went wrong, right? So, maybe as a student, something went wrong, and I say, fix it for me, and again, I have barely needed to articulate what went wrong. Usually, we're used to students having to think about what went wrong, and maybe even Google their way around it, but instead, they could just say, hey, this didn't work, try again, and it figured out that it had made some errors in parsing some of the text data and creating my visualization, implemented the fix, and voila, I have basically contributions from the UK in this case, as the homework assignment asked, to Democratic and Republican candidates over the years. I even have some interpretations that sound not that bad. It's telling me what the trends look like. It's even picked some nice colors for me as well that signify the parties. Lovely. I mean, it didn't get the job done in the first try, but with a second lazy prompt, it got there, and I'd say this is a solid B plus A minus work.

Well, it's November 2026. We're well into the AI era. I'm closing a conference called R plus AI, so I know nobody's surprised that LLMs can write this code, right? I don't think I actually blew anybody's mind here, and probably nobody's surprised that Positron now comes with an AI assistant that gives you a wonderful user interface and supports this interaction, but what's perhaps still a little bit surprising is how close the AI-generated assignment is to my answer key. How did it really get most of those pieces in the right places? I think how I structured my assignment has just as much to do it as the power of the frontier model, so I'm not going to let these models take all the credit.

these models take all the credit. I think how I structured my assignment has just as much to do it as the power of the frontier model, so I'm not going to let these models take all the credit.

The assignment was written pre-AI with student success in mind. I use specific terms and sentences in my assignment to help students find what they're looking for in Google searches and Stack Overflow posts. Now, if you just call these prompts, they make darn good ones. That means being deliberate about what my instructions specify and what they leave for students to figure out. I want students to spend their effort reasoning through the problem rather than deciphering what I'm asking, and I want my students who successfully complete their assignment to end up with a reproducible document that not only presents a correct data analysis but also follows good programming and data science principles.

Lessons from Sol LeWitt

And that brings me to this piece of art. I don't know if anybody recognizes it. I believe there is one reproduction of this at the MOCA in San Francisco, for example, but this is Wall Drawing 681C by Sol LeWitt, except the artist didn't create this piece of art. Instead, he wrote instructions, and every time these pieces of art are displayed at a museum, others execute the drawings according to the principles of his work. So, for this particular art piece, the instructions say, a wall divided vertically into four equal squares, separated and bordered by black bends. Within each square, bends in one of four directions, each with color ink washes superimposed. This particular version that you're seeing was actually created by GPT 6.1, Sol Medium. I just recreated that this morning again, just so it is like a fresh piece of art, if you will, and I sure hope that LeWitt isn't turning in his grave for this interpretation of his instructions.

But a central question his art asks, and I want to ask, is what do the instructions determine, and what does the person carrying them out contribute? That's often what I'm thinking about when I am working on building assignments and instructions for my students in this new era.

The premise: should students still learn to code?

So, this brings up the premise of this talk. Now that AI tools can generate what I would call functional code, scaffold entire reports, and debug pipelines faster than most students can type, should we still ask students to learn to do these things themselves? My answer still is yes, and not for the sake of learning syntax, that wasn't ever 100% of the goal anyway, but because it teaches you ways of formulating and solving problems programmatically, and that's a skill that's going to serve you well, whether you're writing artisanal code or prompting a large language model to do it for you.

So, I like explicit examples, so that's exactly what I'd like to give you in order to convince you of this point. The first part of the talk is three prompts, three quiet problems, but before I do, I'm going to give a disclaimer. Real data sets were indeed harmed in making these examples. These are pretty much based on and inspired by areas my students run into, but then taken out of their individual data's context and brought to life with data sets that we're quite familiar with, or some toy data sets.

Prompt one: joining data frames

So, the first prompt is a very traditional intro data science course material. Join these data frames. It's a pretty standard data science task. So, I have student names and scores in two different files. I have a roster.csv and a scores.csv. I create a single data frame with student IDs and names from the roster file, and I want to bring the scores for these students from the scores file. So, here's my roster, and here's my scores file. So, these two data frames are now in my environment in R as roster and scores, and let's go ahead and ask AI to do this for me. It's going to generate some code, and this is what the output looks like, a data frame with 101 rows, but remember, we started with 102 students. I don't know how many of you caught that, and really, how many of your students, for those of you who might be teaching among us, would catch that, especially given that this code ran with no issues, and note that the code uses a nest join. I don't know how many of you would have thought about that approach first when you saw the data. Honestly, how many of you use a nest join on a regular basis?

So, this join creates one row per distinct roster entry and keeps all the matching scores in a list column. Trying to solve one problem, I'd say we created another. If I was going to do this without AI, I'd personally start with a vanilla left join here, keep everything from the roster, bring what's needed from the scores file, no additional arguments to begin with, and when we do this, we get a warning. It tells us that row 21 of X, the roster file, matches multiple rows in Y, the scores file. Likewise, row 54 of the scores file matches multiple rows in roster.

This should be a cause for pause. In fact, this detail warning serves this purpose. It prompts us to look at what's happening in row 21 and 54 of these datasets, while the AI solution silenced that warning by basically addressing it in the first place.

So, if I was to look at these, if we dig in, we're going to see that row 21 basically has multiple score entries, and row 54 has an ID number, ID 51, that corresponds to two students. So, we're seeing these mismatches here, and it's possible that we want to allow many-to-many relationships, or it is possible that this is a data quality issue that's worth investigating further. So, the investigation that should follow these findings is what makes up the statistic we've been quoting for over a decade, I think, that data scientists spend up to 80% of their time cleaning data. All of that 80% was never about looking up documentation to properly join data frames. Well, maybe some of it was, maybe much of it, but much of it was about these deep dives and decisions that need to be made in order to clean the data, and it's by intimately getting to know these data that we are going to produce successful data analyses.

But this is not a comment about how, look how AI makes mistakes. In fact, it didn't necessarily make a mistake. It instead suppressed a warning. Instead, my takeaway is that there's value that we as educators add by instilling curiosity and teaching students to work iteratively. The goal isn't to generate code that runs without issues on the first try, but instead to solve data science problems correctly, or where correct isn't well defined with deliberate and documented decisions along the way. Now, credit where credit is due. I just tried this again very recently with a

more advanced model. This time I'm going to use GPT-6 Sol, and the suggestions it gives for more data investigation are spot on, basically. It's identifying the same things that the warning was identifying and telling me, you may want to take a look at these.

And if I was to use Opus 5.5 here by a Posit Assistant, we actually get a handy tool that identifies these data quality issues and asks the user how they want to proceed. These bring up a whole other consideration. The quality of help your students can get from AI currently depends on how much they are or your institution is willing or able to spend on it, which is so very concerning on a whole other level to me, but more on that a little bit later in the talk.

Plotting a regression line

The second prompt is another very standard data science task. Let's plot a regression line. So, I'm going to start with something pretty mundane. A standard task, standard data set. I'm going to say, create a scatter plot of miles per gallon versus displacement in empty cars.

And great, we have a visualization. Wonderful. And we have our regression line plotted on it as well.

Now let's ask AI to limit to cars with displacement below 200. And without hesitation, we get the following code and the resulting plot. Is anyone able to spot any issue? Or maybe not an issue, but a subtlety? The AI filtered the data, which changes the fitted line. So, with the prompt, limit to cars with displacement below 200, the question is, did we mean to subset the data or just zoom the view? It never asked us. And the two things are going to give two very different answers. Simply zooming would have left the line as the blue line that we originally fit versus limiting the data gives us a whole new regression model.

If you are familiar with ggplot2, you know that there are different ways of limiting what you're looking at that basically correspond to subsetting versus zooming in. So, limit to below 200 is genuinely ambiguous. And the AI silently chose the second, which re-estimates the regression on a subset and changes the line. A careful analyst would have asked which one you meant because it changes the answer. And as generating syntactically correct code gets easier and easier, even with vague instructions, I think that mastery will be what differentiates a good data scientist.

And as generating syntactically correct code gets easier and easier, even with vague instructions, I think that mastery will be what differentiates a good data scientist.

Even if the future doesn't hold data scientists writing code from scratch, and honestly, I'm not 100% convinced that's the case anyway, but a good data scientist will still need to be able to evaluate the generated code to confirm it actually does what it claims to do. And this requires a very specific type of reading comprehension that I think is impossible to achieve without doing some writing yourself. And it also requires recognizing when a pipeline quietly produces the wrong or unintended answer. So, our role and our challenge as instructors is rewarding genuine understanding and mastery over fluent generation and perhaps a bit more controversially over effort. And that's a very tricky one for me that I am trying to parse my way through as I see more and more student work that is clearly AI generated.

Fitting a model

Now, let's move on to our third example. Our third prompt is fit a model.

So, here I have a data file, Poisson.csv, that contains data on count observations along with two features, one numerical and one categorical. We're fitting a Poisson regression model to these data with R, and we're asked to report the estimates and interpret them. I've done what many of my students would do, and I just copy and pasted this into chat GPT. It gave me some code, not my code style, but it works, and some model output and summary as well. The interpretations, if you take a close look, are a bit generic, but honestly, I gave no context about these data, so I can't say that's the LLM's fault. They're also unnecessarily discussed significance, but that is not surprising to me as a statistics educator, so we're going to let that go as well.

Now, the LLM also gives some diagnostics. It says residual deviance is much larger than its degrees of freedom, suggesting substantial over-dispension, and it asks if we want to try a negative binomial model instead. How creative. The statisticians among us can probably recognize this, and if you are a student sitting in a regression course that covers this material, and you fall asleep, and it's the Poisson module, and somebody asks me how can you make things better, you can probably just slap on that answer. Why don't we try a negative binomial?

Instead, though, if I was doing this without AI, the first thing that I would do would not be to fit a Poisson model, but to take a look at my data, and if I were to take a look at my data, plotting my response variable versus one of my numerical explanatory variable, and coloring it by my categorical predictor, I can see that there is clearly an interaction effect, and in fact, if we were to fit a model with an interaction effect, a lot of that residual deviance is actually absorbed, and over-dispersion is no longer an issue. So, going down Chad GPT's line of reasoning, we would never uncover this feature, which seems really, really simple when we actually look at the data.

So, it's difficult, particularly for new learners, to be skeptical of authoritatively worded technical language that AI tools are immensely good at generating, so a healthy amount of skepticism is what we educators can cultivate in our students to help them be successful, even when using AI. The point isn't that AI can't make the exploratory plot, it's that the students need to know to ask for it.

So, the examples so far have been about why we don't need to throw in the towel just yet, and how we as statistics and data science educators who teach programming, among other things, can still add a lot of value to our students' learning by instilling curiosity, teaching to mastery, and cultivating skepticism.

Pedagogical approaches

And for the second half of this talk, I want to change gears just a little bit and leave you with three concrete pedagogical approaches that you can think about if you are also teaching this material. And if you're not a teacher, but a data scientist yourself was using these tools, maybe there are some takeaways for you, particularly when it comes to methodologies that you might be using where you're a new learner, that you can use AI to support your learning as opposed to take away from your learning. So, that is approach number one, shifting AI use from taking shortcuts towards supporting learning. And I want to do this in three parts.

So, approach 1A is going to be bringing AI to the IDE, as opposed to having our students leave the IDE and go to an AI tool that has no context of what's happening in their working environment. So, here I am in Positron, and I am going to be using Codec to bring AI to my IDE. This decision here was honestly driven by my university giving AI access to all students and faculty via OpenAI. We got an email literally three days into the semester saying now this access is available. So, I pivoted a lot at the beginning of the semester to say, okay, now I have a way of bringing AI to my students in an equitable way so that they can all use the same free access in the classroom. And doing so, students are able to ask for help from AI by referring to specific files into their folder and even leverage the session information. So, anything that's in their working environment or maybe their history as well and are able to get help directly in the IDE.

Now, this can lead to behavior that we saw at the very beginning of this talk where they could then just point the AI tool to do their entire homework assignment. So, we tried to get in the way of that a little bit as well and govern the agent's behavior with an agents.md file. So, each homework assignment or any exercise that we're doing in class, it comes as a GitHub repository in my class and students go ahead and clone this as a project in Positron. And in each one of these, they have an agents.md file. Now, this is a plain text file that basically has some instructions that tells the agent how to behave. Is it possible that the students could edit this file to change the agent's behavior? Yes, it is possible. Is it possible that they leave the IDE and go use an AI tool elsewhere that does not have these governing behaviors? Yes, that's absolutely possible as well. So, those would be those conversations while do certainly have some place when it comes to teaching in the age of AI. What I want to focus here on is how do we support the learning of the student that wants to learn as opposed to the students that's trying to take shortcuts? Or how do we support the student who is very new to these AI tools, maybe has not completely experienced how quickly they can generate answers? And particularly for an introductory data science course, a lot of those answers will be very close to complete, but holds the AI tool back a little bit while it's giving out help to the students so that they're not just sort of wowed by the speed at which code can be generated, but can actually use the AI tool to help their learning at the pace that I believe is the appropriate pace for the AI tool to be helping.

So, you can see I'm not going to read through the entire agent's file here, but we give some roles and priorities to the agent and these instructions that say things like protect academic integrity and student learning, help with the student's immediate question through explanation and guided debugging, follow the feedback protocol, I'll get to that in a second when the student requests answer feedback, and apply course workflow and style reminders are all things that I also tell my human teaching assistants in terms of how they should be running their office hours. We also set some hard boundaries, just like I tell my TAs do not write code for your students, I tell the agent do not directly input code into the student's quarto document, do not just spit out the answers if the student has not attempted anything. So, those hard boundaries are also set.

For helping with assignment questions, we give some instructions to the agent like suggest one or two next steps as opposed to giving out the whole thing. Ask the students to try a little bit and then go forward from there. As a teaching approach, we want the agent to be supportive, specific, and concise. Boy, they can write a lot of text, and we all know that it's really, really hard to get the students to read a lot of text, and they're going to do just what I was doing and hitting allow and proceeding through, and that's not what we want the tool to be doing for them. We want to prefer questions and checks that help the students reason through the problem, and do not silently fix mistakes or infer some missing work. Does this, you know, always do, does the existence of these instructions mean that an AI tool will never make a mistake or never cross these boundaries? I couldn't confidently say that. We heard just in the previous talk as well how these are stochastic, and we can't necessarily count on a certain behavior, but most certainly it's going to govern it majority of the time, and we also say that when assistance becomes confusing or the student appears stuck after several attempts, recommend office hours, bring the students back to the course website and the course materials, and give feedback based on those.

And finally, we, as part of this approach, we also want to leverage AI to give just-in-time feedback, so leverage AI to do things that humans couldn't conceivably do at the time that the students are requesting us to do them. When is that? 2 a.m. before the homework deadline, when they're working on an assignment and could really use help over their shoulder, telling them it looks like you're missing this, it looks like you did a good job there. So when students actually complete the answers, the AI tool also can give them some feedback. How does it happen? There's a rubric that I write that is itemized rubric items for every question that the student is working on that gives, that their work can be checked against. This is pretty much the same rubric that we use for grading for any questions where we're doing human grading as well. So when a student asks for feedback, we ask the AI tool to evaluate the answer,

count how many rubric items they have met, and if they've missed many, we take a pause. We don't just list the rubric items, and instead we say, ask the student to try a bit more and give them some hints. If they have actually met more than half the rubric items, then we give them an itemized list of things that they have done right or things they are missing.

We ask the feedback to be formatted a particular way. I won't go through the details here, but the idea is that the feedback here looks very much like the feedback that's structured for them in the grading tool that we use called Grade Scope, where humans actually do the rubric checking as well. So let's take a look at what this experience looks like for students. I'm going to go ahead and start this. All right. So let's say that a student is working on their assignment, and as you can see in my Quarto document, there's a lot of placeholder text here, and the student just has, says, help me with the homework, and Kodak is saying, no, I'm not going to do that. Which question are you asking about? Question one, and it's asking the student to paste their work for question one so that feedback can be given to them. Since this extension is able to see the files that the student is working on, we can just highlight whatever we want feedback on, and the extension is able to talk to where the cursor is and what's highlighted, but as you can see, it's resisting. It is not giving answers because the student has done no work whatsoever here.

Now let's go ahead and bring in some student work and ask again. So this time the student has done a little bit of work, and they are going to ask for feedback again. Let's give it a second to do its thing, and it looks like the student did things properly and got the right answer for part A, and it's now asking for how about the rest of the question. So the student is able to get real-time feedback one part at a time on a question that they're working on. I'm going to bring in the rest of the answers here as well so we can demo what the feedback looks like when we have sort of complete answers from a student.

These are complete answers, but we don't know if they are complete as in the student thinks it's complete, but we don't know if they actually got everything right or wrong. So now that there's a substantial amount of work to be evaluated, the tool is comparing the student work to my rubric, and you can see that it's formatting the feedback with check marks or exclamation points. It's bolding things that we believe the student is missing.

We can't know for sure that it's not making a mistake doing this, but given appropriate scaffolding in the rubrics, it tends to get things pretty close to right majority of the time, and ultimately note that we're not using this to grade the student work, but to nudge them in the right direction. So the goal here is that the AI tool can not only generate answers for the students, but can also be used to evaluate student answers, and that is where I as an educator feel a lot more comfortable students leveraging this level of help.

So the goal here is that the AI tool can not only generate answers for the students, but can also be used to evaluate student answers, and that is where I as an educator feel a lot more comfortable students leveraging this level of help.

This also allows students, it prompts the students to pause, think, and try before providing solutions compared to what we saw at the beginning of the talk. It gives students one more opportunity to see rubrics that they can learn from, so they don't have to wait until their graded work is returned back to them, and it shifts instructor and TA time towards higher value, and I would say more enjoyable touch points like in-person interaction and office hours, and away from repetitive and error-prone grading tasks, and the thing is much of the grading feedback tends to go unread. Any educator nowadays will tell you this, and if you're using a grading tool like Gradescope, you can see the statistics of what percent of your students are reading the feedback, and those numbers are pretty low, so if the students are not reading the feedback a week later, it's a lot better for us to be able to give them the feedback at the time that they're working on their assignment, and honestly, it provides some instructor and TA time from providing this detailed feedback to what might potentially be fully AI-generated student submissions, which are a reality of our lives despite whatever boundaries we set with these tools and whatever sort of academic conduct rules we make as well.

Leveling the playing field with AI instruction

Approach two is leveling the playing field with explicit how-to-best AI instruction. We can't just throw these things at the students, but we actually need to demo them, something that I have found over the last two years of trying to experiment with bringing a little bit of AI into the classroom is that small periodic doses of demoing good AI practice as opposed to a single lecture of data science and AI tends to go over a lot better. Explicit examples are always good, but also if your course policy says that students should cite AI, it's important to give what a proper sufficient citation looks like as opposed to expecting students to get it right. Nowadays, it's pretty difficult both with the agentic tools and even also with the chat interfaces to get a persistent link to a thread. So, back maybe a year ago or so, I would ask students to provide a link to a thread to me. What we've been seeing is that some of those threads are not live. A little bit after homework submission might be happening. So, it's important that we decide what needs to be cited and in which format. The other thing as an educator is it is indeed the Wild Wild West and you gotta expect to update anything that I have said each semester and probably more often.

But also importantly, I want to pause and say, yes, I've talked about ways of how AI can be used in a way that can support student learning, but it's also important for us as data science educators to teach the what, the how, and the ethical considerations around teaching AI as well. We've been saying for years and years that talking about the ethics aspect of data science is really important in these curricula and AI especially brings another rich sort of trove of examples that we can give to students in terms of ethical uses and unethical uses. And we also want to, at least my policy has been, or my thinking has been, that I want to teach these tools a little bit and I want to enable students to use them in a responsible way that supports their learning, but also not necessarily require the use of these tools because not every student is comfortable with doing so.

Emphasizing workflow best practices and version control

And finally, the approach three is to emphasize workflow best practices and especially version control. However much it might be that AI tools are good at generating code, not only do we still need to be teaching students the sort of the basics of programmatic thinking, but I believe we also need to continue to teach workflow best practices as well. Let's take a look at an example here. At the very beginning, I mentioned when I was going through my example of the open secrets data, we had that plot that didn't have any, it didn't show any lines for us and then we asked the AI tool, the Posit Assistant, to go back and redo things. One of the mistakes that it had made was that the tech, the data that was the dollar contribution amounts was not parsed properly. There were some parentheses there that were basically making it impossible to sort of identify the numeric values and those parentheses actually are mean negative values. So we had some negative values in the data. So now I ask perhaps Posit Assistant to go back and fix them. These are the fixes that it does in my analysis. It goes and writes a new function. I don't know why it writes a new function for something that already exists, but it writes a new function to clean up those parentheses and make those numbers negative. And then it changes my mutate statement later to going from parse number to this parse dollar sign, parse dollar function that it wrote. Without version control, it would be impossible to see this diff and if the students are asking for changes that affect multiple areas in their document, it will be really difficult for them to keep track of it. Now those of us who use these tools know that with each change that they make at the end of their work, they tend to show a diff as well, but those diffs are ephemeral in the sense that they remain in that chat window, but they're not necessarily version controlled at each time. So if we are using students to use version control as part of teaching them data science as well, it will necessarily help them sort of have a better sense of the changes that AI tools are making in their work and be able to connect the prompt that they're writing to the actual changes that they result in in their work.

Closing thoughts

So as we close the talk, I want to end with a quote from a book that I very much enjoy, The Art of Statistics by David Spiegelhalter. And the quote says, there is no substitute for simply looking at data properly. And I sure hope that as myself and my students and all of us leverage AI tools more and more to help us do our data science work, we don't veer away from looking at data properly and still sort of find the wherewithal to do the investigative tasks that are required, not just necessary, but required to do correct data analyses. Thank you so much for listening. And if there are any questions, I would be happy to answer those as well. And the link that's on this slide is where you can find these slides posted as a PDF file as well.

there is no substitute for simply looking at data properly.

Fantastic. Thank you so much, Mina. Really, again, I'm so thrilled with the talk and your points about enabling curiosity, giving them a path to mastery, teaching them to be skeptical because the world is definitely not always what people think. And it just fits so well with how I feel like the R community in general is approaching AI of, yes, it's useful, but it must be managed. And especially in bringing new students and new practitioners into the fold to give them this framework is so valuable and so amazing. Really just truly enjoyed so much.

And questions in the chat. As a practitioner, what version of your agents.md file would be appropriate to still drive progress, but allow the practitioner to develop new skills and learn new areas?

So, I think one of the things that I might take out of that file as a practitioner would be the rules around never inject code or never write code into a script file or a quarto document. As a more experienced user who is not just learning to code, but maybe learning how to do new things with code, I think many of us can handle, particularly if we're good with version control as well for these tools to, you know, put stuff into our documents. But I would still keep things around code style. Maybe not the code style that I'm using, but I actually point the agents file to the tidyverse style guide. So, I would certainly keep that. If you like working in a particular ecosystem, for example, if you are using tidyverse and tidy models for your programming, I would add that there so that the code that's generating is sort of within those bounds or tends to be within those bounds. So, I would recommend doing that. Another thing is, and some of this might be driven by the agents file, some of it actually is how you set some preferences in the tool that you're using, whether that's Codec or Posit Assistant or anything else, whether you want things to be done automatically for you or what the right cadence of pausing and asking you is. And for someone who is trying to develop new skills, you could, for example, if you know for a particular project you're going to work with, you know, some new models or a new aspect of a shiny app you're building or something, you could put some hard boundaries there saying, when you are building these components, show me, you know, 10 lines of code at a time or something

like that and do that bit slowly. But the data prep, you're welcome to write a lot of the code yourself. So, one can tweak these from project to project as they're learning new things. And my experience, the current version of my agents file, I don't know if you all caught, was homework six. That's version six of the file that I'm using, honestly, tweaking it along the way. Sometimes those tweaks are probably going to be perpetual and maybe not that necessary as models change.

But some of it is me learning how to really phrase things so that we walk this fine line between being helpful and frustrating students. You know, just like a human TA doesn't want to be just mute and not answering questions and hence basically motivating the student to go get help elsewhere, we want to be able to have it be a little bit lenient so that it is actually being helpful and supportive.

Excellent. How do you handle AI giving multiple solutions, using solutions that you may not have taught, but they're correct?

Yeah, well, it's impossible to handle in some sense. It's how I know that the code is not at all written by my students at that point. However, one of the things that has helped is, again, in this agents file, we say, one, use tidyverse code. I give, I say like what they have learned so far. So I have been trying to, as the course progresses, change the agents file to say the code students have learned so far is up to chapter N of R for data science. So since I'm doing this sort of over time, I'm able to shift that boundary and say things like prefer methods introduced before that as opposed to after that. Sometimes just giving like an entire book and like asking it to really like ingest all of that can honestly be very sort of token hungry as well. So you may want to be a little bit more specific about that. So you can build those hard boundaries.

I will never be able to do that, sort of like 100% of the time, but I'm trying to find the balance between governing the AI's behavior, which I realize I can only do sometimes and not very predictively, but also teaching and motivating my students to pause and ask things like, I don't understand this code. Can you try to do it another way? So they also can prompt AI to say, I don't get this. This looks nothing like what I have learned in class. Can you show me another way? And it will happily show another way. And hopefully it will get to the point where they're starting to recognize things.

Yeah. Excellent. Again, it just, the driving the curiosity. And I think that's one of the, I think that's one of the key things that humans engaging with AI on a regular basis need to keep up front with all of it is being curious because I found that sometimes AI use can kind of dampen that for people.

I found that sometimes AI use can kind of dampen that for people.

Yeah. And also here's a, here's a huge compliment. Fantastic pedagogical thinking, many useful lessons to take away. Thank you. So that was from one of our viewers. And also do you have an example of the agents.md file that you're willing to share? You know, I, I should have prepared it and I didn't, but what I will do. So I said, my slides are at this link. I will repost the slides where on the last slide, it will lead, I'll add a link to a GitHub repository as well. I'll do that right after the talk. So if you go to that deck, I don't know, in 15 minutes or whatever, I'll point to a repository where the agents file will be there too. And all the examples that I walk through as well.

Awesome. Amazing. Oh, and Raymond is asking, adding a gist would be great. So we don't have any more questions in chat, but again, thank you so much for giving us a really amazing review and way to think about not only personal use, but a lot of these people work in teams. A lot of these people are teachers and giving us a framework to really engage teammates, students, and the AI tools that are in use and really just brilliant, brilliant thinking. Thank you so much for closing out our second RN-AI conference. Thank you to everyone for joining us for our second conference. And you'll be hearing more. The recordings will be going up and we'll be revisiting a lot of these ideas over the coming year, including the results from our RN-AI survey. So again, thank you so much, Mine. Thank you everyone for joining us and have an excellent, excellent day. Cheers.