Integration & Collaboration: Claude Code for Econ. w/ P. Goldsmith-Pinkham | Markus Academy | 162-8 — Transcript
Full transcript
- 0:08Welcome back everybody to another
- 0:09webinar with Princeton University
- 0:12for everybody worldwide and we're here
- 0:15with Paul Goldsmith think I'm again. He
- 0:17will talk about Claude AI for applied
- 0:19economists. That's now part of the mini
- 0:21video series number eight. Hi Paul, good
- 0:24to have you again.
- 0:25>> Hi Marcus, great to have you too. We're
- 0:27finally in the summer. You can see I'm
- 0:29I'm wearing slightly less business
- 0:31attire now that we're officially in
- 0:32summer vacation.
- 0:34Um
- 0:35great. So let me actually let me get
- 0:36started. I'm going to this is sort of
- 0:38our
- 0:39you know, this is a capstone of what
- 0:40we've been talking about and I kind of
- 0:41want to start by
- 0:44giving an idea of kind of the ideas
- 0:46behind
- 0:47what I'm going to show you today and
- 0:48then we're going to we're going to work
- 0:49through some things. And so I'm thinking
- 0:51about we're thinking about AI research.
- 0:53You know, I've shown you a lot of
- 0:54different tools and how AI can do a lot
- 0:55of stuff, a lot of programming, a lot of
- 0:57different
- 0:58tools and skills. And as you get better
- 1:00with this
- 1:01um you know, thinking about this is like
- 1:03integrating a lot of useful workflows
- 1:05and sort of best practices. So
- 1:09kind of the the key idea that is sits
- 1:11behind a lot of the discussion about AI
- 1:13and I think it's true here too in the
- 1:15way to think about what AI has been
- 1:17doing is that it's really collapsing
- 1:19kind of the cost of doing a lot of types
- 1:21of work, especially coding and empirical
- 1:22work, but probably also true for some
- 1:25technical stuff as well.
- 1:27And so
- 1:28you know, kind of the key thing that I
- 1:31want to emphasize here is
- 1:34this idea of
- 1:37we've gotten much faster at some things
- 1:40but less at others. And so how do we
- 1:41kind of build best practices to deal
- 1:43with the fact that the cost has gone
- 1:45down in some dimensions but not in
- 1:46others. I mean, we're all economists. We
- 1:48sort of the idea of costly verification
- 1:50is kind of you know, built in for many,
- 1:52many years in the stuff that we think
- 1:53about. And so
- 1:55kind of the way to think about this and
- 1:57I sort of this two by two I kind of I I
- 1:59think a lot of people have said this. I
- 2:00stole this from a a nice blog post that
- 2:02I read a couple days ago, this idea of
- 2:04may think of imagine there's two kind of
- 2:06costs. You could think about this. The
- 2:07cost of making things, that's that's the
- 2:09rows. Is it cheap to make or expensive
- 2:11to make? And how expensive is it to
- 2:13verify?
- 2:14Um right, things that are cheap to
- 2:15verify and cheap to make, I don't think
- 2:17it's an issue. Things that are cheap to
- 2:19verify and expensive to make,
- 2:21you know, that's great in the sense that
- 2:22like AI has reduced those costs and less
- 2:25expensive and you can you can do them
- 2:26very effectively.
- 2:28The things that are really kind of
- 2:29concerning are the things that are cheap
- 2:31or expensive to make and expensive to
- 2:33verify, right? If they're expensive to
- 2:35make, often you're kind of do it very
- 2:36slowly, and so maybe you have a better
- 2:38you'll verify simultaneously. But really
- 2:41it's kind of the fact that things that
- 2:42are expensive to verify are hard. And
- 2:44the if you make them,
- 2:47real danger, right, is that you'll make
- 2:48them you'll make it you maybe you'll try
- 2:50and have AI do it many many times and
- 2:52you won't verify and you'll build up
- 2:54what's called a verification debt.
- 2:56And so, that's really the concern. And
- 2:59so, what I'm trying to do is kind of
- 3:01build more tools in which you can think
- 3:02about the verification process as you
- 3:04use these AI tools. And so, you know, an
- 3:06AI will come back we sort of saw the
- 3:08work, and I I skipped over it often,
- 3:10Marcus, when we did these videos was
- 3:12we had this output and we didn't really
- 3:13verify it. We kind of looked at what it
- 3:15was there. But obviously that's 99% of
- 3:17the work, right?
- 3:19>> So, there's most of it about
- 3:19verification?
- 3:21>> Yeah, I think it's like Well, I think I
- 3:23think research often is about I mean, I
- 3:26think research prior to this there was
- 3:28the doing and then of course the
- 3:30verifying, but the verifying and the
- 3:31learning kind of happened simultaneously
- 3:33as you were doing things. But of course,
- 3:35if you offloaded it, you've done less of
- 3:38that. And actually, I think people who
- 3:40have RAs are potentially more familiar
- 3:43with this process, right? If you have an
- 3:44RA and work with an RA, you're used to
- 3:46kind of saying you get output from the
- 3:48RA, you have to sort of look at it and
- 3:49see if it makes sense, and go back. And
- 3:52that loop is more familiar to you.
- 3:54>> So, how is it different from, you know,
- 3:55not applying the YOLO mode,
- 3:58where you verify each step?
- 3:59>> I think that's Well, so, I think Yeah,
- 4:01so, great question. So, if you're using
- 4:03YOLO mode, this is I'm kind of of the
- 4:05view right now that you're thinking that
- 4:06you're using more like YOLO mode or
- 4:08something, maybe auto mode, which I
- 4:09talked about, right? Something where the
- 4:11agent is able to kind of go and work for
- 4:1320, 30 minutes on something. It's going
- 4:15to come back.
- 4:16You're going to have stuff that's done,
- 4:17and you have to think about well,
- 4:19verifying if they did what you really
- 4:21were wanting to do, or if it makes
- 4:23sense.
- 4:23>> Yeah.
- 4:24>> And so, I'm going to show you kind of
- 4:26what I think of as some best practices
- 4:28in which you can do that. One is just
- 4:29going to be thinking about reviewing the
- 4:31code and the output. So, get it as kind
- 4:33of reported.
- 4:34>> Mhm.
- 4:34>> And that's going to be using Git and
- 4:36GitHub. And so, Git is kind of software
- 4:38to keep track of things, of kind of keep
- 4:40track of changes in files. And GitHub is
- 4:43a place where
- 4:45uh these changes and code can be kept
- 4:48track of along with a variety of other
- 4:49extremely useful tools that we'll talk
- 4:52about.
- 4:53We'll talk about how to give feedback in
- 4:55a way that actually keeps track of the
- 4:56path in a useful way. So, what I mean by
- 4:58that is, rather than just keeping in
- 5:00your email, right, you actually have a
- 5:01place where this stuff is kept track of.
- 5:04And then I want to talk about ways of
- 5:06integrating kind of that process into
- 5:08something you might work on with a with
- 5:10a collaborator. So, like, Overleaf is
- 5:13the one that I'll talk about, but of
- 5:14course, Dropbox that would work
- 5:15potentially well, too.
- 5:17Um and so, we're going to have these
- 5:18three parts, and they're really going to
- 5:20be about kind of setting these best
- 5:21practices for thinking about the
- 5:24verification step and the iteration that
- 5:26happens kind of at a at a at a higher
- 5:28level, one level of abstraction above
- 5:30the coding and the
- 5:32you know, even math that you're doing
- 5:33there, right?
- 5:34>> But severity is something you do on your
- 5:35own with your
- 5:36course, so I rather than the
- 5:38verification done but at the journal
- 5:39level when they're trying to
- 5:40>> Exactly, exactly. This is before I mean,
- 5:42of course, you and I write like, when we
- 5:44look at stuff, we obviously are
- 5:45verifying and making sure that we see if
- 5:47it passes the sniff test and so forth.
- 5:50>> Yes.
- 5:50>> The journal then of course will do
- 5:51verification and you know in many ways
- 5:53we're kind of just have many
- 5:54verification levels with different
- 5:55perspectives and skills um of what it
- 5:58looks like. And what we'll briefly talk
- 6:00about is you know even some of this
- 6:02feedback in this verification could be
- 6:03done by other AIs, right Marcus? Like
- 6:06there's this is a thing I think in many
- 6:08places where people will say oh I did
- 6:09this code and now I need another AI to
- 6:11kind of review that code and that can
- 6:12work quite well.
- 6:14Um this is part of workflows that people
- 6:16people implement but
- 6:17in the end there's kind of this famous
- 6:19uh quote which is like you know a
- 6:21machine can never make a business
- 6:22decision, can never make a research
- 6:24decision and so you still have to kind
- 6:26of be willing to sign off on something.
- 6:28>> Mhm.
- 6:29>> So
- 6:30what I did just as kind of as a
- 6:32background um
- 6:34I wanted to have something practical
- 6:35rather than me just telling you
- 6:36something. So we're going to have a
- 6:37practical example here
- 6:39where
- 6:40um
- 6:40Hanna Lustig actually has been posting
- 6:42about this and there's been a lot of
- 6:43discussion as you recall SpaceX just
- 6:45went public, Marcus.
- 6:47And of course everyone's concern here is
- 6:49that the IPO there's been a lot of which
- 6:51there's going to be a quick inclusion of
- 6:53this stock eventually into market
- 6:55indices and people are really worried
- 6:57about the fact that often IPOs they
- 6:59maybe are overvalued and then there will
- 7:01be a decline.
- 7:02And so I thought my one fun thing to do
- 7:05that might be to say like well let's
- 7:06look there's something called the post
- 7:08IPO
- 7:09>> Yes.
- 7:10>> basically decline, right? There's a bump
- 7:11and then a decline. Let's replicate
- 7:13that.
- 7:14Um we're going to use Jay Ritter Jay
- 7:16Ritter has a bunch of information about
- 7:17IPOs for the event sample and have you
- 7:20know Claude do this. So I already had
- 7:22Claude do this. What I asked it to do
- 7:24was I said hey go find Jay Ritter's IPO
- 7:27data, construct use Crisp I have a way
- 7:29of it so it can log into Words the
- 7:32Wharton Research Data
- 7:33Services, get the data for this and
- 7:36construct some numbers for me. So I had
- 7:38it do this already. It took about 25
- 7:40minutes. I kind of I let it in auto
- 7:42mode, but it would put it in yellow
- 7:44mode. And I told it to keep track of its
- 7:46work. So, what I said was at certain
- 7:48checkpoints, I want you to commit the
- 7:50code, keep track of what you're doing,
- 7:52saying what you're doing, log your
- 7:54decisions, and explain what's going on.
- 7:56>> Mhm.
- 7:57>> So, that way we can kind of keep track
- 7:58of what's going. And I gave it some
- 8:00guidance, but I I was kind of vague on
- 8:01what it was doing. So, this way maybe
- 8:03there'll be some things that we disagree
- 8:05with of what it's done.
- 8:07So, we're going to use this as a
- 8:08framework for thinking about what's
- 8:10going on, okay? So, what Let me kind of
- 8:13walk you through. So,
- 8:15part A, we're just going to see the
- 8:17code. So, we're going to review the
- 8:18code. We're going to think about what's
- 8:19going on. I'm going to show you what
- 8:20this looks like. And
- 8:22I mentioned this before, but I kind of
- 8:24just want to make clear like what
- 8:25version control is. And so, Marcus, have
- 8:27you ever heard of Git or GitHub before?
- 8:30>> Yes.
- 8:31>> Yeah. Have you ever used it or or no?
- 8:33>> I've used some things on the GitHub
- 8:35page.
- 8:36>> Got it. Okay, so this is a thing.
- 8:40Do you want to say it again?
- 8:42>> It's good if you explain it again.
- 8:43>> Okay, perfect. Yeah, I will. I mean, I'm
- 8:44going to do a very cursory explanation.
- 8:46I will say that the problem with Git is
- 8:47that
- 8:48you know, the joke about Git is that you
- 8:50can If you ask someone who knows about
- 8:51Git, by the time you're done, it's like
- 8:54you never want to know any There's like
- 8:55so much complication. There's many, many
- 8:57features of it that are so beyond what
- 8:59most researchers would want to use
- 9:01because it's really meant for software
- 9:02engineers, right? It's for big entrepre-
- 9:04enterprise level products.
- 9:06>> And it's also
- 9:07>> the non- Yeah. So, go ahead.
- 9:09>> You know, if you upload uh some
- 9:10software, and
- 9:12your evaluation is how often people use
- 9:14it and download it. It's like a
- 9:15citation.
- 9:16>> Oh, so that's true, too. So, it's very
- 9:18nice for that. Yeah, it's been used a
- 9:19lot to measure that. Like a lot of open
- 9:21source stuff is kept kept there. Um
- 9:24the joke now, and there's some nice work
- 9:26um by some uh
- 9:28some researchers showing that right,
- 9:30like the the amount post AI, the amount
- 9:33of GitHub repositories has exploded
- 9:35because of course, now everyone can
- 9:36generate code. Um so it goes to show
- 9:39it's it's just because you put something
- 9:41up there doesn't mean somebody will use
- 9:43it. Um but what the way to think about
- 9:44it, I think the joke that everyone says
- 9:46is that really what it is it's a
- 9:47committed set of historical versions of
- 9:49work that you've done.
- 9:51And you know, the obvious one that we've
- 9:53all done, right? Is you have like
- 9:56working code _v1.do
- 9:59file, right? And then you add v2
- 10:01_final-final,
- 10:03right?
- 10:04And obviously what you'd rather have is
- 10:07you have one file, but somehow you can
- 10:10kind of keep track of all the way that
- 10:11it's changed. That's what you do for
- 10:12example when you do a Word document,
- 10:14right? Is you do track changes and you
- 10:16might have stuff in the back or an
- 10:17Overleaf as well. And really that's what
- 10:20all those um
- 10:22programs are doing in the background.
- 10:23They just have a an interface for
- 10:25working with it, but there's a way of
- 10:27keeping track of the differences. And so
- 10:28actually what Git is is a software that
- 10:31does
- 10:32it looks for differences in files and
- 10:33keeps it uses a hashing function to keep
- 10:36track of exactly what those are, to kind
- 10:38of keep a record of things what's going
- 10:40on. And so one of the reasons that
- 10:42software engineers like it is that you
- 10:43can
- 10:44create different branches and things
- 10:46that you're going to work on so you
- 10:47don't you don't overwrite the main code
- 10:49until you're ready. Um
- 10:52it allows people to simultaneously work
- 10:53on things and keep track of differences.
- 10:56So that's just like a very like the
- 10:58simplest way in the back of your mind is
- 10:59to say like, "Look, I have a bunch of
- 11:00code. I like this code. I want to make
- 11:03sure I keep it." Well, what this does is
- 11:05it will keep a way to keep track of it
- 11:07and you can see what changes have
- 11:08changed. So it's a track changes
- 11:10effectively for software code. And of
- 11:12course, you can see why that's useful.
- 11:14If you have an RA or an AI that's doing
- 11:16stuff and you want to review what
- 11:18they're doing, it's easier if the stuff
- 11:19is is marked.
- 11:21And so what it's going to do is what
- 11:22you're going to get from the AI and what
- 11:24we got in this example is that
- 11:26this example of from the IPO is well, I
- 11:28have a repository where it's committed
- 11:30code and so I'll see the changes, I'll
- 11:32see the results, and I'll see the
- 11:33estimates that are there, and so we can
- 11:35now do the review.
- 11:37>> And you can also split it apart, the
- 11:39code into sub codes and allocated to
- 11:41>> Yeah, yeah, so we're going to look at
- 11:42this right now. So, what's nice about
- 11:44this is like the I already said this to
- 11:45you, but it's like you know, the work
- 11:47from this is
- 11:49like work from your RA. You didn't write
- 11:51it, it looks nice, but you have no idea
- 11:53if it's right. And of course, you know,
- 11:55maybe the really good models now you
- 11:57trust more than maybe an RA who's just
- 11:59started, but who knows, right? It could
- 12:01It could go off the rails.
- 12:03And so,
- 12:04all of us kind of already know how to do
- 12:06this. This is not a task that's any more
- 12:08complicated. You just need the structure
- 12:09to be able to do it. And this is the
- 12:11thing that in software engineering,
- 12:12people are very familiar with. Um this
- 12:14is a big part of It turns out if you are
- 12:16software engineer, what something called
- 12:17code review is a really big part of
- 12:19being a more senior reviewer. So,
- 12:21Marcus, you know, you as a senior
- 12:22author, you're used to having me as a
- 12:25junior or
- 12:26code review or research review, right?
- 12:28You have a lot of familiarity. You kind
- 12:29of know, like, well, theory, you know,
- 12:32you made these assumptions that wouldn't
- 12:33really kind of give this kind of result
- 12:35sort of thing. There's a lot of
- 12:36familiarity.
- 12:37So, let's look at an example here. So,
- 12:39I'm going to I'm going to pop this up.
- 12:41So, this is
- 12:43I can show you the the the the
- 12:46the timeline where I did it, but
- 12:48um
- 12:50this is a GitHub repository. And I I
- 12:52will actually make it public, but right
- 12:54now it's a private repository. So, it's
- 12:56on a website, but it's private, so that
- 12:58means no one else can see it except me
- 13:00and my collaborators.
- 13:02And
- 13:04you know, Claude has put a bunch of
- 13:05stuff here. Um there's a lot of things
- 13:07going on on this page. The The ones I
- 13:09want to focus on for what we're going to
- 13:10do is we just got this work, right? So,
- 13:12our RA did some work, and we want to
- 13:15review it. And so, the first thing we
- 13:17might do is, okay, well, what happened
- 13:18here? So, let's look for fun, let's see
- 13:19what it did.
- 13:21Let's do the initial sniff test. Does it
- 13:22make any sense at all?
- 13:24And so, it says, okay, the headline
- 13:26estimate is just common stock IPOs from
- 13:28Jay Ritter's database, 1975 to 2021,
- 13:31earn a mean 3-year buy-and-hold abnormal
- 13:33return of minus 20% relative to CRSP."
- 13:37Um that's value-weighted. And so, here's
- 13:40the path.
- 13:42And here is the buy-and-hold over time.
- 13:45And, you know, this is kind of
- 13:46consistent. Of course, the question is
- 13:48is like, is this exactly the same? But,
- 13:50more or less, this is kind of the
- 13:51decline that we were expecting. Um I
- 13:54don't actually know
- 13:54>> are different essentially or what?
- 13:57>> Say again?
- 13:58>> In the 70s, the return was positive.
- 14:01>> Yeah, there seems to be this positive in
- 14:02the 70s. And of course, I'm not enough
- 14:04of an expert in this category to know
- 14:07whether this is the exactly the same as
- 14:09what Jay has. We can do that later. Um
- 14:12but this has just a bunch of like how
- 14:13this was done. What I want to show you
- 14:15before we get into the details of this
- 14:17exactly, you know, this is a lot of
- 14:18information. How was the match done?
- 14:20What am I uncertain about? Um
- 14:25the and so on.
- 14:27Um
- 14:27let me kind of show you I want to show
- 14:29you kind of how you might review the
- 14:30code, since that's the thing we care
- 14:31most most about here.
- 14:33>> Yes.
- 14:34>> Um if you look at the top here, what you
- 14:36see is that there's these different
- 14:37files here on the left. This is the
- 14:39output. This is where the code was
- 14:40stored.
- 14:41Um you notice that there are these
- 14:43different messages here on next to
- 14:46different parts of the code. So, why are
- 14:47there different messages? Well, when the
- 14:49code was added,
- 14:51there was a commit message. So, there
- 14:52were different commits. So, you can see
- 14:53here on the top right here, there's it
- 14:55says four commits.
- 14:56>> Yes.
- 14:57>> Well, that means the code was committed
- 14:58in chunks, which is part of what I told
- 15:00it to do. As I said, "Write this code
- 15:03and commit it in chunks."
- 15:04>> Well, what does committing mean?
- 15:06>> Yeah, so great question. So,
- 15:08committing, as simply put, is kind of
- 15:11like saying saving. Although, it's you
- 15:13obviously it's not the same as saving.
- 15:15What it's doing is it's saying, "All
- 15:16right, here's a bunch of files, given
- 15:18their current state,
- 15:20commit them into the chain." Like,
- 15:21basically, what it's technically doing
- 15:24is it's looking at the the hash
- 15:25function. So, it's it's keeping track of
- 15:27the state. It's kind of saving the state
- 15:29as it is.
- 15:30Um if you've ever used state, uh it's
- 15:32kind of like doing a preserve statement.
- 15:34It's saying, "Okay, right now as of this
- 15:35state."
- 15:37So, what it's done is we'll take a look
- 15:38at this is a very
- 15:40Say again?
- 15:40>> You can still change it afterwards.
- 15:42You're not committed to
- 15:43>> No, this is just keeping track of the
- 15:44state. So, here's an example.
- 15:47Um this is just the the scaffolding. So,
- 15:49this is the very first one. It's just
- 15:51saying, "What is it doing?" It's
- 15:52scaffolding. What are we going to just
- 15:54put the project structure? We're going
- 15:55to do a get ignore so it doesn't save my
- 15:57passwords or any data.
- 15:59So, it's just doing this file. It's just
- 16:01saying what you should ignore.
- 16:03Um here is it's outlining what decisions
- 16:06it's going to do.
- 16:08Right? So, how it's going to make
- 16:09decisions. So, we can read through this.
- 16:11>> Mhm.
- 16:11>> Um we'll do this in a second and it's
- 16:13going to flag things where it's
- 16:14uncertain. Here's how it's going to do
- 16:16stuff in terms of the sample. Like
- 16:17>> Well, I haven't typed this in or Claude
- 16:20typed this in?
- 16:21>> Claude typed this in. This is all
- 16:22Claude's. Claude made all these
- 16:23decisions. So, I All I did was give it a
- 16:25prompt and then I left it alone for 25
- 16:27minutes.
- 16:28>> So, can you explain it get the ignore
- 16:29again? So, what is all this?
- 16:30>> Yes, for sure. So, get ignore is saying
- 16:33Yeah, so get ignore is saying that um
- 16:36when you're in this folder,
- 16:37what are things [clears throat] that you
- 16:38should never um add to the chain of save
- 16:41things. So, in the preserve statement,
- 16:43kind of through the analogy we talked
- 16:44about, it's always going to ignore these
- 16:46files. And the reason it's going to
- 16:47ignore these ones So, this one it's
- 16:49because it's my password and I don't
- 16:51want you to know my password. Um
- 16:54these ones it's because it's raw data
- 16:56and it's a little bit like imagine you
- 16:58had a project when you have big files,
- 17:00you don't want to typically keep them in
- 17:03the the GitHub or in the Git. You want
- 17:06to keep them somewhere else where
- 17:07everybody can have access to. Um
- 17:10So, you'd have to supply your own, for
- 17:11example. You have to download it
- 17:12yourself from words if you download it
- 17:14on your own computer.
- 17:15That doesn't have to be the case. It can
- 17:17have data if it's just a little bit of
- 17:18data like macro data, you know, you
- 17:20know, couple hundred thousand lines not
- 17:21a big deal, but you don't want to have
- 17:23more than like 20 megabytes on here
- 17:25because it it just gets very unwieldy.
- 17:28And so this is just a bunch of um and
- 17:30this is just like uh boiler plate.
- 17:31>> you have a star in front of the
- 17:34>> Oh, that means all files. So it's like a
- 17:36wild card. So all wild all files that
- 17:39end in backslash.
- 17:41>> This was its decision. I don't even know
- 17:43what this is to be honest.
- 17:44>> Because this I know this is like two
- 17:46line three it has twice and once with
- 17:48the
- 17:48>> Yeah, so this I don't know why it did
- 17:50it, but it wanted to make extra sure
- 17:51that it never stored this cuz I I told
- 17:54it in no uncertain terms to never commit
- 17:56my password. I really didn't want to
- 17:58like do this video for you and then it
- 17:59committed my password to the world. So I
- 18:03mean it'll be fine. I could change my
- 18:04password or something at the world, but
- 18:05um
- 18:06>> A new version of the password.
- 18:08>> Exactly. Exactly. So this is you know,
- 18:11we can read through this, but this is
- 18:12how it made decision. Let me just kind
- 18:14of show you some This is just one um
- 18:17this is one commit. This is an hour ago
- 18:19it made this commit.
- 18:21Then it wrote some code. So now on stage
- 18:24one and two it said
- 18:27um
- 18:28you know, what is it going to do? It's
- 18:29going to load data. So it decided it
- 18:31said, all right, well what we need to do
- 18:33is we're going to get um
- 18:36Here is the the data that it's pulling.
- 18:39Um so this is just output, but the code
- 18:41it wrote is here. So it's saying, let's
- 18:43load the data from um from J. Ritter's
- 18:46sample. So here is the data set.
- 18:49Um
- 18:52and it's going to load this sample.
- 18:55And here's a bunch of coding it does and
- 18:57so you can read how it works, like what
- 18:58it's doing.
- 18:59>> Actually, what does SRC stand for? Is
- 19:01SRC for code?
- 19:02>> Which one?
- 19:03>> Trusty old folder is called SRC.
- 19:05>> Oh, great Yeah, so this is where it's
- 19:07using kind of
- 19:09um
- 19:09programmer
- 19:11um labeling which is kind of annoying.
- 19:13It stands for source, like source code.
- 19:15>> Oh, I see.
- 19:16>> Okay. Um so, in step one, it's doing
- 19:19this. So, it's loading the data. So, and
- 19:22this is, you know, this is using Python.
- 19:23Like, I really didn't give it a lot of
- 19:25preferences. If I was going to do this,
- 19:26I probably would have done it mainly in
- 19:27R, for example. And I could tell it to
- 19:30change. This would be like getting an RA
- 19:31who, you know, wanted to do it in
- 19:33Python. You'd be like, "Well, I don't
- 19:34like this. Change it to Python change it
- 19:36to R." Um
- 19:38But then, so there's different files,
- 19:40right? So, in this folder, it's done a
- 19:42bunch of code. You can read through it.
- 19:44This is obviously it's written a lot of
- 19:45code because it's the first time it did
- 19:47it.
- 19:47>> Yeah.
- 19:48>> But then, I what we'll see soon is that
- 19:49when you do the next round, when you do
- 19:51other things, you can see how these are
- 19:53all green, right? There's all these plus
- 19:55lines.
- 19:55>> Mhm.
- 19:56>> That's
- 19:57that's cuz it's showing you all the new
- 19:58things. Next, what will happen is that
- 20:00when you change things and you kind of
- 20:02delete or add things in the next step,
- 20:05it will only show you the things that
- 20:06have changed. And so, it will be a lot
- 20:08fewer lines of code
- 20:10>> eventually.
- 20:10>> Okay.
- 20:11And the other thing that can be helpful,
- 20:12just as a comment here, is so if I press
- 20:14this plus line, I can leave a comment
- 20:16here that I could sort of say like, you
- 20:19know, what does this doing? What does
- 20:20this this part here? And I can make
- 20:22reference to that later. That we'll come
- 20:24back. But just to kind of to do this,
- 20:26you can see that there's four um
- 20:28I'm sorry.
- 20:29There's four of these. And so, like, it
- 20:31did this and then it did this
- 20:32computation here. So, it did a bunch of
- 20:35different um things and it made output.
- 20:38Um
- 20:40And then at the end, it made its results
- 20:42and it wrote up the logs. And so,
- 20:45um it's actually interesting is that you
- 20:46can see here's an example of the minus.
- 20:48So, this is now it said, you know, as
- 20:50they run, here's the things going to be
- 20:51appended. It deleted that. And so,
- 20:53here's all the stages of the final
- 20:54results.
- 20:56Here's what it did.
- 20:57Um it dropped ADRs, etc.
- 21:00And so, you know, in this case, this is
- 21:02just a lot of output. So, we can look at
- 21:04that later. Um if we
- 21:06>> So, but why is that two columns? Let The
- 21:08left is empty and then
- 21:10Yeah, so the left right. So, that's what
- 21:12I was saying here. The left is going to
- 21:13be what they what it was in the previous
- 21:15commit. So, remember it's always taking
- 21:16differences relative to where you were.
- 21:18>> Okay.
- 21:19>> And so, in the older version of this
- 21:21file in the log file, it said, "Well,
- 21:23we're going to put what we did
- 21:26after this runs." And but now of course
- 21:28it deleted that and then it added these
- 21:30lines in here. So, it's a it's called a
- 21:31diff. So, you're comparing the two of
- 21:33them.
- 21:34So, you can see why this is potentially
- 21:36useful in that like now we've seen a
- 21:38bunch of code. You've seen the process.
- 21:40You start, you know, piece by piece. You
- 21:42look at them.
- 21:43This obviously was a lot of code. I'll
- 21:45show you an example of what you might do
- 21:47um to change things. So, let me let me
- 21:50give you a simple example here of so,
- 21:53you know, this did this with these buy
- 21:54and hold returns. And so, what I would
- 21:56like to ask and I'm going to I'm going
- 21:59to pause for a second and I'll show you
- 22:01this on the command line. So, let me let
- 22:02me
- 22:03All right. So, this is the This is where
- 22:05we had been running it.
- 22:07Now I'm going to ask it to do the
- 22:08following. I'm going to say,
- 22:11um
- 22:13"Please change this. Please add an
- 22:17additional analysis that looks at
- 22:21cumulative abnormal returns rather than
- 22:25buy
- 22:27and hold returns.
- 22:30Then commit the code and push it
- 22:33to GitHub."
- 22:36So,
- 22:38just so that people are aware, what does
- 22:39that mean? A buy and hold return versus
- 22:41a cumulative abnormal return. Cumulative
- 22:43abnormal is just the arithmetic. It's
- 22:45just summing up the averages. Buy and
- 22:46hold is saying, "Oh, imagine you bought
- 22:48at the day of and then you just um
- 22:50accumulated the returns in a geometric
- 22:52sense." They might look slightly
- 22:53different and you kind of curious what
- 22:55the difference is.
- 22:56Um
- 22:58the
- 23:01thing that I want to kind of emphasize
- 23:03now
- 23:05um
- 23:07is hopefully it's clear that with this
- 23:11you're you can now review this code
- 23:14because
- 23:16you know, you're able to kind of see
- 23:17that any changes that happen. So, of
- 23:19course, I made one big thing up there,
- 23:20but you can imagine now Marcus is like
- 23:23you know, we change something, do an
- 23:24analysis, you can just review what's
- 23:26changed in that basic part of it. You
- 23:28don't have to review the whole thing
- 23:29that's going on.
- 23:31>> Yes.
- 23:31>> Um and you can kind of comment and
- 23:33figure out one thing. So, this is part
- 23:34of why it's useful to have these commits
- 23:36in steps rather than just doing have one
- 23:38giant commit because it creates
- 23:40kind of a baseline framework of what's
- 23:43going on.
- 23:43>> But is it like pressing commit that make
- 23:45a new step?
- 23:46>> Yeah, exactly. And it sort of it makes
- 23:48it so that I mean, often these commits
- 23:50are ways of kind of
- 23:53um intellectually breaking apart chunks
- 23:56of the work. And so, of course, AI can
- 23:58do things very quickly, but like it's
- 24:00useful for you if you force the AI to
- 24:02think about what that looks like in this
- 24:04context.
- 24:06So,
- 24:07um
- 24:09while this is running, so here, what it
- 24:12let me kind of describe to you now
- 24:15like what it's going to do is it's
- 24:17basically going to give you things that
- 24:18you can view one thing at a time. So, I
- 24:20think often one challenge that people
- 24:22worry about with AI is this idea of
- 24:24there's just a huge amount of things
- 24:26that you have to review. But another way
- 24:27to think about it is like treat it like
- 24:29an RA or collaborator on something. It's
- 24:31going to put in a bunch of work there
- 24:33that you need to check. And you can do
- 24:35that in the same way that you would with
- 24:37an RA or something else and iterate with
- 24:39it accordingly.
- 24:40>> Mhm.
- 24:40>> Um
- 24:41I think this like decisions and log file
- 24:43could be useful to look at. So, let's
- 24:45let's kind of take an example of this um
- 24:49to kind of see the types of decisions it
- 24:51needs to do. In the file, you can look
- 24:53at it and you can say
- 24:55um okay, here's what it decisions it had
- 24:57to do.
- 24:58So, it said, all right, well, first
- 24:59decision, I had what scheme I had to
- 25:02use. That just means like what kind of
- 25:03tables, like what data did I use? And it
- 25:05feels fine about that. It has high
- 25:06confidence. I'm not that worried about
- 25:08this particular thing.
- 25:10What sample?
- 25:12Well, nice Fortunately, this is part of
- 25:15the reason I did this project is J
- 25:16Raider has a nice database where he
- 25:17keeps track of all the information, has
- 25:19all this, and it has a linkage to work.
- 25:21So, this is makes it very easy. J really
- 25:23kind of makes it easy. Um
- 25:27So, it does not contain the offer price.
- 25:30So,
- 25:32you know, it's going to it's going to do
- 25:34this. So, like we'll have to use just
- 25:35the stock data.
- 25:38Now, of course, I haven't checked these
- 25:42decisions against the actual code,
- 25:43right? This could just be it saying
- 25:45stuff. I'm relatively confident in
- 25:47Claude that it's making good decisions,
- 25:49but of course we'd want to check this.
- 25:51Um
- 25:53It's going to match and then validate
- 25:54it.
- 25:55Um, and then it's going to report the
- 25:57match, right? Feels quite confident
- 25:59because it's got these nice permnos, and
- 26:00J has already done all the work for us.
- 26:03Um
- 26:06>> But the verification is always done by
- 26:08human like you, not by another AI agent
- 26:11or by
- 26:12you know, Gemini
- 26:14or some other
- 26:15>> So, this is right. This is me reviewing.
- 26:17So, we'll talk about it in a second, you
- 26:18know, asking Gemini to do the work in
- 26:20this in just a second. That's right. Um
- 26:24So,
- 26:27um
- 26:29What's interesting, of course, is that
- 26:31it says that it did this, by the way.
- 26:33Cumulative abnormal return as
- 26:34robustness, but it did not have that in
- 26:35the file. So, it you know,
- 26:40It wasn't there in the figure.
- 26:43Well, it said that it was going to, but
- 26:45then it didn't. So, that is a good
- 26:46example of, you know, that this is
- 26:50It didn't do this. It also didn't do
- 26:52calendar time portfolios, which would
- 26:54have been a useful one, and it didn't do
- 26:56that either. So, you know, it's good to
- 26:58keep in mind that
- 27:01these things are can be as lazy as we
- 27:03are when they when they want to.
- 27:05>> So, it's like an already claiming having
- 27:07done things, but
- 27:08>> Right, exactly. Exactly. I mean, so that
- 27:10would be you'd say, "Well, where is
- 27:12that?" And you'd be like, "Oh, I forgot
- 27:13to do it." Um you're right, I should
- 27:15have done that. Or like you tell an RA
- 27:16to do something and then they haven't
- 27:17done it yet, right? So, or Claude
- 27:19>> him to temperature just to make sure,
- 27:21please be careful
- 27:23and do every step?
- 27:25>> You could do that. I mean, so there's
- 27:26definitely ways in which you can try to
- 27:28encourage the RA to be more uh not RA,
- 27:30sorry, the Claude to be more um precise.
- 27:34That's certainly things in your prompts,
- 27:36you know, that you can do. I didn't do
- 27:37it in this, but certainly people have
- 27:39that in there. Really make sure you do
- 27:41everything. One way to really make sure
- 27:43that everything gets done though, too,
- 27:44Marcus, is that like
- 27:46is to break up your tasks into more
- 27:49bite-size chunks so that it's more very
- 27:51You know, these are all like
- 27:53in the end, it's sort of the economic
- 27:55constraints bind, right? We have to do
- 27:57verification because
- 27:59in the end, it's not the AI writing the
- 28:00paper. So, it's kind of an interesting
- 28:02aspect of this. Um here it's like what
- 28:05benchmark do you want to do? So, it did
- 28:08the market Chris evaluated.
- 28:10This literature actually does some
- 28:11interesting matching with control stuff,
- 28:13and I have some work thinking about
- 28:14this. But, this is a very interesting
- 28:16question of like who should you match
- 28:17when you do an IPO? The market isn't
- 28:20actually not a very natural um match,
- 28:22and there's a big literature about this.
- 28:24You know, what are the event windows to
- 28:25do? It did a 3-year one. That's cuz
- 28:27that's the common one for this, but you
- 28:29know, maybe that's not the one we care
- 28:30about. I The thing if I were going to
- 28:31spend a lot more time, and we don't have
- 28:33infinite time, Marcus, is like might be
- 28:35interesting to look at the event how
- 28:38what the return looks like up until they
- 28:39get included in an index, for example.
- 28:41>> Yes.
- 28:42>> That might be a really interesting
- 28:43question for the stuff that we're
- 28:44looking at. How do you think about
- 28:46delisting returns? So, if they're
- 28:48delisted, what do you do? There's a lot
- 28:50of small smaller stocks where that
- 28:51happens.
- 28:52Um
- 28:54I actually don't know enough on this to
- 28:55think about it. And then some sample
- 28:57decisions, inference, and so forth. You
- 28:59know, how do we want to do the standard
- 29:01deviation like think about the standard
- 29:02deviation.
- 29:04Um [snorts] so, that's like a really
- 29:05interesting problem. So, while you know,
- 29:07now let's take a look and see if
- 29:10it pushed So, if you look here, remember
- 29:12it was four commits and now it's done
- 29:14five.
- 29:14>> Okay.
- 29:15>> So, we can say, all right, great. It did
- 29:16this work for us. And we say,
- 29:19you know, where's my where's my thing?
- 29:21What's new? What? New analysis computing
- 29:25additive cumulative abnormal returns
- 29:26alongside buy and hold. It now has a
- 29:29balanced firm by event month grid. So,
- 29:32what that means, right, is that
- 29:34um
- 29:35it's basically trying to make it balance
- 29:37so that it sums up correctly cuz it's
- 29:39not a portfolio. Um
- 29:42And why? Because I requested it.
- 29:45And then here's here's off it. So, what
- 29:47did it do? So, it changed things. Here's
- 29:50its reasoning. So, this is the reason
- 29:51the decisions, the log file, and so
- 29:54forth. Let's look at the change in the
- 29:55returns also. This one
- 29:58This is before code that existed before.
- 30:01You can see there's a lot of code here
- 30:02and you can open this up and you can
- 30:03look at more. So, this is all the stuff
- 30:05that was written. And then the green is
- 30:06the new text.
- 30:07>> Edits and yeah.
- 30:08>> Got it? So, it's making Now, we could
- 30:10look at how it's doing it. Um
- 30:13so, it's saying it's doing a fixed
- 30:14horizon.
- 30:16So, you know, it takes the return minus
- 30:18the benchmark after delisting it sets it
- 30:20equal to zero just so that it ignores
- 30:22it.
- 30:23Um
- 30:25And then how does it save it?
- 30:27And
- 30:30So, now it's going to calculate this
- 30:32return. Here's how it's doing it. You
- 30:33can take a look at how it's This is I'm
- 30:35not going to belabor the time of doing
- 30:37it. I'm sort of hoping that it's doing
- 30:38the right thing. But what we can do is
- 30:39we We look at the um the figure now.
- 30:42Oops, sorry.
- 30:44Um maybe we'll look at the on the main
- 30:46page so we can look at it.
- 30:49So now we can look at this graph
- 30:52here.
- 30:53So this is the cumulative abnormal
- 30:56return graph.
- 30:58So this is now this is the cumulative
- 31:00one. Remember this is the buy and hold.
- 31:02>> Yes.
- 31:03>> So the cumulative one interestingly
- 31:06um
- 31:06is
- 31:09Yeah, so it's about 17%
- 31:12whereas um the average for the buy and
- 31:15hold is about 19%.
- 31:17>> Okay.
- 31:17>> Um
- 31:20So what's interesting of course about
- 31:21this is that the
- 31:23you know, here the mean does way way
- 31:25worse on this one relative to the median
- 31:27and kind of the differences in the
- 31:29median and the mean look different here
- 31:31for the cumulative versus something
- 31:32else.
- 31:33>> Wow.
- 31:33>> And there's reasons for this that just
- 31:35have to do with interesting things about
- 31:37volatility and so forth. But um
- 31:40interesting to think about like the
- 31:41reasons for why this does looks like
- 31:43this. But I kind of want to just
- 31:45emphasize that this is one way in which
- 31:46you can do this. Um
- 31:50So let me kind of back up. So
- 31:53you know, if we think about uh going
- 31:54back to the what we were talking about
- 31:55in the slides,
- 31:57you know, this just gives like a really
- 31:59nice way of looking at the code like
- 32:03pieces of the code. Now of course, you
- 32:06know, Marcus if we had a research
- 32:07project that does this, you're going to
- 32:08have many many changes.
- 32:10>> Mhm.
- 32:10>> And you might want to go back and look
- 32:12at decisions of like why you did things
- 32:14or keep track of things. This kind of
- 32:16really keeps track of what was going on
- 32:18and the reasons behind it in a
- 32:20particular one.
- 32:22So [snorts]
- 32:22you know, you can make a checklist.
- 32:23These are sorts of things we could look
- 32:25at. Um
- 32:27you know,
- 32:28So let's let's give an example. Let's
- 32:30think about
- 32:37Exactly, exactly. So that might be nice
- 32:39in that you could be
- 32:39>> like, let's do this example and here
- 32:41show me what that one is and keep track
- 32:43of it. Um and ideally, you know, you
- 32:45having a working example where you have
- 32:47that written out in there. And of course
- 32:49there's By the way, this doesn't just
- 32:51have to be the AI that does it. You
- 32:52could write the code yourself or write
- 32:54the theory part, commit it yourself in
- 32:56the same repository, and it will keep
- 32:58track of it in the same way.
- 33:01Um
- 33:02uh
- 33:04So, like one example here that we could
- 33:06say is we could say, all right, well,
- 33:07let's let's just find out like what it
- 33:10did in terms of
- 33:12the um
- 33:14the Ritter IPO code.
- 33:16And
- 33:18so, like a question we might say is
- 33:19like, did it actually use the event day?
- 33:22Or like, how did it get How did it pick
- 33:23the event days?
- 33:25And so, if we wanted to do that, we
- 33:26could just go and um look at the code
- 33:29again and we could say, well, when it
- 33:32loads the data here,
- 33:35let's just look at the code.
- 33:37And we can even look right when it does
- 33:39the commit. We can say, let's look at
- 33:40the commit
- 33:42where they did the stuff about loading
- 33:43the data.
- 33:44Let's figure out, you know, what it did.
- 33:47And so, we'd say, all right, load Ritter
- 33:48file. And we say, all right. So, it has
- 33:50this sample. It's going to pull in this
- 33:52data.
- 33:54And it's doing it
- 33:56um
- 33:57you know, offer date raw.
- 34:00And so, it's going to construct this
- 34:02offer day here based off of this file.
- 34:05And so,
- 34:06it looks it's going to basically
- 34:09do this step of construct um a a value
- 34:13here that it's going to say, let's make
- 34:15a date based off of this string, and
- 34:17we're going to look at the the file that
- 34:19it's doing.
- 34:20Um and so, that looks reasonable. I
- 34:22mean, we could look at it,
- 34:24but it's I actually have kind of
- 34:26double-checked to make sure that it's
- 34:27right, and it's constructing the year
- 34:29based off of that offer day. So, we know
- 34:30that it's done it correctly.
- 34:33We the key kind of key thing that we
- 34:34have to make sure is that offer date raw
- 34:37is the right thing in that folder,
- 34:38right? And so, the way to do that would
- 34:40be to kind of look at what that data is.
- 34:43Um
- 34:46and you know, obviously we're trusting
- 34:48that Jay has done this correctly. So,
- 34:50Jay has this, you know, massive
- 34:52Excel file where he's done this.
- 34:55Um and he has the offer date and that
- 34:58that's the
- 34:59that's basically the file that he does
- 35:01it on. So, I'll show you I'll show you
- 35:03what this looks like here just so that
- 35:04you can
- 35:06um
- 35:06>> I trust Jay on this dimension.
- 35:08>> Yes, me too.
- 35:09>> in this life.
- 35:09>> We better we better we'd better trust
- 35:11Jay on this. So, you know, this is an
- 35:13example of so he has this offer date
- 35:15field and he has a bunch of information
- 35:17and I mean it's kind of amazing, right?
- 35:18He's done all the work for this.
- 35:19>> Yeah.
- 35:20>> Um and here's the crisp perm no and so
- 35:21we know that um is in there.
- 35:25So,
- 35:27that's very helpful.
- 35:28So, now
- 35:30um
- 35:32we know that
- 35:34basically so, he this is a renaming and
- 35:37we know it's using the right thing,
- 35:38which is offer date raw and it's
- 35:40constructing it correctly. Great. So,
- 35:41we're very happy with that. We're very
- 35:43happy that Jay has done all this work.
- 35:44Of course, this is the joke about this
- 35:46is
- 35:47I've done the easy version of the
- 35:48research because somebody already did
- 35:49all the hard part on this.
- 35:51Um
- 35:52so, now if we go back,
- 35:54um
- 35:55what I want to next
- 35:57sort of emphasize. So, that there are a
- 35:58lot of things you could think about and
- 35:59if you know, you if you're interested,
- 36:01I'll I'll share this for anyone watching
- 36:02this who's interested in looking, you
- 36:04know, there's other things like
- 36:06does it match, for example? This would
- 36:07be a great question that we'll ask here.
- 36:09So, on the next step I want us to
- 36:11remember this.
- 36:12Did it match what Jay said it was going
- 36:14to do or did it, you know, did it get it
- 36:16wrong and if so, why?
- 36:19And a bunch of other things to think
- 36:20about.
- 36:21Um the next thing I want to talk about
- 36:23is how to give feedback. And so, there's
- 36:24going to be two ways to think about
- 36:25this.
- 36:26One is going to be human feedback and
- 36:27the other is
- 36:29I'm sorry.
- 36:30>> Feedback to Claude.
- 36:31>> To Claude and into the project. Yes, to
- 36:34the output that was there. To Claude
- 36:36{slash} your co-author {slash} anyone
- 36:38else. So, say you found an issue or
- 36:39something that you want to do. So, what
- 36:41do you do? And there's basically three
- 36:44audiences for the feedback. So,
- 36:47one audience is Claude, like you just
- 36:49said. The other is let's pretend you're
- 36:51my co-author. You know, you're I want to
- 36:53kind of keep track of what we're doing.
- 36:55You you want to know what's going on.
- 36:57And three is, you know,
- 37:00uh me in the future, right? So,
- 37:03so really
- 37:05we're going to use GitHub here and get
- 37:07to do this. And so,
- 37:09um we just did this already, but a kind
- 37:11of a key thing that you can do is we
- 37:14just
- 37:15basically asked it to do something
- 37:19and it did a new um command. So, let's
- 37:21let's ask the following. So, let's let's
- 37:23look at this code for a second. So, I'm
- 37:25going to bring up an issue. I'm going to
- 37:27say, "I want you to um
- 37:31I want you to review
- 37:34the I'm going to create an what's called
- 37:35an issue.
- 37:36>> Mhm.
- 37:37>> So, what we said just a second ago,
- 37:38Marcus, was we said,
- 37:41"Uh please compare
- 37:44um issue. So, um
- 37:47validate uh return measures against
- 37:51Ritter initial returns.
- 37:54Um
- 37:55and so, what we'll say is, "J. Ritter
- 37:58already has um return measures
- 38:01constructed for the IPO, e.g. on the um
- 38:06first day or
- 38:08um following.
- 38:10Please
- 38:11validate the um the constructed
- 38:15measures
- 38:17that uh
- 38:18we've
- 38:20made against this
- 38:23and report on
- 38:25how well we do. We may not be perfect
- 38:31if J's data
- 38:34for returns is different than ours due
- 38:39to Chris's issues.
- 38:42So, this is like a message, right? It's
- 38:44almost like an email or Slack message
- 38:45you might give to an RA.
- 38:48So, I'm going to create this. Nothing
- 38:49happens when I create this, but you can
- 38:51see this is issue number one, right?
- 38:52I've created an issue.
- 38:54>> So, you do essentially everything in
- 38:55GitHub? And then
- 38:57>> This is one You don't have to do this in
- 38:58GitHub, but GitHub is extremely powerful
- 39:00for this. I think this is a a very
- 39:01useful way to keep track of issues.
- 39:04Um
- 39:05>> So, but how do you call on Claude now to
- 39:06do it?
- 39:07>> Great. That's I'm so glad you asked. So,
- 39:10this is GitHub issue number one, right?
- 39:13So, now
- 39:15I'm going to
- 39:16go to the command line here.
- 39:19I'm going to s-
- 39:20We're going to open up that thing in the
- 39:21command
- 39:22>> Or code works with Or does it work on
- 39:24code works?
- 39:24>> It would work on code work, although
- 39:26like as I've mentioned to you, I'm not
- 39:27like less familiar with it, but yes, it
- 39:29should be It's a It's going to use the
- 39:30command It's going to use, you know,
- 39:32commands to do this. And so, we're going
- 39:34to say the following. So, here's what
- 39:36we're going to do.
- 39:37We're going to say
- 39:38um
- 39:40So, you can you see You can see this Is
- 39:42this big enough for you, Marcus? So,
- 39:43we're here. We can do this with a We're
- 39:45going to do this with a new um a new
- 39:47session. So, I'm just in that folder as
- 39:49if I opened it up, and I'm going to say
- 39:52um please uh
- 39:54review issue number one on GitHub
- 39:59>> Mhm.
- 39:59>> and um provide an answer an answer.
- 40:06Co- code up an answer.
- 40:08An answer, and then commit and push to
- 40:12GitHub.
- 40:14So, what is What are the things here?
- 40:16You You should use the GitHub. So,
- 40:21So, this is a I think Claude would know
- 40:23to do this, but I just want to tell this
- 40:25is that I'm telling it that there's a
- 40:26program installed called GH, which is
- 40:28for GitHub, that it can run from the
- 40:30command line to pull the information
- 40:32from GitHub.
- 40:33Um and you would have to set this up
- 40:34beforehand, of course. You should use
- 40:36the GH um command line tool to do this.
- 40:41So,
- 40:43here's what it's going to Now, we're
- 40:43going to watch what it's saying. I'll
- 40:44start by reviewing the GitHub issue and
- 40:46then explore the code base on how to
- 40:47address it. Cuz remember,
- 40:49I just started a new session, so it has
- 40:50no idea what's going on.
- 40:52>> Yes.
- 40:52>> So, it says, "Okay, here is validate the
- 40:54return measures against this." And so,
- 40:56it says, "Well, I don't know what that
- 40:57is." And so, let me explore the code
- 40:59base. It's doing that. Let me look at
- 41:00the reader data files in the key source.
- 41:03And it's going to say, "Okay."
- 41:06And
- 41:07um
- 41:09you know, it's looking at the data. So,
- 41:10when it
- 41:11It's going to work for a second.
- 41:13While that's working,
- 41:15I want to kind of I'm going to come back
- 41:16to this in just a second.
- 41:18It's going to parse this. So, this is
- 41:19going to This is going to be working,
- 41:20and we know that it will push, right?
- 41:21So, I don't have to sit there waiting
- 41:23and watching it anymore, Marcus. One of
- 41:24the nice things here, right, is you
- 41:26could look at this on your phone, right?
- 41:28>> Yes.
- 41:29>> So, that's The The step that we are not
- 41:30going to get to in this session, or
- 41:32maybe in this series even, but I want
- 41:34people to visualize this is you could
- 41:35imagine, right, that you have an
- 41:37autonomous agent that does this on your
- 41:39computer.
- 41:40>> Yes.
- 41:40>> It just reads when you send these
- 41:42messages, and it does the work for you,
- 41:43and it sends it back, right? It's like
- 41:44emailing your RA.
- 41:47So,
- 41:48let me
- 41:50um while that's running,
- 41:52let me go back to here and
- 41:55kind of final uh da da da
- 42:02So,
- 42:05while that's running, let me kind of
- 42:06describe like
- 42:08the um
- 42:11the kind of key thing here, right, is
- 42:12that by doing these reviewing it's it's
- 42:14it's very doable to have it do stuff,
- 42:16but you really want to keep track
- 42:18of what's going on and be precise in
- 42:21what you want to say. So, in that
- 42:22message I gave, I was not very precise.
- 42:25So,
- 42:26you know, that's not because that was
- 42:27mainly because I didn't have a real
- 42:28issue, but it was a pretty clear it it
- 42:32was pretty clear on what I wanted to do.
- 42:33The clearer that I can be, the better it
- 42:35will do.
- 42:37Um and then you're going to kind of and
- 42:38then I'll review what's going on and you
- 42:40can kind of iterate accordingly to go.
- 42:43You don't want This is kind of this
- 42:44point is that you don't want to say like
- 42:45this seems off
- 42:47cuz you want to be specific about what
- 42:48is the issue that's going on.
- 42:52The
- 42:53GitHub issues create a durable record.
- 42:56So, this is part of the thing. So, we're
- 42:57not going to get too much into pull
- 42:59requests, but
- 43:00>> What is PR? What is PR?
- 43:02>> PR PR stands for pull requests. So, um
- 43:06one way to think about this is so what a
- 43:07pull request we didn't get into this and
- 43:09I wrote this these slides and then was
- 43:11like this is going to be too much is
- 43:12that
- 43:13one thing that you could do is imagine
- 43:14Marcus that you submitted a paper
- 43:16already. You know, you wrote this in the
- 43:18pre-AI era,
- 43:19>> Yeah.
- 43:19>> but now you want to use AI.
- 43:22You might say, all right, well, I'm
- 43:23going to create I want to kind of start
- 43:25doing the revisions. I'm going to create
- 43:26a branch of this code
- 43:29>> Mhm.
- 43:29>> which isn't going to mess with the main
- 43:31files right now. I'm not going to like
- 43:32iterate over them. I don't want to have
- 43:34to do I'm going to branch off
- 43:36and I'm going to work on it for a while.
- 43:40>> [clears throat]
- 43:40>> And
- 43:41what you do Well, pull request is when
- 43:43you ask to pull a branch back into
- 43:46another branch. And so, it's a way of
- 43:48kind of saying like, "Hey, I'm done with
- 43:49this code." For example, or you and I
- 43:51might work on two different things.
- 43:53Point is is that these GitHub issues and
- 43:55these comments are are just a way of
- 43:57keeping track of things much better than
- 43:58an email.
- 43:59>> Mhm.
- 44:00>> And you can see kind of you also can see
- 44:02who's responsible for different things.
- 44:04>> A pull request often is from a code from
- 44:06somebody else you pull and put it in
- 44:08your
- 44:08>> Yes, it was wanted to be who want the
- 44:10pull request is they are requesting for
- 44:12their code to be pulled into yours.
- 44:14>> Yes, okay.
- 44:15>> Um
- 44:17And so you know, what's nice here,
- 44:19right, is that you're basically creating
- 44:20a historical record. And so as you
- 44:22noticed in the way that I asked the
- 44:25agent to do this, the agent is able to
- 44:27read that historical record. Remember,
- 44:28these agents just they love reading
- 44:30text. If there's anything they like,
- 44:31it's text. And so what we're doing is
- 44:33we're creating a database of text about
- 44:36the decisions and comments of what we've
- 44:38we've done here, and it's very good at
- 44:39that.
- 44:40>> Yes.
- 44:40>> So, um it's very helpful for the
- 44:43purposes of replication and other
- 44:44things, and it kind of keeps a
- 44:46background. If you've ever worked on a
- 44:47project where 6 months later, you you
- 44:49want to know why you made a decision,
- 44:50this is one of the things. That was true
- 44:52pre-AI, but AI is there is so much
- 44:55better at this stuff than the vast
- 44:58majority of us that we are that
- 45:00basically what I'm encouraging you to do
- 45:03is to kind of create an abstraction
- 45:05layer
- 45:06above
- 45:08coding and research here where the AI is
- 45:11doing a lot of this stuff, and then
- 45:12you're able to use these tools in a way
- 45:15that software engineers have kind of
- 45:16used historically. So
- 45:18>> Okay, can can you summarize the feedback
- 45:20component part B again?
- 45:23>> Yeah, so to kind of summarize the back
- 45:25>> Yes, yes.
- 45:25>> Yeah, so let's look at this
- 45:27>> the feedback.
- 45:28>> Well, so let's look at an example here.
- 45:29So, uh let's see if this is still
- 45:31working.
- 45:32Um
- 45:33So, what it didn't do it hasn't not
- 45:35finished yet in this example here. It's
- 45:37still working.
- 45:38It's almost done. But, like an example
- 45:40of this would be so let's do it the
- 45:41following example.
- 45:43So what I might do is let's take a look
- 45:46at this code, and when we do this um
- 45:50merge here.
- 45:52So
- 45:53what I might do for example is I might
- 45:56say
- 45:57um you know, here's it's here is how
- 45:59it's merging.
- 46:00>> Mhm.
- 46:01>> And what I could do
- 46:04is
- 46:07I
- 46:10can do do do do.
- 46:12Let me see if I can
- 46:14I can use this code here
- 46:18to and I can I can ask basically I can
- 46:20say, all right, on this line
- 46:23for example, where this merge is
- 46:24happening
- 46:26I want to
- 46:29um
- 46:30create an issue here
- 46:32where I'm referencing a particular piece
- 46:34of code and I'm going to say like
- 46:37you know, merge count issue.
- 46:41Um
- 46:42I noticed that when you're merging you
- 46:46are losing X, Y, or Z.
- 46:49>> Mhm.
- 46:49>> Um
- 46:50Can are you sure you're merging um
- 46:54please verify that you're using um that
- 46:57you're using the right um variables here
- 47:00to merge.
- 47:01For example, obviously you could do this
- 47:02yourself as well in the code like I
- 47:05could. You don't have the code right
- 47:06now, but you could do this very easily.
- 47:09Um
- 47:10And this is a kind of an issue you could
- 47:12construct and it will reference this
- 47:16line of code, so it will know where to
- 47:18look.
- 47:19>> Mhm.
- 47:19>> And that's sort of what I mean by the
- 47:20feedback loop in the sense that you've
- 47:22then done this code and now it will kind
- 47:24of have kept track of exactly the errors
- 47:26that you're you're trying to pay
- 47:27attention to. This is specific to a
- 47:29merge, but of course what we could do
- 47:31instead is that we could say um well,
- 47:34let's look at the output and we'd say,
- 47:36let's look at them the matching, right?
- 47:39So, this is the matching here.
- 47:42And
- 47:44we might say
- 47:45uh you know, here are the firms doing
- 47:47this. Here's the number that match.
- 47:50Um
- 47:52it looks
- 47:53like it matches all of them.
- 47:55>> Mhm.
- 47:55>> Um so, we're actually quite happy about
- 47:57that.
- 47:59So, here are the events. So, here So, we
- 48:01lost
- 48:02we lost four, and then we have a we have
- 48:05this many that were This is dropping
- 48:07ADRs.
- 48:08>> I see.
- 48:09>> Right? So,
- 48:11So, one thing we could do is we could
- 48:12say, "Well, why did four of them Why
- 48:14were four of them not there?"
- 48:16So, that's a great So, this is a good
- 48:17one. So, like we could say, "Here,
- 48:20um, reference is a new issue,
- 48:23um,
- 48:27Oh.
- 48:28Hold on. Didn't do that right.
- 48:30Tried to
- 48:32make Oh.
- 48:34Sorry. I will cancel this one. Just Just
- 48:36write this.
- 48:38I'll say,
- 48:39"Reference a new issue,
- 48:41um,
- 48:43missing, um, firm IPOs.
- 48:49Um, please
- 48:52please
- 48:53diagnose
- 48:55why we are losing four IPOs in the Chris
- 49:00Da- Chris Davis sample."
- 49:02Right? So, this is the thing that we
- 49:03could do, and then we could reference
- 49:05this issue in the same way that we did
- 49:07here. You can see that it actually
- 49:08creates this in here.
- 49:10>> Yes.
- 49:10>> In this one.
- 49:12So, this is what I mean by like this is
- 49:13a way to give feedback, and then this
- 49:15will kind of be kept in the record, and
- 49:16you'll know why certain things are
- 49:17there. It keeps the record in here for
- 49:19you when you need to write it up or do
- 49:20something else, or when you have your AI
- 49:22help you write it up, it will have those
- 49:24all the record in there as well.
- 49:26>> Yes. Nice.
- 49:26>> Um,
- 49:28So, now
- 49:30I can show you
- 49:32that you see now we only have one open
- 49:34issue, and that's because this one was
- 49:35closed. It finished this one.
- 49:37>> Okay.
- 49:38>> So,
- 49:39I closed this as a minute ago, and it
- 49:42says, "Oh,
- 49:44well, I said he has returns here.
- 49:46So, our final sample is bracketed by a
- 49:49restrictive net count and gross count.
- 49:52Our year-over-year track almost
- 49:54one-for-one the right events are in the
- 49:55sample. I think, you know, we might
- 49:57disagree on if that's the right number.
- 49:59First day initial structure the
- 50:01unrecoverable from the Chris monthly
- 50:02data in the IPO month
- 50:05um they have a closing price, but only
- 50:06this doesn't compute partial.
- 50:09So, interestingly, I didn't realize
- 50:11this. It's doing monthly
- 50:13whereas I think we want to do daily.
- 50:15We'd like to see daily. So, this is
- 50:18great. So, I feel like this is This is
- 50:20not something I
- 50:22designed, but I'm now like, "Oh, this is
- 50:24really annoying."
- 50:26We should fix this, right? We should
- 50:27create a new issue.
- 50:29Daniel, or so I'm not going to
- 50:33Yeah, so we can reopen the issue, for
- 50:35example. I think the biggest thing here
- 50:37now is what we're going to say is we're
- 50:38actually going to create a new issue.
- 50:39And what we can do is we can reference
- 50:41this issue. So, we could say "Now, let's
- 50:44create a new issue which is saying uh
- 50:48reconstruct
- 50:50um
- 50:51analysis using daily data."
- 50:56"We discovered in
- 50:59um
- 51:00issue one." So, you can actually write
- 51:02it like this. You can write You can just
- 51:03do it dot amper- uh whatever pound sign
- 51:06one and that will reference issue one
- 51:08that the analysis is using the monthly
- 51:12return data in
- 51:14Chris, but we should use daily data and
- 51:19then aggregate up
- 51:23so that we can match Ritter and see the
- 51:28higher
- 51:29frequency analysis.
- 51:32So, you know, we can do this. So, now we
- 51:34have two issues or two issues that are
- 51:36outstanding.
- 51:38This is turning into a research project.
- 51:39So, I don't want to keep everyone here
- 51:40watching us do all of our analysis, but
- 51:43you know, the easiest thing here we go
- 51:44back. So, I'll do this in the
- 51:46background, but you could say
- 51:48um
- 51:50uh
- 51:51please, I'll just in the background I'll
- 51:53say, "Please um
- 51:56tackle
- 51:57issue number three in
- 52:00GitHub."
- 52:01And we'll see how it's doing that in the
- 52:03background. So, this is you can see this
- 52:05is starts to be very powerful, right? We
- 52:07>> No.
- 52:07>> You don't have to be in the command line
- 52:08beyond, you know, you maybe you only
- 52:10need one co-author is doing stuff in the
- 52:11command line. Um you can play with the
- 52:14code in your own way, right? Like you
- 52:16don't have to be using Claude per se in
- 52:18the much in there. Co-work, I think,
- 52:20should work with all of these things in
- 52:21the same way. I haven't done this, so
- 52:23like these are all very powerful tools
- 52:25for doing this.
- 52:27So, let me kind of in the last couple
- 52:29the last step here talk about um
- 52:33how you can kind of link this to just
- 52:35production of things. This is I just
- 52:37think is a nice part of people don't
- 52:39really realize that one nice part about
- 52:41having stuff integrated into GitHub is
- 52:43that GitHub integrates nicely quite
- 52:45nicely into Overleaf.
- 52:47And so
- 52:48>> I have to go through GitHub. I cannot
- 52:50connect Overleaf and uh
- 52:53>> You can.
- 52:54Oh, no, that's that's right. No, no, no,
- 52:56you can't Well, you could So, yes, so
- 52:57you can actually. There's two ways, and
- 52:59I'll show you I'll show you how.
- 53:00>> Dropbox because Overleaf can also
- 53:02connect with Dropbox. No.
- 53:03>> Yes, that's right. So, that's how I
- 53:05would do it. So,
- 53:07two things that you can do.
- 53:09>> [clears throat]
- 53:10>> The kind of the the thing I want to
- 53:11emphasize Let me kind of give the
- 53:12high-level issue that I want to
- 53:13emphasize that's a concern is
- 53:16um what's important in the numbers,
- 53:18right? And this is true independent of
- 53:19AI, is just like you need to make sure
- 53:22any numbers that go into your draft come
- 53:24from the code, right? And so, it's nice
- 53:25to have numbers come directly from code
- 53:28rather than potentially hallucinated by
- 53:29an AI or something else.
- 53:31>> Yes.
- 53:32>> And so,
- 53:33it's what's very good, and this is true
- 53:35about AI generally, is to have the
- 53:37output of numbers that are in writing be
- 53:40verifiable numbers, right? They're
- 53:41things that are specific to the data.
- 53:44Um and so
- 53:46all one very nice thing we've I've done
- 53:48this only in a few
- 53:49proc- um papers, but I think this is
- 53:51really kind of the ideal workflow is to
- 53:54think about well
- 53:56the numbers that get output, right? Come
- 53:58from code. Like you have a figure,
- 54:00right? Or even tables or text.
- 54:02>> Yes.
- 54:02>> Well, the code get reports does it like
- 54:04this. Well, your
- 54:05tech
- 54:06file, right? Inputs them using like an
- 54:09inputs statement or something else or
- 54:11include graphic. And then you compile
- 54:12it. And so ideally, of course, is that
- 54:15these steps are kind of perfectly
- 54:17connected.
- 54:18And what's nice, right? Is that you can
- 54:20integrate these very easily. And so
- 54:23the Overleaf now there's a couple ways
- 54:26where you could do this. Like obviously,
- 54:28you can copy and paste things. That's I
- 54:29think many of us often do that. There is
- 54:32a way to do this though um very simply
- 54:34in it. And so I want to just show you an
- 54:37example of what that would look like. Um
- 54:41so if we go here and we say like let's
- 54:43go to Overleaf and you know, here what
- 54:46I've done in Overleaf is I have created
- 54:48a project
- 54:50where
- 54:53we have effectively
- 54:55um
- 54:56this is the repository. It's the old
- 54:57version of the repository. And so I've
- 54:59linked it
- 55:01using GitHub.
- 55:03So what I can say now is there's this
- 55:05integration thing and I can say, "Well,
- 55:07let's sync it."
- 55:09>> Yes.
- 55:09>> And so
- 55:11there's a bunch of commits and so I need
- 55:13I what I want to do is I want to pull
- 55:14the changes from there into Overleaf.
- 55:16And so I'm going to pull them in.
- 55:19And so it's syncing. It's pulling
- 55:21basically new code. It has all the stuff
- 55:23from there. And so it's now linked. And
- 55:25so it now has more of the stuff in here.
- 55:27It has all the files and everything
- 55:28else.
- 55:29>> Yes.
- 55:29>> And so what you can notice, right? So
- 55:31this is
- 55:32um it has all these are all the things
- 55:35that we've been doing. Here's the first
- 55:36day return.
- 55:37Right here is So, our numbers clearly
- 55:39don't
- 55:40um
- 55:42This is from the the previous version of
- 55:43it. This is issue one.
- 55:45So, what we could do next, of course,
- 55:47right, is we could start just writing
- 55:49our draft in here, right? And we could
- 55:51reference the things directly. So, we
- 55:52could say like, you know,
- 55:56uh oh, I put it in the wrong folder.
- 55:57Let's delete that.
- 56:00So, in here, right, we'd say
- 56:02um
- 56:05we'd say like, "Begin document."
- 56:09Obviously, you know, we're
- 56:11we'd probably just
- 56:12have AI do this boilerplate for us, but
- 56:15we're going to do it. This is from
- 56:17scratch. Hello world.
- 56:20See if it works. Yes, I can still do
- 56:22something.
- 56:23So, now we might say something like,
- 56:25"Well, let's do include graphics." Which
- 56:28I think I will need to
- 56:30um and then we could put this figure in
- 56:32here.
- 56:33And we might need to do use
- 56:34>> I cannot upload directly from this
- 56:36Overleaf thing. I have to
- 56:38>> No, that's right. That's You can't do
- 56:39that, but you can do something almost as
- 56:41good,
- 56:42which is now we've saved this file here,
- 56:45right? So, we I've made this thing in
- 56:47here, right? Well,
- 56:49what I can do is I can say "Let me push
- 56:52these changes to GitHub." And I'd say
- 56:53like, "Create
- 56:54>> Push that paper.
- 56:56Yes.
- 56:57>> And it'd say
- 56:58it's going to put the changes into
- 57:00GitHub.
- 57:03Um and
- 57:06if we now um
- 57:09go back to the um let me go to the the
- 57:13repository. Now, there's lots of
- 57:15commits.
- 57:16We have 11 commits, right? So, it's
- 57:17done.
- 57:18Mhm. You see, we're starting to build up
- 57:20a real history here. So, we have this.
- 57:22This is this thing it tried to do. Now,
- 57:23it wrote up these results. And so, now
- 57:25we're going to go to Overleaf.
- 57:28And
- 57:29um
- 57:31>> So, I can't see or here it is. Okay.
- 57:33>> Here it is. So, you notice it still has
- 57:35this version of the draft that's not the
- 57:37same. So, why is that the case? Well, we
- 57:39haven't pulled it from here.
- 57:41So, we have to
- 57:42pull GitHub changes into Overleaf. We're
- 57:44going to do that.
- 57:49And you can see now it's turned into
- 57:51this whole thing where it's made this
- 57:52whole little
- 57:53>> Paper is done.
- 57:55>> We're done. We're done. Now, that's a
- 57:57joke, of course, but the nice thing
- 57:59about this is that you didn't have to do
- 58:01any copying and pasting of like the
- 58:02results and the tables and the figures
- 58:04from one folder to the other.
- 58:06And
- 58:07>> most useful thing is if you have tables,
- 58:08you say, "Let me transfer the figures
- 58:10and tables over to the
- 58:11>> Exactly. And it will also keep track of
- 58:13all the changes in your draft in useful
- 58:15ways, too, if you sort of keep these,
- 58:17you know, if you write it and then you
- 58:18want to push it.
- 58:19>> Okay.
- 58:19>> Um
- 58:20So, it's really kind of an interesting
- 58:23thing in that like this part, I think,
- 58:25is you know, this is the least necessary
- 58:27in some ways. Of course, you could just,
- 58:29you know, move this over and kind of map
- 58:31it. Like, you could just do it manually.
- 58:32Overleaf, you could kind of keep
- 58:34separate.
- 58:34>> Mhm.
- 58:35>> But what's distinctive here is like this
- 58:37is an easy way for Claude to kind of
- 58:39write into the draft.
- 58:41>> I see.
- 58:41>> Alternatively, and you mentioned this
- 58:43before, um Marcus, is we could have
- 58:46instead just let it Dropbox integrates
- 58:49with Overleaf, as you said, and you
- 58:50could have just pointed it to the right
- 58:52folder and said, "Please update the
- 58:53results in that draft accordingly."
- 58:56That's a natural way to do it, too. The
- 58:58nice thing about this is remember all
- 58:59those changes like keeping track of the
- 59:00changes? This keeps track of all the
- 59:03changes in Git in the same way. So, now,
- 59:06remember that in that GitHub path is
- 59:09that we now see the changes in the
- 59:11draft. Like, if we change something
- 59:13here, which we did, it shows up here. We
- 59:15know when it changes stuff, and we know
- 59:17who's done it. Um or what they are
- 59:20>> uh GitHub has some of course with this
- 59:22commit some version control. I guess
- 59:25Dropbox has some version control as
- 59:26well.
- 59:27>> Yes, although you pay for it and it's
- 59:29not nearly as good, but yes, it's
- 59:32you pay for it in the sense that it
- 59:34won't keep it forever. Like it's I think
- 59:36it does 90 days backwards. And that's so
- 59:39like
- 59:40it's not nearly as good. I mean get the
- 59:42GitHub ones are forever.
- 59:44>> I see.
- 59:45>> So, that that can be quite helpful.
- 59:47So, let me
- 59:49let me just wrap up then. And so, what I
- 59:52kind of want you to kind of take away
- 59:54from this I think was this idea of like
- 59:56a check a way to think about
- 59:58using
- 59:59Git and GitHub in an integrated fashion
- 1:00:02to think about keeping track of things
- 1:00:03and keeping a path of what we've done.
- 1:00:06Such that
- 1:00:08like two two things. One, it's really
- 1:00:09useful for the agent. The agent can see
- 1:00:11what's changed and like what might have
- 1:00:13broken, especially when you start a new
- 1:00:14session, it can see all the things. It
- 1:00:16gives much more texture to what's going
- 1:00:18on. Two, it keeps track for you and you
- 1:00:21can do it on the website and you and
- 1:00:22your co-authors can look at it and so
- 1:00:24forth.
- 1:00:25Three, it integrates with writing in a
- 1:00:27way that makes sure that you do things
- 1:00:28correctly. And four, GitHub as a website
- 1:00:32is actually extremely powerful for
- 1:00:34keeping track of issues and notes and
- 1:00:36thoughts for yourself.
- 1:00:37Like issues are a really remarkable way
- 1:00:39of, you know, say you give a seminar and
- 1:00:41you get 10 questions.
- 1:00:43You know, really nice thing you can do
- 1:00:44is you can put all the questions in as
- 1:00:46an issue and then you could say like AI,
- 1:00:50go and look at these and think about
- 1:00:51what are the best possible answers and
- 1:00:53where we can integrate or where we need
- 1:00:54still need to make
- 1:00:56decisions going forward. So, there's a
- 1:00:58lot of really great structure in there
- 1:01:00in ways that can be useful.
- 1:01:02So,
- 1:01:03kind of think of this is like a really
- 1:01:05important way of integrating this into
- 1:01:07your workflow. I think it's really good
- 1:01:09best practices and the best part about
- 1:01:11it is that we talked about before,
- 1:01:12Marcus, is that like
- 1:01:14you know, AI has made GitHub and Git we
- 1:01:17kind of all know about it. I would say
- 1:01:19the majority of researchers who use
- 1:01:22these previously is pretty small. People
- 1:01:24don't really use best practices. I kind
- 1:01:26of want to tell you that like AI is so
- 1:01:28good at it that as long as you kind of
- 1:01:30remember that you want you tell it
- 1:01:31beforehand. You say, "I want to kind of
- 1:01:32keep I want to make sure I keep track of
- 1:01:34stuff in this project using GitHub and
- 1:01:36Git. It will just remember to do it. It
- 1:01:39It's like it wants to. It has the you
- 1:01:41know, it has the demon It has the the
- 1:01:43spirit of a good software engineering
- 1:01:44living deep inside of it. It's going to
- 1:01:46do much better than you do. Um and so
- 1:01:48that can be quite valuable.
- 1:01:50So, yeah. So, that's pretty much it for
- 1:01:52now and I think we've covered a lot of
- 1:01:54the stuff we said we were going to. This
- 1:01:55was really great, Marcus. Thanks a lot
- 1:01:57for the opportunity.
- 1:01:58>> Well, thanks a lot, Paul. Let's just Can
- 1:02:00you give me one more sentence where we
- 1:02:01started with installation, terminal
- 1:02:03setup, with data analysis, some web
- 1:02:05scraping, then some large data set, I
- 1:02:07remember SEC.
- 1:02:08Then I wrote a write a paper and a
- 1:02:10report.
- 1:02:12>> Yeah.
- 1:02:12>> And you got some
- 1:02:13you
- 1:02:14you know, second revision in a sense.
- 1:02:16And then we did some making skills and
- 1:02:17last time we did permissions and open
- 1:02:19claw and things.
- 1:02:20>> Yeah.
- 1:02:21>> Integration, verification,
- 1:02:23collaboration.
- 1:02:24Integrating essentially
- 1:02:27GitHub as a Dropbox as a background and
- 1:02:29connecting essentially cloud and uh
- 1:02:33and also and Overleaf and other writing
- 1:02:35programs.
- 1:02:37That's fantastic. Any last message you
- 1:02:39want to give to the viewers?
- 1:02:41And I
- 1:02:42thank you.
- 1:02:43>> No, I think I mean I I think it would be
- 1:02:45great to kind of hear from people about
- 1:02:47things that they are finding biggest
- 1:02:49pain points, but I think the big thing
- 1:02:50is you know, this is a really useful
- 1:02:52tool and I think it's really sped up a
- 1:02:53lot of things, but
- 1:02:55I think it's mainly exciting in that
- 1:02:56there's lots of new things in which we
- 1:02:58can be I don't I'm very positive on
- 1:03:00this. I think this this makes research
- 1:03:01more exciting in a lot of ways and I
- 1:03:03think we have a lot of value to add. And
- 1:03:04so I hope people found this useful and
- 1:03:06thanks a lot for watching.
- 1:03:08>> How would How do you see the whole thing
- 1:03:10in 1 year and in 5 years?
- 1:03:12>> That's a good question. I think that
- 1:03:16um
- 1:03:195 years is hard. I think it could write
- 1:03:21it's crazy to think about even just 1
- 1:03:22year ago was so different. In 1 year
- 1:03:25from now, I am guessing that there's
- 1:03:27going to be a lot if you found kind of I
- 1:03:30think some folks maybe watching this
- 1:03:31maybe found the command line and other
- 1:03:33things and I think this is something you
- 1:03:34said Marcus is that
- 1:03:35I have to imagine that it will become
- 1:03:37easier and easier to integrate this sort
- 1:03:40of these tools into workflows that don't
- 1:03:42require you to, you know, feel so much
- 1:03:44like you're in the matrix like either
- 1:03:45using co-work and kind of better
- 1:03:47practices there.
- 1:03:49Um I think it will become more obvious
- 1:03:52in a year or even in 5 years of what are
- 1:03:54the things that humans are supposed to
- 1:03:56do in these workflows cuz I think right
- 1:03:58now we're in this such big period of
- 1:03:59transition that it's kind of less
- 1:04:02obvious where the choke points are as
- 1:04:04would be the word that you might use of
- 1:04:06where is human, you know, where are the
- 1:04:08human problems versus the computer
- 1:04:10problems? I'm not of the view that like
- 1:04:13this is all going to be automated away.
- 1:04:14I think it's all comparative costs. Now
- 1:04:16there are things that preferences are a
- 1:04:18great example or other things and so I
- 1:04:20think that will be the kind of more
- 1:04:22obvious I think in a year or in 5 years,
- 1:04:24you know, Marcus you and I will be like
- 1:04:26you know, I got my AI to do this and
- 1:04:28then I had to do all of X, Y, and Z the
- 1:04:29same way that you probably 25 years ago,
- 1:04:3230 years ago, you know, running a
- 1:04:34regression with fixed effects was a huge
- 1:04:35constraint and there was all these
- 1:04:37problems and now we can run
- 1:04:39a thousand of these things and that we
- 1:04:40don't even think of that as a constraint
- 1:04:42anymore.
- 1:04:44>> Very good, Paul. That was fantastic and
- 1:04:47thanks a lot and uh
- 1:04:49you know, we keep on delivering new
- 1:04:51things.
- 1:04:53We have already something in the back of
- 1:04:54our head. But for now, we want you to
- 1:04:57watch it and stay on the frontier and
- 1:04:59push the research and the frontier in
- 1:05:02economic research.
- 1:05:03Thank you.
- 1:05:04>> much. Bye-bye.
About this transcript
This page contains the full transcript of Integration & Collaboration: Claude Code for Econ. w/ P. Goldsmith-Pinkham | Markus Academy | 162-8 by Markus' Academy, generated from the public captions YouTube serves with the video. The transcript has 13,144 words across 2,082 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.