YouTube2Text

Integration & Collaboration: Claude Code for Econ. w/ P. Goldsmith-Pinkham | Markus Academy | 162-8 — Transcript

by Markus' Academy · 13,144 words · 2,082 segments · language en · Watch on YouTube

Full transcript

  1. 0:08Welcome back everybody to another
  2. 0:09webinar with Princeton University
  3. 0:12for everybody worldwide and we're here
  4. 0:15with Paul Goldsmith think I'm again. He
  5. 0:17will talk about Claude AI for applied
  6. 0:19economists. That's now part of the mini
  7. 0:21video series number eight. Hi Paul, good
  8. 0:24to have you again.
  9. 0:25>> Hi Marcus, great to have you too. We're
  10. 0:27finally in the summer. You can see I'm
  11. 0:29I'm wearing slightly less business
  12. 0:31attire now that we're officially in
  13. 0:32summer vacation.
  14. 0:34Um
  15. 0:35great. So let me actually let me get
  16. 0:36started. I'm going to this is sort of
  17. 0:38our
  18. 0:39you know, this is a capstone of what
  19. 0:40we've been talking about and I kind of
  20. 0:41want to start by
  21. 0:44giving an idea of kind of the ideas
  22. 0:46behind
  23. 0:47what I'm going to show you today and
  24. 0:48then we're going to we're going to work
  25. 0:49through some things. And so I'm thinking
  26. 0:51about we're thinking about AI research.
  27. 0:53You know, I've shown you a lot of
  28. 0:54different tools and how AI can do a lot
  29. 0:55of stuff, a lot of programming, a lot of
  30. 0:57different
  31. 0:58tools and skills. And as you get better
  32. 1:00with this
  33. 1:01um you know, thinking about this is like
  34. 1:03integrating a lot of useful workflows
  35. 1:05and sort of best practices. So
  36. 1:09kind of the the key idea that is sits
  37. 1:11behind a lot of the discussion about AI
  38. 1:13and I think it's true here too in the
  39. 1:15way to think about what AI has been
  40. 1:17doing is that it's really collapsing
  41. 1:19kind of the cost of doing a lot of types
  42. 1:21of work, especially coding and empirical
  43. 1:22work, but probably also true for some
  44. 1:25technical stuff as well.
  45. 1:27And so
  46. 1:28you know, kind of the key thing that I
  47. 1:31want to emphasize here is
  48. 1:34this idea of
  49. 1:37we've gotten much faster at some things
  50. 1:40but less at others. And so how do we
  51. 1:41kind of build best practices to deal
  52. 1:43with the fact that the cost has gone
  53. 1:45down in some dimensions but not in
  54. 1:46others. I mean, we're all economists. We
  55. 1:48sort of the idea of costly verification
  56. 1:50is kind of you know, built in for many,
  57. 1:52many years in the stuff that we think
  58. 1:53about. And so
  59. 1:55kind of the way to think about this and
  60. 1:57I sort of this two by two I kind of I I
  61. 1:59think a lot of people have said this. I
  62. 2:00stole this from a a nice blog post that
  63. 2:02I read a couple days ago, this idea of
  64. 2:04may think of imagine there's two kind of
  65. 2:06costs. You could think about this. The
  66. 2:07cost of making things, that's that's the
  67. 2:09rows. Is it cheap to make or expensive
  68. 2:11to make? And how expensive is it to
  69. 2:13verify?
  70. 2:14Um right, things that are cheap to
  71. 2:15verify and cheap to make, I don't think
  72. 2:17it's an issue. Things that are cheap to
  73. 2:19verify and expensive to make,
  74. 2:21you know, that's great in the sense that
  75. 2:22like AI has reduced those costs and less
  76. 2:25expensive and you can you can do them
  77. 2:26very effectively.
  78. 2:28The things that are really kind of
  79. 2:29concerning are the things that are cheap
  80. 2:31or expensive to make and expensive to
  81. 2:33verify, right? If they're expensive to
  82. 2:35make, often you're kind of do it very
  83. 2:36slowly, and so maybe you have a better
  84. 2:38you'll verify simultaneously. But really
  85. 2:41it's kind of the fact that things that
  86. 2:42are expensive to verify are hard. And
  87. 2:44the if you make them,
  88. 2:47real danger, right, is that you'll make
  89. 2:48them you'll make it you maybe you'll try
  90. 2:50and have AI do it many many times and
  91. 2:52you won't verify and you'll build up
  92. 2:54what's called a verification debt.
  93. 2:56And so, that's really the concern. And
  94. 2:59so, what I'm trying to do is kind of
  95. 3:01build more tools in which you can think
  96. 3:02about the verification process as you
  97. 3:04use these AI tools. And so, you know, an
  98. 3:06AI will come back we sort of saw the
  99. 3:08work, and I I skipped over it often,
  100. 3:10Marcus, when we did these videos was
  101. 3:12we had this output and we didn't really
  102. 3:13verify it. We kind of looked at what it
  103. 3:15was there. But obviously that's 99% of
  104. 3:17the work, right?
  105. 3:19>> So, there's most of it about
  106. 3:19verification?
  107. 3:21>> Yeah, I think it's like Well, I think I
  108. 3:23think research often is about I mean, I
  109. 3:26think research prior to this there was
  110. 3:28the doing and then of course the
  111. 3:30verifying, but the verifying and the
  112. 3:31learning kind of happened simultaneously
  113. 3:33as you were doing things. But of course,
  114. 3:35if you offloaded it, you've done less of
  115. 3:38that. And actually, I think people who
  116. 3:40have RAs are potentially more familiar
  117. 3:43with this process, right? If you have an
  118. 3:44RA and work with an RA, you're used to
  119. 3:46kind of saying you get output from the
  120. 3:48RA, you have to sort of look at it and
  121. 3:49see if it makes sense, and go back. And
  122. 3:52that loop is more familiar to you.
  123. 3:54>> So, how is it different from, you know,
  124. 3:55not applying the YOLO mode,
  125. 3:58where you verify each step?
  126. 3:59>> I think that's Well, so, I think Yeah,
  127. 4:01so, great question. So, if you're using
  128. 4:03YOLO mode, this is I'm kind of of the
  129. 4:05view right now that you're thinking that
  130. 4:06you're using more like YOLO mode or
  131. 4:08something, maybe auto mode, which I
  132. 4:09talked about, right? Something where the
  133. 4:11agent is able to kind of go and work for
  134. 4:1320, 30 minutes on something. It's going
  135. 4:15to come back.
  136. 4:16You're going to have stuff that's done,
  137. 4:17and you have to think about well,
  138. 4:19verifying if they did what you really
  139. 4:21were wanting to do, or if it makes
  140. 4:23sense.
  141. 4:23>> Yeah.
  142. 4:24>> And so, I'm going to show you kind of
  143. 4:26what I think of as some best practices
  144. 4:28in which you can do that. One is just
  145. 4:29going to be thinking about reviewing the
  146. 4:31code and the output. So, get it as kind
  147. 4:33of reported.
  148. 4:34>> Mhm.
  149. 4:34>> And that's going to be using Git and
  150. 4:36GitHub. And so, Git is kind of software
  151. 4:38to keep track of things, of kind of keep
  152. 4:40track of changes in files. And GitHub is
  153. 4:43a place where
  154. 4:45uh these changes and code can be kept
  155. 4:48track of along with a variety of other
  156. 4:49extremely useful tools that we'll talk
  157. 4:52about.
  158. 4:53We'll talk about how to give feedback in
  159. 4:55a way that actually keeps track of the
  160. 4:56path in a useful way. So, what I mean by
  161. 4:58that is, rather than just keeping in
  162. 5:00your email, right, you actually have a
  163. 5:01place where this stuff is kept track of.
  164. 5:04And then I want to talk about ways of
  165. 5:06integrating kind of that process into
  166. 5:08something you might work on with a with
  167. 5:10a collaborator. So, like, Overleaf is
  168. 5:13the one that I'll talk about, but of
  169. 5:14course, Dropbox that would work
  170. 5:15potentially well, too.
  171. 5:17Um and so, we're going to have these
  172. 5:18three parts, and they're really going to
  173. 5:20be about kind of setting these best
  174. 5:21practices for thinking about the
  175. 5:24verification step and the iteration that
  176. 5:26happens kind of at a at a at a higher
  177. 5:28level, one level of abstraction above
  178. 5:30the coding and the
  179. 5:32you know, even math that you're doing
  180. 5:33there, right?
  181. 5:34>> But severity is something you do on your
  182. 5:35own with your
  183. 5:36course, so I rather than the
  184. 5:38verification done but at the journal
  185. 5:39level when they're trying to
  186. 5:40>> Exactly, exactly. This is before I mean,
  187. 5:42of course, you and I write like, when we
  188. 5:44look at stuff, we obviously are
  189. 5:45verifying and making sure that we see if
  190. 5:47it passes the sniff test and so forth.
  191. 5:50>> Yes.
  192. 5:50>> The journal then of course will do
  193. 5:51verification and you know in many ways
  194. 5:53we're kind of just have many
  195. 5:54verification levels with different
  196. 5:55perspectives and skills um of what it
  197. 5:58looks like. And what we'll briefly talk
  198. 6:00about is you know even some of this
  199. 6:02feedback in this verification could be
  200. 6:03done by other AIs, right Marcus? Like
  201. 6:06there's this is a thing I think in many
  202. 6:08places where people will say oh I did
  203. 6:09this code and now I need another AI to
  204. 6:11kind of review that code and that can
  205. 6:12work quite well.
  206. 6:14Um this is part of workflows that people
  207. 6:16people implement but
  208. 6:17in the end there's kind of this famous
  209. 6:19uh quote which is like you know a
  210. 6:21machine can never make a business
  211. 6:22decision, can never make a research
  212. 6:24decision and so you still have to kind
  213. 6:26of be willing to sign off on something.
  214. 6:28>> Mhm.
  215. 6:29>> So
  216. 6:30what I did just as kind of as a
  217. 6:32background um
  218. 6:34I wanted to have something practical
  219. 6:35rather than me just telling you
  220. 6:36something. So we're going to have a
  221. 6:37practical example here
  222. 6:39where
  223. 6:40um
  224. 6:40Hanna Lustig actually has been posting
  225. 6:42about this and there's been a lot of
  226. 6:43discussion as you recall SpaceX just
  227. 6:45went public, Marcus.
  228. 6:47And of course everyone's concern here is
  229. 6:49that the IPO there's been a lot of which
  230. 6:51there's going to be a quick inclusion of
  231. 6:53this stock eventually into market
  232. 6:55indices and people are really worried
  233. 6:57about the fact that often IPOs they
  234. 6:59maybe are overvalued and then there will
  235. 7:01be a decline.
  236. 7:02And so I thought my one fun thing to do
  237. 7:05that might be to say like well let's
  238. 7:06look there's something called the post
  239. 7:08IPO
  240. 7:09>> Yes.
  241. 7:10>> basically decline, right? There's a bump
  242. 7:11and then a decline. Let's replicate
  243. 7:13that.
  244. 7:14Um we're going to use Jay Ritter Jay
  245. 7:16Ritter has a bunch of information about
  246. 7:17IPOs for the event sample and have you
  247. 7:20know Claude do this. So I already had
  248. 7:22Claude do this. What I asked it to do
  249. 7:24was I said hey go find Jay Ritter's IPO
  250. 7:27data, construct use Crisp I have a way
  251. 7:29of it so it can log into Words the
  252. 7:32Wharton Research Data
  253. 7:33Services, get the data for this and
  254. 7:36construct some numbers for me. So I had
  255. 7:38it do this already. It took about 25
  256. 7:40minutes. I kind of I let it in auto
  257. 7:42mode, but it would put it in yellow
  258. 7:44mode. And I told it to keep track of its
  259. 7:46work. So, what I said was at certain
  260. 7:48checkpoints, I want you to commit the
  261. 7:50code, keep track of what you're doing,
  262. 7:52saying what you're doing, log your
  263. 7:54decisions, and explain what's going on.
  264. 7:56>> Mhm.
  265. 7:57>> So, that way we can kind of keep track
  266. 7:58of what's going. And I gave it some
  267. 8:00guidance, but I I was kind of vague on
  268. 8:01what it was doing. So, this way maybe
  269. 8:03there'll be some things that we disagree
  270. 8:05with of what it's done.
  271. 8:07So, we're going to use this as a
  272. 8:08framework for thinking about what's
  273. 8:10going on, okay? So, what Let me kind of
  274. 8:13walk you through. So,
  275. 8:15part A, we're just going to see the
  276. 8:17code. So, we're going to review the
  277. 8:18code. We're going to think about what's
  278. 8:19going on. I'm going to show you what
  279. 8:20this looks like. And
  280. 8:22I mentioned this before, but I kind of
  281. 8:24just want to make clear like what
  282. 8:25version control is. And so, Marcus, have
  283. 8:27you ever heard of Git or GitHub before?
  284. 8:30>> Yes.
  285. 8:31>> Yeah. Have you ever used it or or no?
  286. 8:33>> I've used some things on the GitHub
  287. 8:35page.
  288. 8:36>> Got it. Okay, so this is a thing.
  289. 8:40Do you want to say it again?
  290. 8:42>> It's good if you explain it again.
  291. 8:43>> Okay, perfect. Yeah, I will. I mean, I'm
  292. 8:44going to do a very cursory explanation.
  293. 8:46I will say that the problem with Git is
  294. 8:47that
  295. 8:48you know, the joke about Git is that you
  296. 8:50can If you ask someone who knows about
  297. 8:51Git, by the time you're done, it's like
  298. 8:54you never want to know any There's like
  299. 8:55so much complication. There's many, many
  300. 8:57features of it that are so beyond what
  301. 8:59most researchers would want to use
  302. 9:01because it's really meant for software
  303. 9:02engineers, right? It's for big entrepre-
  304. 9:04enterprise level products.
  305. 9:06>> And it's also
  306. 9:07>> the non- Yeah. So, go ahead.
  307. 9:09>> You know, if you upload uh some
  308. 9:10software, and
  309. 9:12your evaluation is how often people use
  310. 9:14it and download it. It's like a
  311. 9:15citation.
  312. 9:16>> Oh, so that's true, too. So, it's very
  313. 9:18nice for that. Yeah, it's been used a
  314. 9:19lot to measure that. Like a lot of open
  315. 9:21source stuff is kept kept there. Um
  316. 9:24the joke now, and there's some nice work
  317. 9:26um by some uh
  318. 9:28some researchers showing that right,
  319. 9:30like the the amount post AI, the amount
  320. 9:33of GitHub repositories has exploded
  321. 9:35because of course, now everyone can
  322. 9:36generate code. Um so it goes to show
  323. 9:39it's it's just because you put something
  324. 9:41up there doesn't mean somebody will use
  325. 9:43it. Um but what the way to think about
  326. 9:44it, I think the joke that everyone says
  327. 9:46is that really what it is it's a
  328. 9:47committed set of historical versions of
  329. 9:49work that you've done.
  330. 9:51And you know, the obvious one that we've
  331. 9:53all done, right? Is you have like
  332. 9:56working code _v1.do
  333. 9:59file, right? And then you add v2
  334. 10:01_final-final,
  335. 10:03right?
  336. 10:04And obviously what you'd rather have is
  337. 10:07you have one file, but somehow you can
  338. 10:10kind of keep track of all the way that
  339. 10:11it's changed. That's what you do for
  340. 10:12example when you do a Word document,
  341. 10:14right? Is you do track changes and you
  342. 10:16might have stuff in the back or an
  343. 10:17Overleaf as well. And really that's what
  344. 10:20all those um
  345. 10:22programs are doing in the background.
  346. 10:23They just have a an interface for
  347. 10:25working with it, but there's a way of
  348. 10:27keeping track of the differences. And so
  349. 10:28actually what Git is is a software that
  350. 10:31does
  351. 10:32it looks for differences in files and
  352. 10:33keeps it uses a hashing function to keep
  353. 10:36track of exactly what those are, to kind
  354. 10:38of keep a record of things what's going
  355. 10:40on. And so one of the reasons that
  356. 10:42software engineers like it is that you
  357. 10:43can
  358. 10:44create different branches and things
  359. 10:46that you're going to work on so you
  360. 10:47don't you don't overwrite the main code
  361. 10:49until you're ready. Um
  362. 10:52it allows people to simultaneously work
  363. 10:53on things and keep track of differences.
  364. 10:56So that's just like a very like the
  365. 10:58simplest way in the back of your mind is
  366. 10:59to say like, "Look, I have a bunch of
  367. 11:00code. I like this code. I want to make
  368. 11:03sure I keep it." Well, what this does is
  369. 11:05it will keep a way to keep track of it
  370. 11:07and you can see what changes have
  371. 11:08changed. So it's a track changes
  372. 11:10effectively for software code. And of
  373. 11:12course, you can see why that's useful.
  374. 11:14If you have an RA or an AI that's doing
  375. 11:16stuff and you want to review what
  376. 11:18they're doing, it's easier if the stuff
  377. 11:19is is marked.
  378. 11:21And so what it's going to do is what
  379. 11:22you're going to get from the AI and what
  380. 11:24we got in this example is that
  381. 11:26this example of from the IPO is well, I
  382. 11:28have a repository where it's committed
  383. 11:30code and so I'll see the changes, I'll
  384. 11:32see the results, and I'll see the
  385. 11:33estimates that are there, and so we can
  386. 11:35now do the review.
  387. 11:37>> And you can also split it apart, the
  388. 11:39code into sub codes and allocated to
  389. 11:41>> Yeah, yeah, so we're going to look at
  390. 11:42this right now. So, what's nice about
  391. 11:44this is like the I already said this to
  392. 11:45you, but it's like you know, the work
  393. 11:47from this is
  394. 11:49like work from your RA. You didn't write
  395. 11:51it, it looks nice, but you have no idea
  396. 11:53if it's right. And of course, you know,
  397. 11:55maybe the really good models now you
  398. 11:57trust more than maybe an RA who's just
  399. 11:59started, but who knows, right? It could
  400. 12:01It could go off the rails.
  401. 12:03And so,
  402. 12:04all of us kind of already know how to do
  403. 12:06this. This is not a task that's any more
  404. 12:08complicated. You just need the structure
  405. 12:09to be able to do it. And this is the
  406. 12:11thing that in software engineering,
  407. 12:12people are very familiar with. Um this
  408. 12:14is a big part of It turns out if you are
  409. 12:16software engineer, what something called
  410. 12:17code review is a really big part of
  411. 12:19being a more senior reviewer. So,
  412. 12:21Marcus, you know, you as a senior
  413. 12:22author, you're used to having me as a
  414. 12:25junior or
  415. 12:26code review or research review, right?
  416. 12:28You have a lot of familiarity. You kind
  417. 12:29of know, like, well, theory, you know,
  418. 12:32you made these assumptions that wouldn't
  419. 12:33really kind of give this kind of result
  420. 12:35sort of thing. There's a lot of
  421. 12:36familiarity.
  422. 12:37So, let's look at an example here. So,
  423. 12:39I'm going to I'm going to pop this up.
  424. 12:41So, this is
  425. 12:43I can show you the the the the
  426. 12:46the timeline where I did it, but
  427. 12:48um
  428. 12:50this is a GitHub repository. And I I
  429. 12:52will actually make it public, but right
  430. 12:54now it's a private repository. So, it's
  431. 12:56on a website, but it's private, so that
  432. 12:58means no one else can see it except me
  433. 13:00and my collaborators.
  434. 13:02And
  435. 13:04you know, Claude has put a bunch of
  436. 13:05stuff here. Um there's a lot of things
  437. 13:07going on on this page. The The ones I
  438. 13:09want to focus on for what we're going to
  439. 13:10do is we just got this work, right? So,
  440. 13:12our RA did some work, and we want to
  441. 13:15review it. And so, the first thing we
  442. 13:17might do is, okay, well, what happened
  443. 13:18here? So, let's look for fun, let's see
  444. 13:19what it did.
  445. 13:21Let's do the initial sniff test. Does it
  446. 13:22make any sense at all?
  447. 13:24And so, it says, okay, the headline
  448. 13:26estimate is just common stock IPOs from
  449. 13:28Jay Ritter's database, 1975 to 2021,
  450. 13:31earn a mean 3-year buy-and-hold abnormal
  451. 13:33return of minus 20% relative to CRSP."
  452. 13:37Um that's value-weighted. And so, here's
  453. 13:40the path.
  454. 13:42And here is the buy-and-hold over time.
  455. 13:45And, you know, this is kind of
  456. 13:46consistent. Of course, the question is
  457. 13:48is like, is this exactly the same? But,
  458. 13:50more or less, this is kind of the
  459. 13:51decline that we were expecting. Um I
  460. 13:54don't actually know
  461. 13:54>> are different essentially or what?
  462. 13:57>> Say again?
  463. 13:58>> In the 70s, the return was positive.
  464. 14:01>> Yeah, there seems to be this positive in
  465. 14:02the 70s. And of course, I'm not enough
  466. 14:04of an expert in this category to know
  467. 14:07whether this is the exactly the same as
  468. 14:09what Jay has. We can do that later. Um
  469. 14:12but this has just a bunch of like how
  470. 14:13this was done. What I want to show you
  471. 14:15before we get into the details of this
  472. 14:17exactly, you know, this is a lot of
  473. 14:18information. How was the match done?
  474. 14:20What am I uncertain about? Um
  475. 14:25the and so on.
  476. 14:27Um
  477. 14:27let me kind of show you I want to show
  478. 14:29you kind of how you might review the
  479. 14:30code, since that's the thing we care
  480. 14:31most most about here.
  481. 14:33>> Yes.
  482. 14:34>> Um if you look at the top here, what you
  483. 14:36see is that there's these different
  484. 14:37files here on the left. This is the
  485. 14:39output. This is where the code was
  486. 14:40stored.
  487. 14:41Um you notice that there are these
  488. 14:43different messages here on next to
  489. 14:46different parts of the code. So, why are
  490. 14:47there different messages? Well, when the
  491. 14:49code was added,
  492. 14:51there was a commit message. So, there
  493. 14:52were different commits. So, you can see
  494. 14:53here on the top right here, there's it
  495. 14:55says four commits.
  496. 14:56>> Yes.
  497. 14:57>> Well, that means the code was committed
  498. 14:58in chunks, which is part of what I told
  499. 15:00it to do. As I said, "Write this code
  500. 15:03and commit it in chunks."
  501. 15:04>> Well, what does committing mean?
  502. 15:06>> Yeah, so great question. So,
  503. 15:08committing, as simply put, is kind of
  504. 15:11like saying saving. Although, it's you
  505. 15:13obviously it's not the same as saving.
  506. 15:15What it's doing is it's saying, "All
  507. 15:16right, here's a bunch of files, given
  508. 15:18their current state,
  509. 15:20commit them into the chain." Like,
  510. 15:21basically, what it's technically doing
  511. 15:24is it's looking at the the hash
  512. 15:25function. So, it's it's keeping track of
  513. 15:27the state. It's kind of saving the state
  514. 15:29as it is.
  515. 15:30Um if you've ever used state, uh it's
  516. 15:32kind of like doing a preserve statement.
  517. 15:34It's saying, "Okay, right now as of this
  518. 15:35state."
  519. 15:37So, what it's done is we'll take a look
  520. 15:38at this is a very
  521. 15:40Say again?
  522. 15:40>> You can still change it afterwards.
  523. 15:42You're not committed to
  524. 15:43>> No, this is just keeping track of the
  525. 15:44state. So, here's an example.
  526. 15:47Um this is just the the scaffolding. So,
  527. 15:49this is the very first one. It's just
  528. 15:51saying, "What is it doing?" It's
  529. 15:52scaffolding. What are we going to just
  530. 15:54put the project structure? We're going
  531. 15:55to do a get ignore so it doesn't save my
  532. 15:57passwords or any data.
  533. 15:59So, it's just doing this file. It's just
  534. 16:01saying what you should ignore.
  535. 16:03Um here is it's outlining what decisions
  536. 16:06it's going to do.
  537. 16:08Right? So, how it's going to make
  538. 16:09decisions. So, we can read through this.
  539. 16:11>> Mhm.
  540. 16:11>> Um we'll do this in a second and it's
  541. 16:13going to flag things where it's
  542. 16:14uncertain. Here's how it's going to do
  543. 16:16stuff in terms of the sample. Like
  544. 16:17>> Well, I haven't typed this in or Claude
  545. 16:20typed this in?
  546. 16:21>> Claude typed this in. This is all
  547. 16:22Claude's. Claude made all these
  548. 16:23decisions. So, I All I did was give it a
  549. 16:25prompt and then I left it alone for 25
  550. 16:27minutes.
  551. 16:28>> So, can you explain it get the ignore
  552. 16:29again? So, what is all this?
  553. 16:30>> Yes, for sure. So, get ignore is saying
  554. 16:33Yeah, so get ignore is saying that um
  555. 16:36when you're in this folder,
  556. 16:37what are things [clears throat] that you
  557. 16:38should never um add to the chain of save
  558. 16:41things. So, in the preserve statement,
  559. 16:43kind of through the analogy we talked
  560. 16:44about, it's always going to ignore these
  561. 16:46files. And the reason it's going to
  562. 16:47ignore these ones So, this one it's
  563. 16:49because it's my password and I don't
  564. 16:51want you to know my password. Um
  565. 16:54these ones it's because it's raw data
  566. 16:56and it's a little bit like imagine you
  567. 16:58had a project when you have big files,
  568. 17:00you don't want to typically keep them in
  569. 17:03the the GitHub or in the Git. You want
  570. 17:06to keep them somewhere else where
  571. 17:07everybody can have access to. Um
  572. 17:10So, you'd have to supply your own, for
  573. 17:11example. You have to download it
  574. 17:12yourself from words if you download it
  575. 17:14on your own computer.
  576. 17:15That doesn't have to be the case. It can
  577. 17:17have data if it's just a little bit of
  578. 17:18data like macro data, you know, you
  579. 17:20know, couple hundred thousand lines not
  580. 17:21a big deal, but you don't want to have
  581. 17:23more than like 20 megabytes on here
  582. 17:25because it it just gets very unwieldy.
  583. 17:28And so this is just a bunch of um and
  584. 17:30this is just like uh boiler plate.
  585. 17:31>> you have a star in front of the
  586. 17:34>> Oh, that means all files. So it's like a
  587. 17:36wild card. So all wild all files that
  588. 17:39end in backslash.
  589. 17:41>> This was its decision. I don't even know
  590. 17:43what this is to be honest.
  591. 17:44>> Because this I know this is like two
  592. 17:46line three it has twice and once with
  593. 17:48the
  594. 17:48>> Yeah, so this I don't know why it did
  595. 17:50it, but it wanted to make extra sure
  596. 17:51that it never stored this cuz I I told
  597. 17:54it in no uncertain terms to never commit
  598. 17:56my password. I really didn't want to
  599. 17:58like do this video for you and then it
  600. 17:59committed my password to the world. So I
  601. 18:03mean it'll be fine. I could change my
  602. 18:04password or something at the world, but
  603. 18:05um
  604. 18:06>> A new version of the password.
  605. 18:08>> Exactly. Exactly. So this is you know,
  606. 18:11we can read through this, but this is
  607. 18:12how it made decision. Let me just kind
  608. 18:14of show you some This is just one um
  609. 18:17this is one commit. This is an hour ago
  610. 18:19it made this commit.
  611. 18:21Then it wrote some code. So now on stage
  612. 18:24one and two it said
  613. 18:27um
  614. 18:28you know, what is it going to do? It's
  615. 18:29going to load data. So it decided it
  616. 18:31said, all right, well what we need to do
  617. 18:33is we're going to get um
  618. 18:36Here is the the data that it's pulling.
  619. 18:39Um so this is just output, but the code
  620. 18:41it wrote is here. So it's saying, let's
  621. 18:43load the data from um from J. Ritter's
  622. 18:46sample. So here is the data set.
  623. 18:49Um
  624. 18:52and it's going to load this sample.
  625. 18:55And here's a bunch of coding it does and
  626. 18:57so you can read how it works, like what
  627. 18:58it's doing.
  628. 18:59>> Actually, what does SRC stand for? Is
  629. 19:01SRC for code?
  630. 19:02>> Which one?
  631. 19:03>> Trusty old folder is called SRC.
  632. 19:05>> Oh, great Yeah, so this is where it's
  633. 19:07using kind of
  634. 19:09um
  635. 19:09programmer
  636. 19:11um labeling which is kind of annoying.
  637. 19:13It stands for source, like source code.
  638. 19:15>> Oh, I see.
  639. 19:16>> Okay. Um so, in step one, it's doing
  640. 19:19this. So, it's loading the data. So, and
  641. 19:22this is, you know, this is using Python.
  642. 19:23Like, I really didn't give it a lot of
  643. 19:25preferences. If I was going to do this,
  644. 19:26I probably would have done it mainly in
  645. 19:27R, for example. And I could tell it to
  646. 19:30change. This would be like getting an RA
  647. 19:31who, you know, wanted to do it in
  648. 19:33Python. You'd be like, "Well, I don't
  649. 19:34like this. Change it to Python change it
  650. 19:36to R." Um
  651. 19:38But then, so there's different files,
  652. 19:40right? So, in this folder, it's done a
  653. 19:42bunch of code. You can read through it.
  654. 19:44This is obviously it's written a lot of
  655. 19:45code because it's the first time it did
  656. 19:47it.
  657. 19:47>> Yeah.
  658. 19:48>> But then, I what we'll see soon is that
  659. 19:49when you do the next round, when you do
  660. 19:51other things, you can see how these are
  661. 19:53all green, right? There's all these plus
  662. 19:55lines.
  663. 19:55>> Mhm.
  664. 19:56>> That's
  665. 19:57that's cuz it's showing you all the new
  666. 19:58things. Next, what will happen is that
  667. 20:00when you change things and you kind of
  668. 20:02delete or add things in the next step,
  669. 20:05it will only show you the things that
  670. 20:06have changed. And so, it will be a lot
  671. 20:08fewer lines of code
  672. 20:10>> eventually.
  673. 20:10>> Okay.
  674. 20:11And the other thing that can be helpful,
  675. 20:12just as a comment here, is so if I press
  676. 20:14this plus line, I can leave a comment
  677. 20:16here that I could sort of say like, you
  678. 20:19know, what does this doing? What does
  679. 20:20this this part here? And I can make
  680. 20:22reference to that later. That we'll come
  681. 20:24back. But just to kind of to do this,
  682. 20:26you can see that there's four um
  683. 20:28I'm sorry.
  684. 20:29There's four of these. And so, like, it
  685. 20:31did this and then it did this
  686. 20:32computation here. So, it did a bunch of
  687. 20:35different um things and it made output.
  688. 20:38Um
  689. 20:40And then at the end, it made its results
  690. 20:42and it wrote up the logs. And so,
  691. 20:45um it's actually interesting is that you
  692. 20:46can see here's an example of the minus.
  693. 20:48So, this is now it said, you know, as
  694. 20:50they run, here's the things going to be
  695. 20:51appended. It deleted that. And so,
  696. 20:53here's all the stages of the final
  697. 20:54results.
  698. 20:56Here's what it did.
  699. 20:57Um it dropped ADRs, etc.
  700. 21:00And so, you know, in this case, this is
  701. 21:02just a lot of output. So, we can look at
  702. 21:04that later. Um if we
  703. 21:06>> So, but why is that two columns? Let The
  704. 21:08left is empty and then
  705. 21:10Yeah, so the left right. So, that's what
  706. 21:12I was saying here. The left is going to
  707. 21:13be what they what it was in the previous
  708. 21:15commit. So, remember it's always taking
  709. 21:16differences relative to where you were.
  710. 21:18>> Okay.
  711. 21:19>> And so, in the older version of this
  712. 21:21file in the log file, it said, "Well,
  713. 21:23we're going to put what we did
  714. 21:26after this runs." And but now of course
  715. 21:28it deleted that and then it added these
  716. 21:30lines in here. So, it's a it's called a
  717. 21:31diff. So, you're comparing the two of
  718. 21:33them.
  719. 21:34So, you can see why this is potentially
  720. 21:36useful in that like now we've seen a
  721. 21:38bunch of code. You've seen the process.
  722. 21:40You start, you know, piece by piece. You
  723. 21:42look at them.
  724. 21:43This obviously was a lot of code. I'll
  725. 21:45show you an example of what you might do
  726. 21:47um to change things. So, let me let me
  727. 21:50give you a simple example here of so,
  728. 21:53you know, this did this with these buy
  729. 21:54and hold returns. And so, what I would
  730. 21:56like to ask and I'm going to I'm going
  731. 21:59to pause for a second and I'll show you
  732. 22:01this on the command line. So, let me let
  733. 22:02me
  734. 22:03All right. So, this is the This is where
  735. 22:05we had been running it.
  736. 22:07Now I'm going to ask it to do the
  737. 22:08following. I'm going to say,
  738. 22:11um
  739. 22:13"Please change this. Please add an
  740. 22:17additional analysis that looks at
  741. 22:21cumulative abnormal returns rather than
  742. 22:25buy
  743. 22:27and hold returns.
  744. 22:30Then commit the code and push it
  745. 22:33to GitHub."
  746. 22:36So,
  747. 22:38just so that people are aware, what does
  748. 22:39that mean? A buy and hold return versus
  749. 22:41a cumulative abnormal return. Cumulative
  750. 22:43abnormal is just the arithmetic. It's
  751. 22:45just summing up the averages. Buy and
  752. 22:46hold is saying, "Oh, imagine you bought
  753. 22:48at the day of and then you just um
  754. 22:50accumulated the returns in a geometric
  755. 22:52sense." They might look slightly
  756. 22:53different and you kind of curious what
  757. 22:55the difference is.
  758. 22:56Um
  759. 22:58the
  760. 23:01thing that I want to kind of emphasize
  761. 23:03now
  762. 23:05um
  763. 23:07is hopefully it's clear that with this
  764. 23:11you're you can now review this code
  765. 23:14because
  766. 23:16you know, you're able to kind of see
  767. 23:17that any changes that happen. So, of
  768. 23:19course, I made one big thing up there,
  769. 23:20but you can imagine now Marcus is like
  770. 23:23you know, we change something, do an
  771. 23:24analysis, you can just review what's
  772. 23:26changed in that basic part of it. You
  773. 23:28don't have to review the whole thing
  774. 23:29that's going on.
  775. 23:31>> Yes.
  776. 23:31>> Um and you can kind of comment and
  777. 23:33figure out one thing. So, this is part
  778. 23:34of why it's useful to have these commits
  779. 23:36in steps rather than just doing have one
  780. 23:38giant commit because it creates
  781. 23:40kind of a baseline framework of what's
  782. 23:43going on.
  783. 23:43>> But is it like pressing commit that make
  784. 23:45a new step?
  785. 23:46>> Yeah, exactly. And it sort of it makes
  786. 23:48it so that I mean, often these commits
  787. 23:50are ways of kind of
  788. 23:53um intellectually breaking apart chunks
  789. 23:56of the work. And so, of course, AI can
  790. 23:58do things very quickly, but like it's
  791. 24:00useful for you if you force the AI to
  792. 24:02think about what that looks like in this
  793. 24:04context.
  794. 24:06So,
  795. 24:07um
  796. 24:09while this is running, so here, what it
  797. 24:12let me kind of describe to you now
  798. 24:15like what it's going to do is it's
  799. 24:17basically going to give you things that
  800. 24:18you can view one thing at a time. So, I
  801. 24:20think often one challenge that people
  802. 24:22worry about with AI is this idea of
  803. 24:24there's just a huge amount of things
  804. 24:26that you have to review. But another way
  805. 24:27to think about it is like treat it like
  806. 24:29an RA or collaborator on something. It's
  807. 24:31going to put in a bunch of work there
  808. 24:33that you need to check. And you can do
  809. 24:35that in the same way that you would with
  810. 24:37an RA or something else and iterate with
  811. 24:39it accordingly.
  812. 24:40>> Mhm.
  813. 24:40>> Um
  814. 24:41I think this like decisions and log file
  815. 24:43could be useful to look at. So, let's
  816. 24:45let's kind of take an example of this um
  817. 24:49to kind of see the types of decisions it
  818. 24:51needs to do. In the file, you can look
  819. 24:53at it and you can say
  820. 24:55um okay, here's what it decisions it had
  821. 24:57to do.
  822. 24:58So, it said, all right, well, first
  823. 24:59decision, I had what scheme I had to
  824. 25:02use. That just means like what kind of
  825. 25:03tables, like what data did I use? And it
  826. 25:05feels fine about that. It has high
  827. 25:06confidence. I'm not that worried about
  828. 25:08this particular thing.
  829. 25:10What sample?
  830. 25:12Well, nice Fortunately, this is part of
  831. 25:15the reason I did this project is J
  832. 25:16Raider has a nice database where he
  833. 25:17keeps track of all the information, has
  834. 25:19all this, and it has a linkage to work.
  835. 25:21So, this is makes it very easy. J really
  836. 25:23kind of makes it easy. Um
  837. 25:27So, it does not contain the offer price.
  838. 25:30So,
  839. 25:32you know, it's going to it's going to do
  840. 25:34this. So, like we'll have to use just
  841. 25:35the stock data.
  842. 25:38Now, of course, I haven't checked these
  843. 25:42decisions against the actual code,
  844. 25:43right? This could just be it saying
  845. 25:45stuff. I'm relatively confident in
  846. 25:47Claude that it's making good decisions,
  847. 25:49but of course we'd want to check this.
  848. 25:51Um
  849. 25:53It's going to match and then validate
  850. 25:54it.
  851. 25:55Um, and then it's going to report the
  852. 25:57match, right? Feels quite confident
  853. 25:59because it's got these nice permnos, and
  854. 26:00J has already done all the work for us.
  855. 26:03Um
  856. 26:06>> But the verification is always done by
  857. 26:08human like you, not by another AI agent
  858. 26:11or by
  859. 26:12you know, Gemini
  860. 26:14or some other
  861. 26:15>> So, this is right. This is me reviewing.
  862. 26:17So, we'll talk about it in a second, you
  863. 26:18know, asking Gemini to do the work in
  864. 26:20this in just a second. That's right. Um
  865. 26:24So,
  866. 26:27um
  867. 26:29What's interesting, of course, is that
  868. 26:31it says that it did this, by the way.
  869. 26:33Cumulative abnormal return as
  870. 26:34robustness, but it did not have that in
  871. 26:35the file. So, it you know,
  872. 26:40It wasn't there in the figure.
  873. 26:43Well, it said that it was going to, but
  874. 26:45then it didn't. So, that is a good
  875. 26:46example of, you know, that this is
  876. 26:50It didn't do this. It also didn't do
  877. 26:52calendar time portfolios, which would
  878. 26:54have been a useful one, and it didn't do
  879. 26:56that either. So, you know, it's good to
  880. 26:58keep in mind that
  881. 27:01these things are can be as lazy as we
  882. 27:03are when they when they want to.
  883. 27:05>> So, it's like an already claiming having
  884. 27:07done things, but
  885. 27:08>> Right, exactly. Exactly. I mean, so that
  886. 27:10would be you'd say, "Well, where is
  887. 27:12that?" And you'd be like, "Oh, I forgot
  888. 27:13to do it." Um you're right, I should
  889. 27:15have done that. Or like you tell an RA
  890. 27:16to do something and then they haven't
  891. 27:17done it yet, right? So, or Claude
  892. 27:19>> him to temperature just to make sure,
  893. 27:21please be careful
  894. 27:23and do every step?
  895. 27:25>> You could do that. I mean, so there's
  896. 27:26definitely ways in which you can try to
  897. 27:28encourage the RA to be more uh not RA,
  898. 27:30sorry, the Claude to be more um precise.
  899. 27:34That's certainly things in your prompts,
  900. 27:36you know, that you can do. I didn't do
  901. 27:37it in this, but certainly people have
  902. 27:39that in there. Really make sure you do
  903. 27:41everything. One way to really make sure
  904. 27:43that everything gets done though, too,
  905. 27:44Marcus, is that like
  906. 27:46is to break up your tasks into more
  907. 27:49bite-size chunks so that it's more very
  908. 27:51You know, these are all like
  909. 27:53in the end, it's sort of the economic
  910. 27:55constraints bind, right? We have to do
  911. 27:57verification because
  912. 27:59in the end, it's not the AI writing the
  913. 28:00paper. So, it's kind of an interesting
  914. 28:02aspect of this. Um here it's like what
  915. 28:05benchmark do you want to do? So, it did
  916. 28:08the market Chris evaluated.
  917. 28:10This literature actually does some
  918. 28:11interesting matching with control stuff,
  919. 28:13and I have some work thinking about
  920. 28:14this. But, this is a very interesting
  921. 28:16question of like who should you match
  922. 28:17when you do an IPO? The market isn't
  923. 28:20actually not a very natural um match,
  924. 28:22and there's a big literature about this.
  925. 28:24You know, what are the event windows to
  926. 28:25do? It did a 3-year one. That's cuz
  927. 28:27that's the common one for this, but you
  928. 28:29know, maybe that's not the one we care
  929. 28:30about. I The thing if I were going to
  930. 28:31spend a lot more time, and we don't have
  931. 28:33infinite time, Marcus, is like might be
  932. 28:35interesting to look at the event how
  933. 28:38what the return looks like up until they
  934. 28:39get included in an index, for example.
  935. 28:41>> Yes.
  936. 28:42>> That might be a really interesting
  937. 28:43question for the stuff that we're
  938. 28:44looking at. How do you think about
  939. 28:46delisting returns? So, if they're
  940. 28:48delisted, what do you do? There's a lot
  941. 28:50of small smaller stocks where that
  942. 28:51happens.
  943. 28:52Um
  944. 28:54I actually don't know enough on this to
  945. 28:55think about it. And then some sample
  946. 28:57decisions, inference, and so forth. You
  947. 28:59know, how do we want to do the standard
  948. 29:01deviation like think about the standard
  949. 29:02deviation.
  950. 29:04Um [snorts] so, that's like a really
  951. 29:05interesting problem. So, while you know,
  952. 29:07now let's take a look and see if
  953. 29:10it pushed So, if you look here, remember
  954. 29:12it was four commits and now it's done
  955. 29:14five.
  956. 29:14>> Okay.
  957. 29:15>> So, we can say, all right, great. It did
  958. 29:16this work for us. And we say,
  959. 29:19you know, where's my where's my thing?
  960. 29:21What's new? What? New analysis computing
  961. 29:25additive cumulative abnormal returns
  962. 29:26alongside buy and hold. It now has a
  963. 29:29balanced firm by event month grid. So,
  964. 29:32what that means, right, is that
  965. 29:34um
  966. 29:35it's basically trying to make it balance
  967. 29:37so that it sums up correctly cuz it's
  968. 29:39not a portfolio. Um
  969. 29:42And why? Because I requested it.
  970. 29:45And then here's here's off it. So, what
  971. 29:47did it do? So, it changed things. Here's
  972. 29:50its reasoning. So, this is the reason
  973. 29:51the decisions, the log file, and so
  974. 29:54forth. Let's look at the change in the
  975. 29:55returns also. This one
  976. 29:58This is before code that existed before.
  977. 30:01You can see there's a lot of code here
  978. 30:02and you can open this up and you can
  979. 30:03look at more. So, this is all the stuff
  980. 30:05that was written. And then the green is
  981. 30:06the new text.
  982. 30:07>> Edits and yeah.
  983. 30:08>> Got it? So, it's making Now, we could
  984. 30:10look at how it's doing it. Um
  985. 30:13so, it's saying it's doing a fixed
  986. 30:14horizon.
  987. 30:16So, you know, it takes the return minus
  988. 30:18the benchmark after delisting it sets it
  989. 30:20equal to zero just so that it ignores
  990. 30:22it.
  991. 30:23Um
  992. 30:25And then how does it save it?
  993. 30:27And
  994. 30:30So, now it's going to calculate this
  995. 30:32return. Here's how it's doing it. You
  996. 30:33can take a look at how it's This is I'm
  997. 30:35not going to belabor the time of doing
  998. 30:37it. I'm sort of hoping that it's doing
  999. 30:38the right thing. But what we can do is
  1000. 30:39we We look at the um the figure now.
  1001. 30:42Oops, sorry.
  1002. 30:44Um maybe we'll look at the on the main
  1003. 30:46page so we can look at it.
  1004. 30:49So now we can look at this graph
  1005. 30:52here.
  1006. 30:53So this is the cumulative abnormal
  1007. 30:56return graph.
  1008. 30:58So this is now this is the cumulative
  1009. 31:00one. Remember this is the buy and hold.
  1010. 31:02>> Yes.
  1011. 31:03>> So the cumulative one interestingly
  1012. 31:06um
  1013. 31:06is
  1014. 31:09Yeah, so it's about 17%
  1015. 31:12whereas um the average for the buy and
  1016. 31:15hold is about 19%.
  1017. 31:17>> Okay.
  1018. 31:17>> Um
  1019. 31:20So what's interesting of course about
  1020. 31:21this is that the
  1021. 31:23you know, here the mean does way way
  1022. 31:25worse on this one relative to the median
  1023. 31:27and kind of the differences in the
  1024. 31:29median and the mean look different here
  1025. 31:31for the cumulative versus something
  1026. 31:32else.
  1027. 31:33>> Wow.
  1028. 31:33>> And there's reasons for this that just
  1029. 31:35have to do with interesting things about
  1030. 31:37volatility and so forth. But um
  1031. 31:40interesting to think about like the
  1032. 31:41reasons for why this does looks like
  1033. 31:43this. But I kind of want to just
  1034. 31:45emphasize that this is one way in which
  1035. 31:46you can do this. Um
  1036. 31:50So let me kind of back up. So
  1037. 31:53you know, if we think about uh going
  1038. 31:54back to the what we were talking about
  1039. 31:55in the slides,
  1040. 31:57you know, this just gives like a really
  1041. 31:59nice way of looking at the code like
  1042. 32:03pieces of the code. Now of course, you
  1043. 32:06know, Marcus if we had a research
  1044. 32:07project that does this, you're going to
  1045. 32:08have many many changes.
  1046. 32:10>> Mhm.
  1047. 32:10>> And you might want to go back and look
  1048. 32:12at decisions of like why you did things
  1049. 32:14or keep track of things. This kind of
  1050. 32:16really keeps track of what was going on
  1051. 32:18and the reasons behind it in a
  1052. 32:20particular one.
  1053. 32:22So [snorts]
  1054. 32:22you know, you can make a checklist.
  1055. 32:23These are sorts of things we could look
  1056. 32:25at. Um
  1057. 32:27you know,
  1058. 32:28So let's let's give an example. Let's
  1059. 32:30think about
  1060. 32:37Exactly, exactly. So that might be nice
  1061. 32:39in that you could be
  1062. 32:39>> like, let's do this example and here
  1063. 32:41show me what that one is and keep track
  1064. 32:43of it. Um and ideally, you know, you
  1065. 32:45having a working example where you have
  1066. 32:47that written out in there. And of course
  1067. 32:49there's By the way, this doesn't just
  1068. 32:51have to be the AI that does it. You
  1069. 32:52could write the code yourself or write
  1070. 32:54the theory part, commit it yourself in
  1071. 32:56the same repository, and it will keep
  1072. 32:58track of it in the same way.
  1073. 33:01Um
  1074. 33:02uh
  1075. 33:04So, like one example here that we could
  1076. 33:06say is we could say, all right, well,
  1077. 33:07let's let's just find out like what it
  1078. 33:10did in terms of
  1079. 33:12the um
  1080. 33:14the Ritter IPO code.
  1081. 33:16And
  1082. 33:18so, like a question we might say is
  1083. 33:19like, did it actually use the event day?
  1084. 33:22Or like, how did it get How did it pick
  1085. 33:23the event days?
  1086. 33:25And so, if we wanted to do that, we
  1087. 33:26could just go and um look at the code
  1088. 33:29again and we could say, well, when it
  1089. 33:32loads the data here,
  1090. 33:35let's just look at the code.
  1091. 33:37And we can even look right when it does
  1092. 33:39the commit. We can say, let's look at
  1093. 33:40the commit
  1094. 33:42where they did the stuff about loading
  1095. 33:43the data.
  1096. 33:44Let's figure out, you know, what it did.
  1097. 33:47And so, we'd say, all right, load Ritter
  1098. 33:48file. And we say, all right. So, it has
  1099. 33:50this sample. It's going to pull in this
  1100. 33:52data.
  1101. 33:54And it's doing it
  1102. 33:56um
  1103. 33:57you know, offer date raw.
  1104. 34:00And so, it's going to construct this
  1105. 34:02offer day here based off of this file.
  1106. 34:05And so,
  1107. 34:06it looks it's going to basically
  1108. 34:09do this step of construct um a a value
  1109. 34:13here that it's going to say, let's make
  1110. 34:15a date based off of this string, and
  1111. 34:17we're going to look at the the file that
  1112. 34:19it's doing.
  1113. 34:20Um and so, that looks reasonable. I
  1114. 34:22mean, we could look at it,
  1115. 34:24but it's I actually have kind of
  1116. 34:26double-checked to make sure that it's
  1117. 34:27right, and it's constructing the year
  1118. 34:29based off of that offer day. So, we know
  1119. 34:30that it's done it correctly.
  1120. 34:33We the key kind of key thing that we
  1121. 34:34have to make sure is that offer date raw
  1122. 34:37is the right thing in that folder,
  1123. 34:38right? And so, the way to do that would
  1124. 34:40be to kind of look at what that data is.
  1125. 34:43Um
  1126. 34:46and you know, obviously we're trusting
  1127. 34:48that Jay has done this correctly. So,
  1128. 34:50Jay has this, you know, massive
  1129. 34:52Excel file where he's done this.
  1130. 34:55Um and he has the offer date and that
  1131. 34:58that's the
  1132. 34:59that's basically the file that he does
  1133. 35:01it on. So, I'll show you I'll show you
  1134. 35:03what this looks like here just so that
  1135. 35:04you can
  1136. 35:06um
  1137. 35:06>> I trust Jay on this dimension.
  1138. 35:08>> Yes, me too.
  1139. 35:09>> in this life.
  1140. 35:09>> We better we better we'd better trust
  1141. 35:11Jay on this. So, you know, this is an
  1142. 35:13example of so he has this offer date
  1143. 35:15field and he has a bunch of information
  1144. 35:17and I mean it's kind of amazing, right?
  1145. 35:18He's done all the work for this.
  1146. 35:19>> Yeah.
  1147. 35:20>> Um and here's the crisp perm no and so
  1148. 35:21we know that um is in there.
  1149. 35:25So,
  1150. 35:27that's very helpful.
  1151. 35:28So, now
  1152. 35:30um
  1153. 35:32we know that
  1154. 35:34basically so, he this is a renaming and
  1155. 35:37we know it's using the right thing,
  1156. 35:38which is offer date raw and it's
  1157. 35:40constructing it correctly. Great. So,
  1158. 35:41we're very happy with that. We're very
  1159. 35:43happy that Jay has done all this work.
  1160. 35:44Of course, this is the joke about this
  1161. 35:46is
  1162. 35:47I've done the easy version of the
  1163. 35:48research because somebody already did
  1164. 35:49all the hard part on this.
  1165. 35:51Um
  1166. 35:52so, now if we go back,
  1167. 35:54um
  1168. 35:55what I want to next
  1169. 35:57sort of emphasize. So, that there are a
  1170. 35:58lot of things you could think about and
  1171. 35:59if you know, you if you're interested,
  1172. 36:01I'll I'll share this for anyone watching
  1173. 36:02this who's interested in looking, you
  1174. 36:04know, there's other things like
  1175. 36:06does it match, for example? This would
  1176. 36:07be a great question that we'll ask here.
  1177. 36:09So, on the next step I want us to
  1178. 36:11remember this.
  1179. 36:12Did it match what Jay said it was going
  1180. 36:14to do or did it, you know, did it get it
  1181. 36:16wrong and if so, why?
  1182. 36:19And a bunch of other things to think
  1183. 36:20about.
  1184. 36:21Um the next thing I want to talk about
  1185. 36:23is how to give feedback. And so, there's
  1186. 36:24going to be two ways to think about
  1187. 36:25this.
  1188. 36:26One is going to be human feedback and
  1189. 36:27the other is
  1190. 36:29I'm sorry.
  1191. 36:30>> Feedback to Claude.
  1192. 36:31>> To Claude and into the project. Yes, to
  1193. 36:34the output that was there. To Claude
  1194. 36:36{slash} your co-author {slash} anyone
  1195. 36:38else. So, say you found an issue or
  1196. 36:39something that you want to do. So, what
  1197. 36:41do you do? And there's basically three
  1198. 36:44audiences for the feedback. So,
  1199. 36:47one audience is Claude, like you just
  1200. 36:49said. The other is let's pretend you're
  1201. 36:51my co-author. You know, you're I want to
  1202. 36:53kind of keep track of what we're doing.
  1203. 36:55You you want to know what's going on.
  1204. 36:57And three is, you know,
  1205. 37:00uh me in the future, right? So,
  1206. 37:03so really
  1207. 37:05we're going to use GitHub here and get
  1208. 37:07to do this. And so,
  1209. 37:09um we just did this already, but a kind
  1210. 37:11of a key thing that you can do is we
  1211. 37:14just
  1212. 37:15basically asked it to do something
  1213. 37:19and it did a new um command. So, let's
  1214. 37:21let's ask the following. So, let's let's
  1215. 37:23look at this code for a second. So, I'm
  1216. 37:25going to bring up an issue. I'm going to
  1217. 37:27say, "I want you to um
  1218. 37:31I want you to review
  1219. 37:34the I'm going to create an what's called
  1220. 37:35an issue.
  1221. 37:36>> Mhm.
  1222. 37:37>> So, what we said just a second ago,
  1223. 37:38Marcus, was we said,
  1224. 37:41"Uh please compare
  1225. 37:44um issue. So, um
  1226. 37:47validate uh return measures against
  1227. 37:51Ritter initial returns.
  1228. 37:54Um
  1229. 37:55and so, what we'll say is, "J. Ritter
  1230. 37:58already has um return measures
  1231. 38:01constructed for the IPO, e.g. on the um
  1232. 38:06first day or
  1233. 38:08um following.
  1234. 38:10Please
  1235. 38:11validate the um the constructed
  1236. 38:15measures
  1237. 38:17that uh
  1238. 38:18we've
  1239. 38:20made against this
  1240. 38:23and report on
  1241. 38:25how well we do. We may not be perfect
  1242. 38:31if J's data
  1243. 38:34for returns is different than ours due
  1244. 38:39to Chris's issues.
  1245. 38:42So, this is like a message, right? It's
  1246. 38:44almost like an email or Slack message
  1247. 38:45you might give to an RA.
  1248. 38:48So, I'm going to create this. Nothing
  1249. 38:49happens when I create this, but you can
  1250. 38:51see this is issue number one, right?
  1251. 38:52I've created an issue.
  1252. 38:54>> So, you do essentially everything in
  1253. 38:55GitHub? And then
  1254. 38:57>> This is one You don't have to do this in
  1255. 38:58GitHub, but GitHub is extremely powerful
  1256. 39:00for this. I think this is a a very
  1257. 39:01useful way to keep track of issues.
  1258. 39:04Um
  1259. 39:05>> So, but how do you call on Claude now to
  1260. 39:06do it?
  1261. 39:07>> Great. That's I'm so glad you asked. So,
  1262. 39:10this is GitHub issue number one, right?
  1263. 39:13So, now
  1264. 39:15I'm going to
  1265. 39:16go to the command line here.
  1266. 39:19I'm going to s-
  1267. 39:20We're going to open up that thing in the
  1268. 39:21command
  1269. 39:22>> Or code works with Or does it work on
  1270. 39:24code works?
  1271. 39:24>> It would work on code work, although
  1272. 39:26like as I've mentioned to you, I'm not
  1273. 39:27like less familiar with it, but yes, it
  1274. 39:29should be It's a It's going to use the
  1275. 39:30command It's going to use, you know,
  1276. 39:32commands to do this. And so, we're going
  1277. 39:34to say the following. So, here's what
  1278. 39:36we're going to do.
  1279. 39:37We're going to say
  1280. 39:38um
  1281. 39:40So, you can you see You can see this Is
  1282. 39:42this big enough for you, Marcus? So,
  1283. 39:43we're here. We can do this with a We're
  1284. 39:45going to do this with a new um a new
  1285. 39:47session. So, I'm just in that folder as
  1286. 39:49if I opened it up, and I'm going to say
  1287. 39:52um please uh
  1288. 39:54review issue number one on GitHub
  1289. 39:59>> Mhm.
  1290. 39:59>> and um provide an answer an answer.
  1291. 40:06Co- code up an answer.
  1292. 40:08An answer, and then commit and push to
  1293. 40:12GitHub.
  1294. 40:14So, what is What are the things here?
  1295. 40:16You You should use the GitHub. So,
  1296. 40:21So, this is a I think Claude would know
  1297. 40:23to do this, but I just want to tell this
  1298. 40:25is that I'm telling it that there's a
  1299. 40:26program installed called GH, which is
  1300. 40:28for GitHub, that it can run from the
  1301. 40:30command line to pull the information
  1302. 40:32from GitHub.
  1303. 40:33Um and you would have to set this up
  1304. 40:34beforehand, of course. You should use
  1305. 40:36the GH um command line tool to do this.
  1306. 40:41So,
  1307. 40:43here's what it's going to Now, we're
  1308. 40:43going to watch what it's saying. I'll
  1309. 40:44start by reviewing the GitHub issue and
  1310. 40:46then explore the code base on how to
  1311. 40:47address it. Cuz remember,
  1312. 40:49I just started a new session, so it has
  1313. 40:50no idea what's going on.
  1314. 40:52>> Yes.
  1315. 40:52>> So, it says, "Okay, here is validate the
  1316. 40:54return measures against this." And so,
  1317. 40:56it says, "Well, I don't know what that
  1318. 40:57is." And so, let me explore the code
  1319. 40:59base. It's doing that. Let me look at
  1320. 41:00the reader data files in the key source.
  1321. 41:03And it's going to say, "Okay."
  1322. 41:06And
  1323. 41:07um
  1324. 41:09you know, it's looking at the data. So,
  1325. 41:10when it
  1326. 41:11It's going to work for a second.
  1327. 41:13While that's working,
  1328. 41:15I want to kind of I'm going to come back
  1329. 41:16to this in just a second.
  1330. 41:18It's going to parse this. So, this is
  1331. 41:19going to This is going to be working,
  1332. 41:20and we know that it will push, right?
  1333. 41:21So, I don't have to sit there waiting
  1334. 41:23and watching it anymore, Marcus. One of
  1335. 41:24the nice things here, right, is you
  1336. 41:26could look at this on your phone, right?
  1337. 41:28>> Yes.
  1338. 41:29>> So, that's The The step that we are not
  1339. 41:30going to get to in this session, or
  1340. 41:32maybe in this series even, but I want
  1341. 41:34people to visualize this is you could
  1342. 41:35imagine, right, that you have an
  1343. 41:37autonomous agent that does this on your
  1344. 41:39computer.
  1345. 41:40>> Yes.
  1346. 41:40>> It just reads when you send these
  1347. 41:42messages, and it does the work for you,
  1348. 41:43and it sends it back, right? It's like
  1349. 41:44emailing your RA.
  1350. 41:47So,
  1351. 41:48let me
  1352. 41:50um while that's running,
  1353. 41:52let me go back to here and
  1354. 41:55kind of final uh da da da
  1355. 42:02So,
  1356. 42:05while that's running, let me kind of
  1357. 42:06describe like
  1358. 42:08the um
  1359. 42:11the kind of key thing here, right, is
  1360. 42:12that by doing these reviewing it's it's
  1361. 42:14it's very doable to have it do stuff,
  1362. 42:16but you really want to keep track
  1363. 42:18of what's going on and be precise in
  1364. 42:21what you want to say. So, in that
  1365. 42:22message I gave, I was not very precise.
  1366. 42:25So,
  1367. 42:26you know, that's not because that was
  1368. 42:27mainly because I didn't have a real
  1369. 42:28issue, but it was a pretty clear it it
  1370. 42:32was pretty clear on what I wanted to do.
  1371. 42:33The clearer that I can be, the better it
  1372. 42:35will do.
  1373. 42:37Um and then you're going to kind of and
  1374. 42:38then I'll review what's going on and you
  1375. 42:40can kind of iterate accordingly to go.
  1376. 42:43You don't want This is kind of this
  1377. 42:44point is that you don't want to say like
  1378. 42:45this seems off
  1379. 42:47cuz you want to be specific about what
  1380. 42:48is the issue that's going on.
  1381. 42:52The
  1382. 42:53GitHub issues create a durable record.
  1383. 42:56So, this is part of the thing. So, we're
  1384. 42:57not going to get too much into pull
  1385. 42:59requests, but
  1386. 43:00>> What is PR? What is PR?
  1387. 43:02>> PR PR stands for pull requests. So, um
  1388. 43:06one way to think about this is so what a
  1389. 43:07pull request we didn't get into this and
  1390. 43:09I wrote this these slides and then was
  1391. 43:11like this is going to be too much is
  1392. 43:12that
  1393. 43:13one thing that you could do is imagine
  1394. 43:14Marcus that you submitted a paper
  1395. 43:16already. You know, you wrote this in the
  1396. 43:18pre-AI era,
  1397. 43:19>> Yeah.
  1398. 43:19>> but now you want to use AI.
  1399. 43:22You might say, all right, well, I'm
  1400. 43:23going to create I want to kind of start
  1401. 43:25doing the revisions. I'm going to create
  1402. 43:26a branch of this code
  1403. 43:29>> Mhm.
  1404. 43:29>> which isn't going to mess with the main
  1405. 43:31files right now. I'm not going to like
  1406. 43:32iterate over them. I don't want to have
  1407. 43:34to do I'm going to branch off
  1408. 43:36and I'm going to work on it for a while.
  1409. 43:40>> [clears throat]
  1410. 43:40>> And
  1411. 43:41what you do Well, pull request is when
  1412. 43:43you ask to pull a branch back into
  1413. 43:46another branch. And so, it's a way of
  1414. 43:48kind of saying like, "Hey, I'm done with
  1415. 43:49this code." For example, or you and I
  1416. 43:51might work on two different things.
  1417. 43:53Point is is that these GitHub issues and
  1418. 43:55these comments are are just a way of
  1419. 43:57keeping track of things much better than
  1420. 43:58an email.
  1421. 43:59>> Mhm.
  1422. 44:00>> And you can see kind of you also can see
  1423. 44:02who's responsible for different things.
  1424. 44:04>> A pull request often is from a code from
  1425. 44:06somebody else you pull and put it in
  1426. 44:08your
  1427. 44:08>> Yes, it was wanted to be who want the
  1428. 44:10pull request is they are requesting for
  1429. 44:12their code to be pulled into yours.
  1430. 44:14>> Yes, okay.
  1431. 44:15>> Um
  1432. 44:17And so you know, what's nice here,
  1433. 44:19right, is that you're basically creating
  1434. 44:20a historical record. And so as you
  1435. 44:22noticed in the way that I asked the
  1436. 44:25agent to do this, the agent is able to
  1437. 44:27read that historical record. Remember,
  1438. 44:28these agents just they love reading
  1439. 44:30text. If there's anything they like,
  1440. 44:31it's text. And so what we're doing is
  1441. 44:33we're creating a database of text about
  1442. 44:36the decisions and comments of what we've
  1443. 44:38we've done here, and it's very good at
  1444. 44:39that.
  1445. 44:40>> Yes.
  1446. 44:40>> So, um it's very helpful for the
  1447. 44:43purposes of replication and other
  1448. 44:44things, and it kind of keeps a
  1449. 44:46background. If you've ever worked on a
  1450. 44:47project where 6 months later, you you
  1451. 44:49want to know why you made a decision,
  1452. 44:50this is one of the things. That was true
  1453. 44:52pre-AI, but AI is there is so much
  1454. 44:55better at this stuff than the vast
  1455. 44:58majority of us that we are that
  1456. 45:00basically what I'm encouraging you to do
  1457. 45:03is to kind of create an abstraction
  1458. 45:05layer
  1459. 45:06above
  1460. 45:08coding and research here where the AI is
  1461. 45:11doing a lot of this stuff, and then
  1462. 45:12you're able to use these tools in a way
  1463. 45:15that software engineers have kind of
  1464. 45:16used historically. So
  1465. 45:18>> Okay, can can you summarize the feedback
  1466. 45:20component part B again?
  1467. 45:23>> Yeah, so to kind of summarize the back
  1468. 45:25>> Yes, yes.
  1469. 45:25>> Yeah, so let's look at this
  1470. 45:27>> the feedback.
  1471. 45:28>> Well, so let's look at an example here.
  1472. 45:29So, uh let's see if this is still
  1473. 45:31working.
  1474. 45:32Um
  1475. 45:33So, what it didn't do it hasn't not
  1476. 45:35finished yet in this example here. It's
  1477. 45:37still working.
  1478. 45:38It's almost done. But, like an example
  1479. 45:40of this would be so let's do it the
  1480. 45:41following example.
  1481. 45:43So what I might do is let's take a look
  1482. 45:46at this code, and when we do this um
  1483. 45:50merge here.
  1484. 45:52So
  1485. 45:53what I might do for example is I might
  1486. 45:56say
  1487. 45:57um you know, here's it's here is how
  1488. 45:59it's merging.
  1489. 46:00>> Mhm.
  1490. 46:01>> And what I could do
  1491. 46:04is
  1492. 46:07I
  1493. 46:10can do do do do.
  1494. 46:12Let me see if I can
  1495. 46:14I can use this code here
  1496. 46:18to and I can I can ask basically I can
  1497. 46:20say, all right, on this line
  1498. 46:23for example, where this merge is
  1499. 46:24happening
  1500. 46:26I want to
  1501. 46:29um
  1502. 46:30create an issue here
  1503. 46:32where I'm referencing a particular piece
  1504. 46:34of code and I'm going to say like
  1505. 46:37you know, merge count issue.
  1506. 46:41Um
  1507. 46:42I noticed that when you're merging you
  1508. 46:46are losing X, Y, or Z.
  1509. 46:49>> Mhm.
  1510. 46:49>> Um
  1511. 46:50Can are you sure you're merging um
  1512. 46:54please verify that you're using um that
  1513. 46:57you're using the right um variables here
  1514. 47:00to merge.
  1515. 47:01For example, obviously you could do this
  1516. 47:02yourself as well in the code like I
  1517. 47:05could. You don't have the code right
  1518. 47:06now, but you could do this very easily.
  1519. 47:09Um
  1520. 47:10And this is a kind of an issue you could
  1521. 47:12construct and it will reference this
  1522. 47:16line of code, so it will know where to
  1523. 47:18look.
  1524. 47:19>> Mhm.
  1525. 47:19>> And that's sort of what I mean by the
  1526. 47:20feedback loop in the sense that you've
  1527. 47:22then done this code and now it will kind
  1528. 47:24of have kept track of exactly the errors
  1529. 47:26that you're you're trying to pay
  1530. 47:27attention to. This is specific to a
  1531. 47:29merge, but of course what we could do
  1532. 47:31instead is that we could say um well,
  1533. 47:34let's look at the output and we'd say,
  1534. 47:36let's look at them the matching, right?
  1535. 47:39So, this is the matching here.
  1536. 47:42And
  1537. 47:44we might say
  1538. 47:45uh you know, here are the firms doing
  1539. 47:47this. Here's the number that match.
  1540. 47:50Um
  1541. 47:52it looks
  1542. 47:53like it matches all of them.
  1543. 47:55>> Mhm.
  1544. 47:55>> Um so, we're actually quite happy about
  1545. 47:57that.
  1546. 47:59So, here are the events. So, here So, we
  1547. 48:01lost
  1548. 48:02we lost four, and then we have a we have
  1549. 48:05this many that were This is dropping
  1550. 48:07ADRs.
  1551. 48:08>> I see.
  1552. 48:09>> Right? So,
  1553. 48:11So, one thing we could do is we could
  1554. 48:12say, "Well, why did four of them Why
  1555. 48:14were four of them not there?"
  1556. 48:16So, that's a great So, this is a good
  1557. 48:17one. So, like we could say, "Here,
  1558. 48:20um, reference is a new issue,
  1559. 48:23um,
  1560. 48:27Oh.
  1561. 48:28Hold on. Didn't do that right.
  1562. 48:30Tried to
  1563. 48:32make Oh.
  1564. 48:34Sorry. I will cancel this one. Just Just
  1565. 48:36write this.
  1566. 48:38I'll say,
  1567. 48:39"Reference a new issue,
  1568. 48:41um,
  1569. 48:43missing, um, firm IPOs.
  1570. 48:49Um, please
  1571. 48:52please
  1572. 48:53diagnose
  1573. 48:55why we are losing four IPOs in the Chris
  1574. 49:00Da- Chris Davis sample."
  1575. 49:02Right? So, this is the thing that we
  1576. 49:03could do, and then we could reference
  1577. 49:05this issue in the same way that we did
  1578. 49:07here. You can see that it actually
  1579. 49:08creates this in here.
  1580. 49:10>> Yes.
  1581. 49:10>> In this one.
  1582. 49:12So, this is what I mean by like this is
  1583. 49:13a way to give feedback, and then this
  1584. 49:15will kind of be kept in the record, and
  1585. 49:16you'll know why certain things are
  1586. 49:17there. It keeps the record in here for
  1587. 49:19you when you need to write it up or do
  1588. 49:20something else, or when you have your AI
  1589. 49:22help you write it up, it will have those
  1590. 49:24all the record in there as well.
  1591. 49:26>> Yes. Nice.
  1592. 49:26>> Um,
  1593. 49:28So, now
  1594. 49:30I can show you
  1595. 49:32that you see now we only have one open
  1596. 49:34issue, and that's because this one was
  1597. 49:35closed. It finished this one.
  1598. 49:37>> Okay.
  1599. 49:38>> So,
  1600. 49:39I closed this as a minute ago, and it
  1601. 49:42says, "Oh,
  1602. 49:44well, I said he has returns here.
  1603. 49:46So, our final sample is bracketed by a
  1604. 49:49restrictive net count and gross count.
  1605. 49:52Our year-over-year track almost
  1606. 49:54one-for-one the right events are in the
  1607. 49:55sample. I think, you know, we might
  1608. 49:57disagree on if that's the right number.
  1609. 49:59First day initial structure the
  1610. 50:01unrecoverable from the Chris monthly
  1611. 50:02data in the IPO month
  1612. 50:05um they have a closing price, but only
  1613. 50:06this doesn't compute partial.
  1614. 50:09So, interestingly, I didn't realize
  1615. 50:11this. It's doing monthly
  1616. 50:13whereas I think we want to do daily.
  1617. 50:15We'd like to see daily. So, this is
  1618. 50:18great. So, I feel like this is This is
  1619. 50:20not something I
  1620. 50:22designed, but I'm now like, "Oh, this is
  1621. 50:24really annoying."
  1622. 50:26We should fix this, right? We should
  1623. 50:27create a new issue.
  1624. 50:29Daniel, or so I'm not going to
  1625. 50:33Yeah, so we can reopen the issue, for
  1626. 50:35example. I think the biggest thing here
  1627. 50:37now is what we're going to say is we're
  1628. 50:38actually going to create a new issue.
  1629. 50:39And what we can do is we can reference
  1630. 50:41this issue. So, we could say "Now, let's
  1631. 50:44create a new issue which is saying uh
  1632. 50:48reconstruct
  1633. 50:50um
  1634. 50:51analysis using daily data."
  1635. 50:56"We discovered in
  1636. 50:59um
  1637. 51:00issue one." So, you can actually write
  1638. 51:02it like this. You can write You can just
  1639. 51:03do it dot amper- uh whatever pound sign
  1640. 51:06one and that will reference issue one
  1641. 51:08that the analysis is using the monthly
  1642. 51:12return data in
  1643. 51:14Chris, but we should use daily data and
  1644. 51:19then aggregate up
  1645. 51:23so that we can match Ritter and see the
  1646. 51:28higher
  1647. 51:29frequency analysis.
  1648. 51:32So, you know, we can do this. So, now we
  1649. 51:34have two issues or two issues that are
  1650. 51:36outstanding.
  1651. 51:38This is turning into a research project.
  1652. 51:39So, I don't want to keep everyone here
  1653. 51:40watching us do all of our analysis, but
  1654. 51:43you know, the easiest thing here we go
  1655. 51:44back. So, I'll do this in the
  1656. 51:46background, but you could say
  1657. 51:48um
  1658. 51:50uh
  1659. 51:51please, I'll just in the background I'll
  1660. 51:53say, "Please um
  1661. 51:56tackle
  1662. 51:57issue number three in
  1663. 52:00GitHub."
  1664. 52:01And we'll see how it's doing that in the
  1665. 52:03background. So, this is you can see this
  1666. 52:05is starts to be very powerful, right? We
  1667. 52:07>> No.
  1668. 52:07>> You don't have to be in the command line
  1669. 52:08beyond, you know, you maybe you only
  1670. 52:10need one co-author is doing stuff in the
  1671. 52:11command line. Um you can play with the
  1672. 52:14code in your own way, right? Like you
  1673. 52:16don't have to be using Claude per se in
  1674. 52:18the much in there. Co-work, I think,
  1675. 52:20should work with all of these things in
  1676. 52:21the same way. I haven't done this, so
  1677. 52:23like these are all very powerful tools
  1678. 52:25for doing this.
  1679. 52:27So, let me kind of in the last couple
  1680. 52:29the last step here talk about um
  1681. 52:33how you can kind of link this to just
  1682. 52:35production of things. This is I just
  1683. 52:37think is a nice part of people don't
  1684. 52:39really realize that one nice part about
  1685. 52:41having stuff integrated into GitHub is
  1686. 52:43that GitHub integrates nicely quite
  1687. 52:45nicely into Overleaf.
  1688. 52:47And so
  1689. 52:48>> I have to go through GitHub. I cannot
  1690. 52:50connect Overleaf and uh
  1691. 52:53>> You can.
  1692. 52:54Oh, no, that's that's right. No, no, no,
  1693. 52:56you can't Well, you could So, yes, so
  1694. 52:57you can actually. There's two ways, and
  1695. 52:59I'll show you I'll show you how.
  1696. 53:00>> Dropbox because Overleaf can also
  1697. 53:02connect with Dropbox. No.
  1698. 53:03>> Yes, that's right. So, that's how I
  1699. 53:05would do it. So,
  1700. 53:07two things that you can do.
  1701. 53:09>> [clears throat]
  1702. 53:10>> The kind of the the thing I want to
  1703. 53:11emphasize Let me kind of give the
  1704. 53:12high-level issue that I want to
  1705. 53:13emphasize that's a concern is
  1706. 53:16um what's important in the numbers,
  1707. 53:18right? And this is true independent of
  1708. 53:19AI, is just like you need to make sure
  1709. 53:22any numbers that go into your draft come
  1710. 53:24from the code, right? And so, it's nice
  1711. 53:25to have numbers come directly from code
  1712. 53:28rather than potentially hallucinated by
  1713. 53:29an AI or something else.
  1714. 53:31>> Yes.
  1715. 53:32>> And so,
  1716. 53:33it's what's very good, and this is true
  1717. 53:35about AI generally, is to have the
  1718. 53:37output of numbers that are in writing be
  1719. 53:40verifiable numbers, right? They're
  1720. 53:41things that are specific to the data.
  1721. 53:44Um and so
  1722. 53:46all one very nice thing we've I've done
  1723. 53:48this only in a few
  1724. 53:49proc- um papers, but I think this is
  1725. 53:51really kind of the ideal workflow is to
  1726. 53:54think about well
  1727. 53:56the numbers that get output, right? Come
  1728. 53:58from code. Like you have a figure,
  1729. 54:00right? Or even tables or text.
  1730. 54:02>> Yes.
  1731. 54:02>> Well, the code get reports does it like
  1732. 54:04this. Well, your
  1733. 54:05tech
  1734. 54:06file, right? Inputs them using like an
  1735. 54:09inputs statement or something else or
  1736. 54:11include graphic. And then you compile
  1737. 54:12it. And so ideally, of course, is that
  1738. 54:15these steps are kind of perfectly
  1739. 54:17connected.
  1740. 54:18And what's nice, right? Is that you can
  1741. 54:20integrate these very easily. And so
  1742. 54:23the Overleaf now there's a couple ways
  1743. 54:26where you could do this. Like obviously,
  1744. 54:28you can copy and paste things. That's I
  1745. 54:29think many of us often do that. There is
  1746. 54:32a way to do this though um very simply
  1747. 54:34in it. And so I want to just show you an
  1748. 54:37example of what that would look like. Um
  1749. 54:41so if we go here and we say like let's
  1750. 54:43go to Overleaf and you know, here what
  1751. 54:46I've done in Overleaf is I have created
  1752. 54:48a project
  1753. 54:50where
  1754. 54:53we have effectively
  1755. 54:55um
  1756. 54:56this is the repository. It's the old
  1757. 54:57version of the repository. And so I've
  1758. 54:59linked it
  1759. 55:01using GitHub.
  1760. 55:03So what I can say now is there's this
  1761. 55:05integration thing and I can say, "Well,
  1762. 55:07let's sync it."
  1763. 55:09>> Yes.
  1764. 55:09>> And so
  1765. 55:11there's a bunch of commits and so I need
  1766. 55:13I what I want to do is I want to pull
  1767. 55:14the changes from there into Overleaf.
  1768. 55:16And so I'm going to pull them in.
  1769. 55:19And so it's syncing. It's pulling
  1770. 55:21basically new code. It has all the stuff
  1771. 55:23from there. And so it's now linked. And
  1772. 55:25so it now has more of the stuff in here.
  1773. 55:27It has all the files and everything
  1774. 55:28else.
  1775. 55:29>> Yes.
  1776. 55:29>> And so what you can notice, right? So
  1777. 55:31this is
  1778. 55:32um it has all these are all the things
  1779. 55:35that we've been doing. Here's the first
  1780. 55:36day return.
  1781. 55:37Right here is So, our numbers clearly
  1782. 55:39don't
  1783. 55:40um
  1784. 55:42This is from the the previous version of
  1785. 55:43it. This is issue one.
  1786. 55:45So, what we could do next, of course,
  1787. 55:47right, is we could start just writing
  1788. 55:49our draft in here, right? And we could
  1789. 55:51reference the things directly. So, we
  1790. 55:52could say like, you know,
  1791. 55:56uh oh, I put it in the wrong folder.
  1792. 55:57Let's delete that.
  1793. 56:00So, in here, right, we'd say
  1794. 56:02um
  1795. 56:05we'd say like, "Begin document."
  1796. 56:09Obviously, you know, we're
  1797. 56:11we'd probably just
  1798. 56:12have AI do this boilerplate for us, but
  1799. 56:15we're going to do it. This is from
  1800. 56:17scratch. Hello world.
  1801. 56:20See if it works. Yes, I can still do
  1802. 56:22something.
  1803. 56:23So, now we might say something like,
  1804. 56:25"Well, let's do include graphics." Which
  1805. 56:28I think I will need to
  1806. 56:30um and then we could put this figure in
  1807. 56:32here.
  1808. 56:33And we might need to do use
  1809. 56:34>> I cannot upload directly from this
  1810. 56:36Overleaf thing. I have to
  1811. 56:38>> No, that's right. That's You can't do
  1812. 56:39that, but you can do something almost as
  1813. 56:41good,
  1814. 56:42which is now we've saved this file here,
  1815. 56:45right? So, we I've made this thing in
  1816. 56:47here, right? Well,
  1817. 56:49what I can do is I can say "Let me push
  1818. 56:52these changes to GitHub." And I'd say
  1819. 56:53like, "Create
  1820. 56:54>> Push that paper.
  1821. 56:56Yes.
  1822. 56:57>> And it'd say
  1823. 56:58it's going to put the changes into
  1824. 57:00GitHub.
  1825. 57:03Um and
  1826. 57:06if we now um
  1827. 57:09go back to the um let me go to the the
  1828. 57:13repository. Now, there's lots of
  1829. 57:15commits.
  1830. 57:16We have 11 commits, right? So, it's
  1831. 57:17done.
  1832. 57:18Mhm. You see, we're starting to build up
  1833. 57:20a real history here. So, we have this.
  1834. 57:22This is this thing it tried to do. Now,
  1835. 57:23it wrote up these results. And so, now
  1836. 57:25we're going to go to Overleaf.
  1837. 57:28And
  1838. 57:29um
  1839. 57:31>> So, I can't see or here it is. Okay.
  1840. 57:33>> Here it is. So, you notice it still has
  1841. 57:35this version of the draft that's not the
  1842. 57:37same. So, why is that the case? Well, we
  1843. 57:39haven't pulled it from here.
  1844. 57:41So, we have to
  1845. 57:42pull GitHub changes into Overleaf. We're
  1846. 57:44going to do that.
  1847. 57:49And you can see now it's turned into
  1848. 57:51this whole thing where it's made this
  1849. 57:52whole little
  1850. 57:53>> Paper is done.
  1851. 57:55>> We're done. We're done. Now, that's a
  1852. 57:57joke, of course, but the nice thing
  1853. 57:59about this is that you didn't have to do
  1854. 58:01any copying and pasting of like the
  1855. 58:02results and the tables and the figures
  1856. 58:04from one folder to the other.
  1857. 58:06And
  1858. 58:07>> most useful thing is if you have tables,
  1859. 58:08you say, "Let me transfer the figures
  1860. 58:10and tables over to the
  1861. 58:11>> Exactly. And it will also keep track of
  1862. 58:13all the changes in your draft in useful
  1863. 58:15ways, too, if you sort of keep these,
  1864. 58:17you know, if you write it and then you
  1865. 58:18want to push it.
  1866. 58:19>> Okay.
  1867. 58:19>> Um
  1868. 58:20So, it's really kind of an interesting
  1869. 58:23thing in that like this part, I think,
  1870. 58:25is you know, this is the least necessary
  1871. 58:27in some ways. Of course, you could just,
  1872. 58:29you know, move this over and kind of map
  1873. 58:31it. Like, you could just do it manually.
  1874. 58:32Overleaf, you could kind of keep
  1875. 58:34separate.
  1876. 58:34>> Mhm.
  1877. 58:35>> But what's distinctive here is like this
  1878. 58:37is an easy way for Claude to kind of
  1879. 58:39write into the draft.
  1880. 58:41>> I see.
  1881. 58:41>> Alternatively, and you mentioned this
  1882. 58:43before, um Marcus, is we could have
  1883. 58:46instead just let it Dropbox integrates
  1884. 58:49with Overleaf, as you said, and you
  1885. 58:50could have just pointed it to the right
  1886. 58:52folder and said, "Please update the
  1887. 58:53results in that draft accordingly."
  1888. 58:56That's a natural way to do it, too. The
  1889. 58:58nice thing about this is remember all
  1890. 58:59those changes like keeping track of the
  1891. 59:00changes? This keeps track of all the
  1892. 59:03changes in Git in the same way. So, now,
  1893. 59:06remember that in that GitHub path is
  1894. 59:09that we now see the changes in the
  1895. 59:11draft. Like, if we change something
  1896. 59:13here, which we did, it shows up here. We
  1897. 59:15know when it changes stuff, and we know
  1898. 59:17who's done it. Um or what they are
  1899. 59:20>> uh GitHub has some of course with this
  1900. 59:22commit some version control. I guess
  1901. 59:25Dropbox has some version control as
  1902. 59:26well.
  1903. 59:27>> Yes, although you pay for it and it's
  1904. 59:29not nearly as good, but yes, it's
  1905. 59:32you pay for it in the sense that it
  1906. 59:34won't keep it forever. Like it's I think
  1907. 59:36it does 90 days backwards. And that's so
  1908. 59:39like
  1909. 59:40it's not nearly as good. I mean get the
  1910. 59:42GitHub ones are forever.
  1911. 59:44>> I see.
  1912. 59:45>> So, that that can be quite helpful.
  1913. 59:47So, let me
  1914. 59:49let me just wrap up then. And so, what I
  1915. 59:52kind of want you to kind of take away
  1916. 59:54from this I think was this idea of like
  1917. 59:56a check a way to think about
  1918. 59:58using
  1919. 59:59Git and GitHub in an integrated fashion
  1920. 1:00:02to think about keeping track of things
  1921. 1:00:03and keeping a path of what we've done.
  1922. 1:00:06Such that
  1923. 1:00:08like two two things. One, it's really
  1924. 1:00:09useful for the agent. The agent can see
  1925. 1:00:11what's changed and like what might have
  1926. 1:00:13broken, especially when you start a new
  1927. 1:00:14session, it can see all the things. It
  1928. 1:00:16gives much more texture to what's going
  1929. 1:00:18on. Two, it keeps track for you and you
  1930. 1:00:21can do it on the website and you and
  1931. 1:00:22your co-authors can look at it and so
  1932. 1:00:24forth.
  1933. 1:00:25Three, it integrates with writing in a
  1934. 1:00:27way that makes sure that you do things
  1935. 1:00:28correctly. And four, GitHub as a website
  1936. 1:00:32is actually extremely powerful for
  1937. 1:00:34keeping track of issues and notes and
  1938. 1:00:36thoughts for yourself.
  1939. 1:00:37Like issues are a really remarkable way
  1940. 1:00:39of, you know, say you give a seminar and
  1941. 1:00:41you get 10 questions.
  1942. 1:00:43You know, really nice thing you can do
  1943. 1:00:44is you can put all the questions in as
  1944. 1:00:46an issue and then you could say like AI,
  1945. 1:00:50go and look at these and think about
  1946. 1:00:51what are the best possible answers and
  1947. 1:00:53where we can integrate or where we need
  1948. 1:00:54still need to make
  1949. 1:00:56decisions going forward. So, there's a
  1950. 1:00:58lot of really great structure in there
  1951. 1:01:00in ways that can be useful.
  1952. 1:01:02So,
  1953. 1:01:03kind of think of this is like a really
  1954. 1:01:05important way of integrating this into
  1955. 1:01:07your workflow. I think it's really good
  1956. 1:01:09best practices and the best part about
  1957. 1:01:11it is that we talked about before,
  1958. 1:01:12Marcus, is that like
  1959. 1:01:14you know, AI has made GitHub and Git we
  1960. 1:01:17kind of all know about it. I would say
  1961. 1:01:19the majority of researchers who use
  1962. 1:01:22these previously is pretty small. People
  1963. 1:01:24don't really use best practices. I kind
  1964. 1:01:26of want to tell you that like AI is so
  1965. 1:01:28good at it that as long as you kind of
  1966. 1:01:30remember that you want you tell it
  1967. 1:01:31beforehand. You say, "I want to kind of
  1968. 1:01:32keep I want to make sure I keep track of
  1969. 1:01:34stuff in this project using GitHub and
  1970. 1:01:36Git. It will just remember to do it. It
  1971. 1:01:39It's like it wants to. It has the you
  1972. 1:01:41know, it has the demon It has the the
  1973. 1:01:43spirit of a good software engineering
  1974. 1:01:44living deep inside of it. It's going to
  1975. 1:01:46do much better than you do. Um and so
  1976. 1:01:48that can be quite valuable.
  1977. 1:01:50So, yeah. So, that's pretty much it for
  1978. 1:01:52now and I think we've covered a lot of
  1979. 1:01:54the stuff we said we were going to. This
  1980. 1:01:55was really great, Marcus. Thanks a lot
  1981. 1:01:57for the opportunity.
  1982. 1:01:58>> Well, thanks a lot, Paul. Let's just Can
  1983. 1:02:00you give me one more sentence where we
  1984. 1:02:01started with installation, terminal
  1985. 1:02:03setup, with data analysis, some web
  1986. 1:02:05scraping, then some large data set, I
  1987. 1:02:07remember SEC.
  1988. 1:02:08Then I wrote a write a paper and a
  1989. 1:02:10report.
  1990. 1:02:12>> Yeah.
  1991. 1:02:12>> And you got some
  1992. 1:02:13you
  1993. 1:02:14you know, second revision in a sense.
  1994. 1:02:16And then we did some making skills and
  1995. 1:02:17last time we did permissions and open
  1996. 1:02:19claw and things.
  1997. 1:02:20>> Yeah.
  1998. 1:02:21>> Integration, verification,
  1999. 1:02:23collaboration.
  2000. 1:02:24Integrating essentially
  2001. 1:02:27GitHub as a Dropbox as a background and
  2002. 1:02:29connecting essentially cloud and uh
  2003. 1:02:33and also and Overleaf and other writing
  2004. 1:02:35programs.
  2005. 1:02:37That's fantastic. Any last message you
  2006. 1:02:39want to give to the viewers?
  2007. 1:02:41And I
  2008. 1:02:42thank you.
  2009. 1:02:43>> No, I think I mean I I think it would be
  2010. 1:02:45great to kind of hear from people about
  2011. 1:02:47things that they are finding biggest
  2012. 1:02:49pain points, but I think the big thing
  2013. 1:02:50is you know, this is a really useful
  2014. 1:02:52tool and I think it's really sped up a
  2015. 1:02:53lot of things, but
  2016. 1:02:55I think it's mainly exciting in that
  2017. 1:02:56there's lots of new things in which we
  2018. 1:02:58can be I don't I'm very positive on
  2019. 1:03:00this. I think this this makes research
  2020. 1:03:01more exciting in a lot of ways and I
  2021. 1:03:03think we have a lot of value to add. And
  2022. 1:03:04so I hope people found this useful and
  2023. 1:03:06thanks a lot for watching.
  2024. 1:03:08>> How would How do you see the whole thing
  2025. 1:03:10in 1 year and in 5 years?
  2026. 1:03:12>> That's a good question. I think that
  2027. 1:03:16um
  2028. 1:03:195 years is hard. I think it could write
  2029. 1:03:21it's crazy to think about even just 1
  2030. 1:03:22year ago was so different. In 1 year
  2031. 1:03:25from now, I am guessing that there's
  2032. 1:03:27going to be a lot if you found kind of I
  2033. 1:03:30think some folks maybe watching this
  2034. 1:03:31maybe found the command line and other
  2035. 1:03:33things and I think this is something you
  2036. 1:03:34said Marcus is that
  2037. 1:03:35I have to imagine that it will become
  2038. 1:03:37easier and easier to integrate this sort
  2039. 1:03:40of these tools into workflows that don't
  2040. 1:03:42require you to, you know, feel so much
  2041. 1:03:44like you're in the matrix like either
  2042. 1:03:45using co-work and kind of better
  2043. 1:03:47practices there.
  2044. 1:03:49Um I think it will become more obvious
  2045. 1:03:52in a year or even in 5 years of what are
  2046. 1:03:54the things that humans are supposed to
  2047. 1:03:56do in these workflows cuz I think right
  2048. 1:03:58now we're in this such big period of
  2049. 1:03:59transition that it's kind of less
  2050. 1:04:02obvious where the choke points are as
  2051. 1:04:04would be the word that you might use of
  2052. 1:04:06where is human, you know, where are the
  2053. 1:04:08human problems versus the computer
  2054. 1:04:10problems? I'm not of the view that like
  2055. 1:04:13this is all going to be automated away.
  2056. 1:04:14I think it's all comparative costs. Now
  2057. 1:04:16there are things that preferences are a
  2058. 1:04:18great example or other things and so I
  2059. 1:04:20think that will be the kind of more
  2060. 1:04:22obvious I think in a year or in 5 years,
  2061. 1:04:24you know, Marcus you and I will be like
  2062. 1:04:26you know, I got my AI to do this and
  2063. 1:04:28then I had to do all of X, Y, and Z the
  2064. 1:04:29same way that you probably 25 years ago,
  2065. 1:04:3230 years ago, you know, running a
  2066. 1:04:34regression with fixed effects was a huge
  2067. 1:04:35constraint and there was all these
  2068. 1:04:37problems and now we can run
  2069. 1:04:39a thousand of these things and that we
  2070. 1:04:40don't even think of that as a constraint
  2071. 1:04:42anymore.
  2072. 1:04:44>> Very good, Paul. That was fantastic and
  2073. 1:04:47thanks a lot and uh
  2074. 1:04:49you know, we keep on delivering new
  2075. 1:04:51things.
  2076. 1:04:53We have already something in the back of
  2077. 1:04:54our head. But for now, we want you to
  2078. 1:04:57watch it and stay on the frontier and
  2079. 1:04:59push the research and the frontier in
  2080. 1:05:02economic research.
  2081. 1:05:03Thank you.
  2082. 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.