Q1: You Don't Know How Wrong You Are · Delaney Mackenzie — Transcript
Full transcript
- 0:00chat with Traders collaboration with
- 0:02quantopian episode
- 0:05[Music]
- 0:131 okay what's up guys uh if this is your
- 0:16first time listening to chatwi Traders
- 0:18podcast my name is Aaron Firefield so
- 0:21welcome and big thanks for tuning in
- 0:25what you're listening to right now is
- 0:27not a regular episode this is AAL
- 0:30six-part miniseries in collaboration
- 0:32with quantopian uh for those unfamiliar
- 0:35with quantopian quantopian is a
- 0:38crowdsourced investment firm who provide
- 0:40pretty much anyone with an internet
- 0:42connection to data a research
- 0:44environment and a development platform
- 0:47to write their own algorithmic
- 0:49strategies uh select authors then may
- 0:51also license their strategies to
- 0:53quantopian and get paid based on
- 0:57performance now the overarching theme
- 1:00for this miniseries is a look into the
- 1:03workflow of a professional Quant trading
- 1:06firm I will say I would consider some of
- 1:08the topics discussed to be quite
- 1:11Advanced but if you're into this sort of
- 1:13thing I think you'll really enjoy it if
- 1:15not then that's also totally fine but I
- 1:18feel like this first episode at least
- 1:21has relevance to Traders and investors
- 1:23of all styles because this episode to
- 1:26kick things off is titled you don't know
- 1:29how wrong you are and we specifically
- 1:32discuss numerous biases and the many
- 1:34ways that you can actually be wrong
- 1:36without knowing it anyway I want to keep
- 1:39this intro short and sweet because
- 1:40you'll hear more about what to expect
- 1:42from this podcast series very soon and I
- 1:45still want to mention a couple things
- 1:47that are important to address so first
- 1:50thing to find any of the links and
- 1:52resources mentioned throughout this
- 1:54series you can go to quantopian
- 1:58docomo Traders to find everything there
- 2:01all in one place uh I'll also have the
- 2:04same on the chatwi Traders website so
- 2:07whatever is easiest for you uh second
- 2:10like I said after this first episode
- 2:12some of the topics get a little complex
- 2:14at times so if you want to ask something
- 2:18you can go to quantopian
- 2:21tocom questions and submit your
- 2:24questions there that way we can collect
- 2:26them all in one place and we will do our
- 2:28very best to answer as many as possible
- 2:31on the sixth episode which is actually
- 2:33dedicated to
- 2:36Q&A and thirdly this series is sponsored
- 2:40by data Camp so if you're Keen to learn
- 2:43a programming language or further
- 2:45develop your programming skills I really
- 2:48encourage you to check out datac
- 2:50camp.com I've done a bunch of their
- 2:52python online courses and they're
- 2:54brilliant they also have many courses
- 2:57teaching R all of which are centered
- 2:59around data science stats and finance so
- 3:04visit datac camp.com and create a free
- 3:06account to get started just to repeat
- 3:09that's datac camp.com check them out now
- 3:12without any further Ado please welcome
- 3:14Delaney from the academic arm of
- 3:16quantopian let's get into
- 3:20it all right so Delany what's up buddy
- 3:23how you doing uh not too much I mean I
- 3:26would I say that semi- dishonestly cuz
- 3:28things are as usual incredibly busy here
- 3:31but uh nothing too much this evening
- 3:33I've just got this and then I'm I'm
- 3:34heading home good stuff yeah yeah I can
- 3:37imagine I can imagine you've got
- 3:38quantcon coming up too so I imagine um
- 3:40that's just Amplified things yes well
- 3:43thank you for giving me the opportunity
- 3:45to write off the bat start uh start
- 3:47pitching this uh but yeah we have a
- 3:49quanon Singapore coming up it's the
- 3:51first time we've done it not in New York
- 3:53City um so we're excited about that it's
- 3:56going to be in November I think on the
- 3:5810th or 11th we're there's a few days of
- 4:00events but the URL is Quant con. SG in
- 4:03case anybody wants to check it out good
- 4:05stuff yeah I'm really Keen to make it
- 4:07along I don't know if I'll make it out
- 4:08there to the Singapore event but if not
- 4:11uh definitely the next New York one or
- 4:12saying I'm really Keen to make it along
- 4:14but anyway man I'm really excited to be
- 4:16doing this so just to set the scene here
- 4:18give us a rundown on who you are your
- 4:21background and tell us a little bit
- 4:23about quantopian
- 4:24too sure so uh I'm Delan my last name is
- 4:29long and complicated so we're you know
- 4:31it's it's out there on the internet you
- 4:33can find it if you want to mostly I just
- 4:35go by Delaney um my background
- 4:38personally is in uh computer science uh
- 4:42statistics and and math kind of you know
- 4:44at the intersection of all those three
- 4:46and I joined quantopian uh right out of
- 4:49school actually and I currently run uh
- 4:52the academic arm of the business uh
- 4:55namely uh kind of what quantopian does
- 4:58is we try to democratize quantitative
- 5:01Finance quantitative Finance is one of
- 5:04the fields in which the barriers to
- 5:06entry are just amazingly High I think
- 5:08that some of them are so high that you
- 5:11don't even know how high they are a lot
- 5:12of people um you know kind of will sit
- 5:15there and they'll say oh well I have
- 5:17this great idea for how I could trade
- 5:18stocks but they there's just no sense of
- 5:22the path that you would go through to
- 5:24actually get that from idea into real
- 5:27implementation so what Quanto does is is
- 5:30we try to provide as many of the tools
- 5:33uh and data sets that Banks and hedge
- 5:35funds would have access to as possible
- 5:37and provide them to everybody in the
- 5:39world uh regardless of background or or
- 5:42geography and uh make it so that anybody
- 5:45has a shot to actually try to implement
- 5:48some of these ideas personally I
- 5:50actually didn't know um much Finance
- 5:54before starting at quantopian my
- 5:55background again is in kind of uh
- 5:57computer science and stats and
- 6:00um I was so fascinated by what you could
- 6:03do with this stuff when I joined
- 6:05quantopian um that that helped me
- 6:07realize that a lot of people do come to
- 6:09our platform to learn and uh almost
- 6:14accidentally um I uh ran into a
- 6:18professor at Harvard um actually got
- 6:21introduced to him by someone else who
- 6:23was taking his course but I ran into him
- 6:25and uh
- 6:27basically discovered that he was using
- 6:29one of the same technologies that
- 6:31quantopian uses internally to teach his
- 6:33course namely these Jupiter notebooks
- 6:35and they're such a powerful teaching
- 6:37tool um and what we said is hey well why
- 6:41don't we use the same technology and try
- 6:44to teach quantitative Finance to our
- 6:46users because you know it's one thing if
- 6:48you have a great idea already and you're
- 6:50educated but another barrier to entry is
- 6:53that nearly nowhere teaches quantitative
- 6:56Finance um and since we want people to
- 6:59be
- 7:00uh you know writing great strategies on
- 7:02our platform we want people to be
- 7:04educated in in doing that so we've
- 7:06actually created uh kind of in through
- 7:09the process of working with a lot of
- 7:10professors at schools including uh
- 7:13Harvard Princeton MIT uh MIT Sloan
- 7:16specifically Cornell um and many others
- 7:19that I don't have you know time to name
- 7:22uh we developed the the quantopian
- 7:24lecture series and that's where honestly
- 7:27kind of I think a lot of content that we
- 7:29discussed
- 7:30uh over the next podcast is going to be
- 7:32drawn from the lecture series are kind
- 7:34of designed to bring you from kind of
- 7:36knowing nothing about quantitative
- 7:38Finance but knowing a little math and a
- 7:39little programming to really actually
- 7:41being able to uh compete uh with a Quant
- 7:45uh in industry and again like the goal
- 7:47of this is uh quantopian primary
- 7:51business model is to uh allocate money
- 7:55to the best ideas that are produced on
- 7:58the platform and and uh so we actually
- 8:02recently um had some big news in which
- 8:05uh
- 8:06we uh entered into an agreement with uh
- 8:1072 in which they would give us uh
- 8:13through a separately managed account
- 8:15access for to up to $250
- 8:18million uh subject to some constraints
- 8:21um to allocate out to uh to our uh users
- 8:26algorithms and so now the idea is that
- 8:28we're trying to grow the size of
- 8:29allocations that we can make to
- 8:31algorithms on our website and uh pay the
- 8:34users uh a percentage of profits that
- 8:36they make on the algorithm so that's
- 8:38that's our our our main business model
- 8:41is doing a profit sharing um on
- 8:43algorithms that are sourced from our
- 8:45community and kind of our our Dream user
- 8:48our Dream use case is someone who comes
- 8:50from a background or region where they
- 8:53traditionally would just not have access
- 8:55to quantitative Finance they just
- 8:57wouldn't be able to do this but through
- 8:59quantopian um are able to kind of you
- 9:02know work hard be smart design a really
- 9:04good strategy and actually get an
- 9:07allocation and make kind of on the order
- 9:09the same amount of money that a a
- 9:11professional Quant would uh for doing
- 9:14the same work so our goal is really to
- 9:15make it way more mer meritocratic than
- 9:17it than it currently is and try to
- 9:19flatten out the playing field um within
- 9:22Quant Finance yeah right now just to
- 9:24pick up on a few things you said there
- 9:26right back at the very beginning you
- 9:28mentioned that the barriers to entry uh
- 9:30to becoming a Quant are very high in
- 9:33most cases why are these barriers to
- 9:36entry so high like is it the the
- 9:38knowledge that's necessary is it the
- 9:40expensive data that's required is it the
- 9:43tools I mean is it a mixture of
- 9:45everything what why are the barriers so
- 9:48high and unattainable for many I think
- 9:51it's in all of the above circumstance
- 9:53there's a lot of Industry forces in
- 9:56finance which push towards Secret
- 10:00and push towards not sharing what you
- 10:02have in any way and if you look at the
- 10:06way that traditional Finance firms have
- 10:07operated uh they've operated in this way
- 10:09that like all intellectual property that
- 10:11is generated at that firm belongs to the
- 10:14firm and it is incredibly rare for a
- 10:18firm to open up that intellectual
- 10:20property in any way um that is kind of a
- 10:23firms lifeblood in many cases and in the
- 10:26traditional business model uh you're you
- 10:29know activities are highly dependent on
- 10:31your ideas being new and and your ideas
- 10:33being unique and that nobody else can
- 10:35figure them out what that's led to is
- 10:37this circumstance in which um not only
- 10:39in many cases is the academic field kind
- 10:42of far behind industry practitioners or
- 10:44you just kind of going off in another
- 10:46Direction that's not really related uh
- 10:49but uh it's really you just don't even
- 10:51know what has to get done um you know
- 10:55things that would be kind of absolutely
- 10:57essential to a Quant work flow and as an
- 11:01example I'd say like uh strategy
- 11:04Capacity Analysis in that every trading
- 11:07strategy you know has um a minimum and
- 11:10maximum capacity that you can put
- 11:12through it and quants do all sorts of
- 11:15analyses on that capacity to kind of
- 11:17figure out how much they should be
- 11:19allocating to each strategy in their
- 11:21portfolio and and how they should adjust
- 11:23that over time and things like that if
- 11:25you know you're not already in that
- 11:27Community you just might not even have
- 11:30any idea have to be done and and you
- 11:32know there's so many sticking points
- 11:33that you can get stuck on when you're
- 11:35trying to do this on your own yeah you
- 11:37brought up the the fact of um you know
- 11:39there's a lot of secrecy that surrounds
- 11:41this you know a firm does need to be
- 11:45somewhat secretive about their
- 11:47operations though don't they to you know
- 11:50be viable and stay uh in in the game
- 11:53essentially is that the case like that's
- 11:55that level of secrecy is necessary so I
- 11:59I mean if if you make the argument that
- 12:02if assigning secrecy some kind of linear
- 12:04score between Z and 100 and you make the
- 12:06argument that some level of secrecy is
- 12:08necessary I would say yes but where it
- 12:11falls in there is highly dependent on
- 12:14the business model of the firm the you
- 12:17know lots of other factors I
- 12:19mean as an example one of the first
- 12:22things that quantopian did is that we
- 12:23actually open- sourced um pretty much
- 12:26most or all of our code base not all
- 12:29because you know we still had some
- 12:30proprietary code but kind of most of our
- 12:32codebase and I there may have been
- 12:34sometime in the history of the business
- 12:35I'm not sure but there may have been
- 12:37sometime a history of the business in
- 12:38which all of our codebase was open
- 12:39sourced um but we have a GitHub page for
- 12:43those of you who are are technical
- 12:44you'll know what that means for those of
- 12:46you who aren't GitHub is just a
- 12:48basically a a a a service that um
- 12:51companies use to store all their code
- 12:53that they've written and and you can
- 12:55make it open and freely available or or
- 12:57closed in private and we've made uh our
- 13:00back tester code many of our libraries
- 13:03just open and freely available and that
- 13:04that was something we did right off the
- 13:05bat um and the hypothesis was that
- 13:09open-source code you know you can have
- 13:12thousands of eyes on that piece of code
- 13:14and thousands of people looking at that
- 13:15code and finding bugs and making it
- 13:17better um and that's what we observe we
- 13:19have you know I don't even know how many
- 13:21views we've had on the on the zipline
- 13:23which is our back tester our zipline uh
- 13:26codebase and uh as a result you know
- 13:29like four years times you know thousands
- 13:33of eyes looking at that code have
- 13:35produced so many bugs so many bug
- 13:38reports have come out of you know having
- 13:39that thing be freely and available and
- 13:42open and and I just can't imagine that a
- 13:45system that's written internally at a
- 13:47hedge fund and maintained by five
- 13:49Engineers who look at it maybe you know
- 13:50like eight hours a day each um I just
- 13:54can't imagine that that system would be
- 13:57you know in any way bug free because
- 13:59because uh we have found so many bugs
- 14:01and we're still finding bugs in our
- 14:03system you know after 4 years and uh a
- 14:07bank that you know has two years times
- 14:09five Engineers looking at this thing is
- 14:11there's just no comparison yeah and that
- 14:13actually reminds me you know with on the
- 14:16quantopian platform uh users use python
- 14:19as the the programming language uh
- 14:22pandas which is a python Library uh if I
- 14:26understand correctly that actually came
- 14:27was originally developed
- 14:29by a person a man who worked within a
- 14:32hedge fund is that right yeah that's
- 14:34exactly right I believe that's Wes mckin
- 14:36you're talking about if I'm not getting
- 14:38my people confused and uh he was working
- 14:42at a hedge fund and he was saying well
- 14:44Python's great for most of what we have
- 14:46to do but you know there's some there's
- 14:49some key things that are lacking and so
- 14:51he said well why don't we just build
- 14:53those key things that are lacking and
- 14:54these are kind of General basic tools
- 14:56that could benefit everybody and I'm
- 14:58talking like people in finance people in
- 15:00science people in data science all
- 15:02across the field and uh so he built
- 15:05those tools he made it open source and
- 15:08as a result pandas has become this
- 15:10amazingly useful Library amazingly high
- 15:12quality library of code that's in use at
- 15:14so many funds all over the place um but
- 15:18you know it's kind of it's not a zero
- 15:20sum game many people think of it as a
- 15:22zero sum game and and some very specific
- 15:25parts of Finance if you zoom in close
- 15:27enough are a zero sum game but in in
- 15:29many ways it's not a zero sum game and I
- 15:31think that that's kind of the the the
- 15:33the failure um of logic when people try
- 15:37to keep everything super secret all the
- 15:39time with no exception okay and just so
- 15:41there's no confusion here would you mind
- 15:43explaining what a zero sum game is
- 15:46that's a good point so in economics uh
- 15:50specifically kind of game theory which
- 15:52is a branch of Economics which deals
- 15:53with uh what decisions kind of should
- 15:57one make uh if you are trying to
- 16:00optimize some you know utility some
- 16:02objective function you're saying I want
- 16:04the most money or I want the most
- 16:06happiness um and you're trying to say
- 16:08what decisions should you make in the
- 16:09presence of other people also playing
- 16:12the game often you know it's not just
- 16:14you who's making these decisions uh a
- 16:17zero sum game refers to the case in
- 16:19which um you know the amount that you
- 16:23get and the amount that the other person
- 16:25or other players get have to add to the
- 16:27same things so or or have to add to a
- 16:30single quantity so if you get more it
- 16:32means someone else is getting less and
- 16:34vice versa and that's the notion of a
- 16:36zero sum game is that you have to
- 16:37compete um and your competition and your
- 16:40success hurts others and and and your
- 16:41failure benefits others and um that
- 16:46again it's true in some cases but I I
- 16:49really don't think it's nearly as common
- 16:52uh as people think it is and in fact one
- 16:53interesting thing that I could talk for
- 16:55about for hours and and we don't have
- 16:58time to delve into but um many people
- 17:00learn basic Game Theory what know as
- 17:04equilibriums which are kind of optimal
- 17:05strategies to take uh game theory
- 17:07equilibriums in in in school especially
- 17:10if you'll take like kind of intro to
- 17:11economics courses and uh those
- 17:14equilibriums kind of uh in the same way
- 17:16that many physics theorems are proved in
- 17:19vacuums with no friction those
- 17:21equilibriums are often proved
- 17:23mathematically assuming many things and
- 17:26these things include assumptions about
- 17:27like infinite computing power and
- 17:29perfect information um and never seeing
- 17:32this person again ever you know like
- 17:34these are called like single single play
- 17:36games and what computer scientists have
- 17:39done recently they said that that really
- 17:40does not sound like a reasonable set of
- 17:42assumptions to model the real world and
- 17:44so they went back in and they've they've
- 17:46simulated these games in the presence of
- 17:48things like inefficient information
- 17:51transfer and and uh inconsistent
- 17:54geographical distribution of of people
- 17:56and all sorts of you know real world
- 17:58type conditions
- 17:59and what they find is that whereas the
- 18:02you know very uh sanitary um I would
- 18:05argue unrealistic assumptions that are
- 18:07made in the original equilibrium proofs
- 18:09say that you're always better off kind
- 18:11of backstabbing people and you're rarely
- 18:13good collaborating because the risk of
- 18:15someone else backstabbing you is too
- 18:17high uh what's found is that when you re
- 18:20simulate these games in the presence of
- 18:22real world conditions often times the
- 18:24reverse holds true and cooperation and
- 18:26generally being nice tends to be of the
- 18:29optimal strategy in those cases right
- 18:31right
- 18:32okay I again you can tell I'm a little I
- 18:35could rant about this for a while
- 18:37because it it is a it is a sticking
- 18:39point for me that so many people go
- 18:40through these interlevel courses and and
- 18:42graduate into life thinking that you
- 18:44know uh screwing over other people is a
- 18:47is a is the best thing to do okay no
- 18:50that's excellent now just to pick up on
- 18:53something you bought up earlier uh the
- 18:55$250 million from uh investment from
- 18:59Steve Cohen at uh 72 um what does this
- 19:02mean for users like how is this actually
- 19:04going to change what's been happening
- 19:06sort of to date and moving forward once
- 19:09this um investment sort of comes into
- 19:12play sure so I mean when we talk about
- 19:16um anything to do with allocation I just
- 19:18have to be you know a little careful to
- 19:20to make sure I don't say anything
- 19:22inaccurate cuz you know we now have to
- 19:25start uh preparing to to make sure that
- 19:27we're uh SEC compliant um and you know
- 19:32they they monitor any statements you
- 19:34will make about you know Investments and
- 19:37and in general also I like to be
- 19:38accurate about these things but
- 19:40specifically what this meant what this
- 19:42means is that um point72 has agreed to
- 19:47make available to strategies on
- 19:50quantopian up to $250 million and that's
- 19:53going to be released uh over the course
- 19:55of a year uh and there are certain you
- 19:57know performance con straints that are
- 19:59going to be have to be satisfied um of
- 20:02the strategies that that are picked uh
- 20:04you know so it's not just like uh $250
- 20:06million cash is getting delivered to
- 20:08anybody here um it's you know it's a
- 20:11it's a well-reasoned deal and uh what
- 20:14that means though is that uh
- 20:16previously um any allocations we were
- 20:19able to make to the strategies that we
- 20:21liked in the community tended to be very
- 20:24small um and they were basically kind of
- 20:26test allocations that we made off of our
- 20:29balance sheet and uh now what we can
- 20:32finally do is start ramping up the size
- 20:35of allocations and uh our goal is just
- 20:38to ramp the size of the allocations up
- 20:41higher and higher uh until the
- 20:43portfolios that are being managed um by
- 20:46algorithms on quantopian are kind of you
- 20:49know as big as the portfolios that you
- 20:51would see at large financial
- 20:53institutions and and therefore the
- 20:54people who wrote those algorithms can
- 20:57get paid on the same scale as people at
- 21:00the large financial institutions uh and
- 21:02again all of this is contingent on the
- 21:04strategy itself performing and
- 21:07quantopian being able to secure um you
- 21:10know uh Capital to allocate out to
- 21:12algorithms but that's that's our goal
- 21:15yeah now that's really excellent I mean
- 21:17um it's a huge win for you guys and
- 21:19obviously uh users of the platform too
- 21:21so no that's very cool um now let's
- 21:24let's get into this so you know this is
- 21:26going to be the first episode of about
- 21:28six we're going to be doing another four
- 21:30episodes after this and then a Q&A uh at
- 21:33the end um what's the overarching theme
- 21:36of this series obviously I've given a
- 21:38quick summary in the pre-recorded intro
- 21:41for this episode but let's hear your
- 21:43take on what someone can expect to learn
- 21:44from listening to this series sure so
- 21:48like I said I think what we're trying to
- 21:50do here is we're trying to give more
- 21:52windows into the workflow of a
- 21:55professional Quant or a professional
- 21:57quantitative Finance firm and this is
- 22:01some of this is really complicated stuff
- 22:03you know I'm not going to sugarcoat it
- 22:04some of this is is really hard stuff and
- 22:07you know you shouldn't expect to listen
- 22:09to a podcast and then you know come out
- 22:11being able to uh do some kind of
- 22:15multivariate portfolio optimization
- 22:17analysis but um the goal is to kind of
- 22:21give you some some some holding points
- 22:24give you some points some some skeleton
- 22:27such that uh if you're interested in
- 22:29learning more um you kind of see some of
- 22:33the paths that you can take and and
- 22:35point you to resources that you can use
- 22:37to to start fleshing out your knowledge
- 22:38of the system so again like the goal is
- 22:41to going to be to give you like a a
- 22:43broad understanding of the lay of the
- 22:45land uh and and how quants work and how
- 22:47they're different from other Traders and
- 22:50uh you know what they do and what they
- 22:52don't do and what they worry about at
- 22:53night um but you know not necessarily to
- 22:56be able to execute on any of the tech
- 22:58techniques that Quant quants use because
- 23:00honestly that just requires more time to
- 23:02learn and more hands-on experience um
- 23:05one thing I will say just right off the
- 23:07bat is uh quantopian again maintains
- 23:10this lecture series uh as a resource in
- 23:13addition to tutorials and if you go to
- 23:15quantopian dcom
- 23:18sln uh SL learn will get you to a page
- 23:21when you can see tutorials if you just
- 23:23want to learn like how to get started on
- 23:25the platform and also it will have a
- 23:27link to the lecture series
- 23:29um where you can kind of get at more of
- 23:31this stuff in a in a in a much more
- 23:33Hands-On way and actually play with the
- 23:35code and see what happens in addition
- 23:37we're also try to set up uh some uh uh a
- 23:41post on our blog uh so that we can kind
- 23:44of uh collect any of the resources and
- 23:46links that we talk about in these
- 23:48podcasts and and make there be kind of a
- 23:49a single source for people who want to
- 23:52just go there and look at it all at once
- 23:54but that's something we'll we'll be
- 23:55setting up um at some point and
- 23:57depending on the magic of of of free
- 23:59recording it may or may not be available
- 24:01at the time you're listening to this
- 24:03podcast yeah we'll definitely sort
- 24:05something out in that regard but anyway
- 24:07the title of this episode being the
- 24:09first episode is you don't know how
- 24:13wrong you are do you want to explain why
- 24:16we've why we've titled it this well I
- 24:18mostly because you don't know how wrong
- 24:20you are as The Listener um and uh what I
- 24:24mean by that is one of the main
- 24:27differences I would say between a
- 24:30non-statistical and a statistical
- 24:33framework for thinking about the world
- 24:35is that a lot of Statistics is an effort
- 24:38to quantify certainty and quantify
- 24:43uncertainty and say more so than make
- 24:46this choice or don't make this Choice
- 24:49really look at like the distribution of
- 24:51outcomes um that you could have after
- 24:53making a choice or not making a choice
- 24:56uh and and and try to estimate hey how
- 24:59certain am I that this choice is the
- 25:01right one and how how uncertain am I
- 25:04about you know these choices that I'm
- 25:06making in general and one of the things
- 25:09that you know I I find pops up quite
- 25:12consistently uh especially when I talk
- 25:14to people who aren't from a quantitative
- 25:16background or kind of came from a
- 25:18non-quantitative background and
- 25:19transitioned into trying to do more
- 25:21Quant stuff is that something that you
- 25:23learn when you go through a kind of a a
- 25:26classic statistics education either
- 25:28undergrad or graduate program is you
- 25:30learn a lot of these biases and a lot of
- 25:32these things that can come back and and
- 25:34bite you and and and just be completely
- 25:36invisible if you don't know about them
- 25:39and um one of the one of the examples of
- 25:42this that I I'll just go over briefly to
- 25:44start is something called multiple
- 25:47comparisons bias and multiple
- 25:49comparisons bias refers to uh you know
- 25:53it's a fancy name it sounds complicated
- 25:55but it refers to something that's pretty
- 25:57simple and kind of core and in fact I
- 26:00think everybody is vulnerable to this
- 26:02like even you making your your life
- 26:04choices you know about in general
- 26:05regardless of what you're doing on a
- 26:07computer with Finance or vulnerable to
- 26:08this and what multiple comparisons bias
- 26:11means is the following so when you are
- 26:14looking at some event or some piece of
- 26:17data and you're trying to decide you
- 26:19know whether some other thing is true
- 26:22whether this data is significant whether
- 26:24it reflects some overall trend you know
- 26:27you you do some kind of test and that
- 26:30test might be a rigorous statistical
- 26:32test that you do on your computer uh
- 26:35that test might be something just inside
- 26:36your head that you just say yeah I think
- 26:39this is significant you know it could be
- 26:41either uh it could be you know you get
- 26:43in a bunch you get into a room a bunch
- 26:45of people talk about it and then you all
- 26:46end up voting you know these are all
- 26:49processes that transform that data into
- 26:53a yes no
- 26:55decision and whenever you have a test
- 26:58like this if you make uh you know each
- 27:02test is not perfect so there's a chance
- 27:05that you get the wrong answer right and
- 27:08so let's say let's look at the case in
- 27:10which um you know you're looking for
- 27:13examples of when to trade and you're
- 27:15your your your data is flowing in and
- 27:17you're looking for examples of when you
- 27:19should pull the trigger and actually
- 27:21place a position and uh every time you
- 27:24look at that data you're making a test
- 27:26you're saying you know should I trade or
- 27:28should I not trade and there's a chance
- 27:31that there's a false positive right
- 27:33there's a chance that your test misfires
- 27:36and says yes you should trade when
- 27:38really you shouldn't trade and there was
- 27:40something maybe the data just popped up
- 27:42happened to look like the pattern you
- 27:43were looking for um you know you don't
- 27:46know something happened that caused it
- 27:47to to be a false positive
- 27:50and because your test is imperfect the
- 27:54rate of false positives is not going to
- 27:55be zero you know you're going to get
- 27:57some percentage of false positives and
- 28:01as you make more and more tests the
- 28:04overall number of false positives that
- 28:07you should expect to get gets higher and
- 28:09what I mean by this is let's say that
- 28:11the chance in every test that you get
- 28:13you get it wrong is is is 5% let's say
- 28:15the chance that you get a false positive
- 28:17is 5% well if you run 1,000 tests you
- 28:23know and that's not too unreasonable you
- 28:24make you make thousands of decisions
- 28:26every day in your regular life if you
- 28:28you run 1,000 tests you should expect to
- 28:30be
- 28:32wrong 50 of those times cuz 5% of 1,000
- 28:36is 50 and you should expect 50 false
- 28:39positives to pop up from a body of 1,000
- 28:42tests um and the danger is let's say
- 28:46that you know you you look at a thousand
- 28:49different choices and you run your test
- 28:51on each you will get 50 choices that
- 28:55look good just place just based on
- 28:57random chance you know and some of them
- 28:59may be good and some of them may not be
- 29:01good but you know you don't know there's
- 29:03no way to distinguish between them just
- 29:04from the data you already have so that's
- 29:06that's an example of a bias that a lot
- 29:09of people just don't even think about
- 29:11when they're going through their lives
- 29:12when they're trading whatever they're
- 29:14doing but is really core to how a
- 29:17statistician thinks about the world and
- 29:19and is an example I think of um you know
- 29:22people just not knowing how wrong they
- 29:24might be when they make decisions right
- 29:27so first thing want to ask you based off
- 29:29of that is what is a false positive
- 29:32maybe if you could just explain that for
- 29:34anyone listening who might be unsure
- 29:36yeah so I think a lot of the language in
- 29:38in modern statistics came from how it
- 29:40was developed and and statistics was
- 29:43developed uh you know there's a few
- 29:45major uses when it originally started
- 29:47you know getting off the ground and one
- 29:48of those was kind of medical uh you
- 29:51that's a natural source of of you want
- 29:53to gather data about how sick people are
- 29:55and when they get sick and uh let's say
- 29:57you're testing for for a disease um well
- 30:00you say someone is positive or negative
- 30:02for a disease right let's say you're
- 30:03testing someone for the common cold and
- 30:05you you have some test which is based on
- 30:08the symptoms you see and you you write
- 30:10the symptoms down and the computer you
- 30:12know says here's a score and if the
- 30:13score is above something you say yes
- 30:15they have a cold if it's below something
- 30:16you say no they don't so you know very
- 30:18common workflow so in that case a false
- 30:21positive would be when your test says
- 30:25yes they have a cold but they don't
- 30:28actually have a cold and the test saying
- 30:32yes was based on the data randomly
- 30:35lining up in such a way that it looked
- 30:39like they had a cold when actually they
- 30:41didn't uh and this can happen
- 30:43equivalently if you're saying um I'm
- 30:46going to test to see if two stocks um
- 30:50move in the same way if they're
- 30:52correlated you know and if you look at
- 30:54many many pairs of stocks and try to say
- 30:57are you know give me some pairs that
- 30:59move in the same way so I can try to
- 31:01trade off of them um you're likely to
- 31:04come up with some pairs that just have
- 31:08happened to move similarly in the past
- 31:11but that's not really indicative of any
- 31:13relationship and it's because the data
- 31:15just happened to kind of line up in that
- 31:17in in that way does that make sense it
- 31:20does yeah so I mean just going back to
- 31:22that um that example you gave there of
- 31:24the stocks I think that's a really good
- 31:25one so you know you said it it just so
- 31:29happened that the data happened to line
- 31:31up and these two stocks appeared that
- 31:33they were correlated I mean why were
- 31:36they not correlated why was it a matter
- 31:39of a matter of fact that the data just
- 31:41happened to
- 31:43be that way so that it looked correlated
- 31:46why were they not actually correlated
- 31:48does that make sense yeah absolutely and
- 31:50I will say that as we talk about this if
- 31:52anybody is interested in kind of seeing
- 31:55this in a more rigorous setting we have
- 31:57a a lecture called Paris trading in the
- 32:00lecture series and and that Paris
- 32:02trading lecture actually deals with a
- 32:03situation that's pretty similar to this
- 32:05so if you want to actually muck around
- 32:07with real examples of this and and and
- 32:09see this all laid out in front of you um
- 32:11check out that lecture but we'll talk
- 32:13we'll start with a super simple example
- 32:15right let's say that you represent
- 32:17stocks as up or down right you you don't
- 32:20actually care about the magnitude of the
- 32:22returns but you just have you have up or
- 32:24down at each minute or day whatever you
- 32:27want to whatever your sample frequency
- 32:30is right um and so let's say that you're
- 32:32looking at stocks and you have uh one
- 32:36minute worth of data so again super
- 32:38simple example but you know we'll we'll
- 32:41we'll blow out from here and hopefully
- 32:42it should become like apparent um how
- 32:45this works but let's say you have one
- 32:47minute's worth of data and stocks can go
- 32:49up or down and you're looking at two
- 32:51stocks right what's the chance that they
- 32:55both end up moving in the same direction
- 33:01and it's it's it's not a trick question
- 33:03I mean the answer is if they can one can
- 33:05so if one can go up and if one can go
- 33:07down uh then it's a 50% chance that they
- 33:10line up and and you can kind of you can
- 33:12you can do out the probabilities on a
- 33:14piece of paper if you want to convince
- 33:15yourself of this but it's basically the
- 33:17same as flipping two coins and saying
- 33:19what's the chance that they both come up
- 33:21the same you know not that they both
- 33:23come up heads but what's the chance that
- 33:25they both come up the same and so
- 33:28once you have that you know fixed
- 33:30non-zero probability well let's say now
- 33:32you have two time points you know and
- 33:35then you say what's the chance that both
- 33:38stocks ended up um you know going in the
- 33:41same exactly the same over those two
- 33:43time points and it's some probability
- 33:45know you can work it out and then three
- 33:47time points and and four time points and
- 33:49you extend it all out and so now it's
- 33:50like to 100 time points right so you
- 33:53have 100 time points and you're
- 33:54representing the stocks is just up or
- 33:56down the chance that you know they're
- 34:01both have going to they're both have
- 34:02going to done the exact same thing and
- 34:04all of those time points is is minuscule
- 34:08right and so if you looked at two stocks
- 34:11and you said wow they have been exactly
- 34:15the same over the last 100
- 34:17samples what a statistical test is
- 34:19really getting at is like what is the
- 34:21likelihood that I would have observed
- 34:24this Behavior if they were if there's no
- 34:27underlying
- 34:28relationship and and the likelihood is
- 34:30super low if if they're just moving
- 34:32randomly the chance that they would have
- 34:34lined up over 100 time points super low
- 34:37so in practice though you know they're
- 34:40not just moving up or down and there's
- 34:42going to be some noise right and so what
- 34:45you do is you look at the two movements
- 34:47and you say how similar are they right
- 34:51it's not just exact or not exact it's
- 34:54like you know how many of how much of
- 34:56the time do they both move up how much
- 34:57of the time do they both move down and
- 34:59so the probability that two stocks line
- 35:02up in a way that's like enough to pass
- 35:05your test starts increasing it's not
- 35:09like you know something minuscule
- 35:11anymore now it's let's say you know it's
- 35:13it's uh it's 1% that the chance over 100
- 35:16time points they move similarly enough
- 35:19so that they pass your test and so again
- 35:22now we're at this point where it's 1%
- 35:24and there's a 1% chance of a false
- 35:27positive in which you have two random
- 35:29stocks but they have happened to move
- 35:31similarly enough over the last 100 time
- 35:34points that they pass your test of being
- 35:36related even though they're not related
- 35:39and so if you do a 100 different tests
- 35:42on different pairs of stocks you should
- 35:44expect to get one that pops out one pair
- 35:49because you should expect 1% of those
- 35:51tests to have false
- 35:53positives so does that make sense and
- 35:55how like basically what you're looking
- 35:57at is the false positive rate is the
- 36:00rate at which two random things can line
- 36:03up enough to pass your test but in
- 36:07incorrectly and and different tests have
- 36:09different false positive rates and in
- 36:11statistics one of the really nice things
- 36:14is that you can calibrate the false
- 36:17positive rates and you can kind of test
- 36:18what they are and you can know about
- 36:20them and one of the problems is is that
- 36:22if you're just making these decisions in
- 36:23your head or in some other method it's
- 36:26pretty much imposs possible not
- 36:28impossible but it's pretty close to
- 36:29impossible to really effectively
- 36:32calibrate those decisions and know what
- 36:35your false positive rate is okay so it
- 36:39really kind of comes back to the
- 36:42underlying relationship and there
- 36:43actually been some meaning as to why
- 36:45those two stocks should be correlated or
- 36:48shouldn't be correlated right yeah so I
- 36:51mean statistics is really about testing
- 36:53for relationships in your data and and
- 36:57deciding like what is the certainty I
- 36:59have that this relationship is real or
- 37:02that it's just kind of nonsense and
- 37:05again like two things can line up so
- 37:09that they look like they're related and
- 37:11they're actually not and that happens
- 37:13all the time you know all the time and a
- 37:15famous example of this is uh I forget
- 37:18which website does this but if you kind
- 37:20of Google weird correlations um you will
- 37:24find I think if if I'm if I'm remember
- 37:27incorrect L uh you'll find websites
- 37:31um that show you correlations on
- 37:35historical data and so I just pulled one
- 37:37up and uh this website is called uh
- 37:40spous spous is the statistics word for
- 37:43kind of like not really meaningful spous
- 37:46correlations and uh this this they give
- 37:49you a random correlation and so the
- 37:51random correlation they give you is if
- 37:53you look at the last uh 10 years in the
- 37:56US the
- 37:58and you sample us or sorry if you yeah
- 38:02let's look at the last 10 years in the
- 38:03US and if you look at the number of
- 38:05people who drowned falling into a pool
- 38:08and if you look at uh the number of
- 38:11films that Nicholas Cage appeared in
- 38:14they line up pretty
- 38:17closely like pretty closely right and
- 38:20you'd look at this You' be like oh my
- 38:21goodness there's a there's likely a
- 38:24relationship there that I I should look
- 38:26into this um but of course what's
- 38:28happening is just that there's just so
- 38:29many things so many things you can keep
- 38:32track of that over that Incredible
- 38:34Universe of things the chance that two
- 38:37of them don't happen to line up over
- 38:39some time period is super low so what
- 38:42they're doing is they're just saying
- 38:44because there's so many possible
- 38:46relationships there's so many things I
- 38:48track there's so many possible
- 38:49relationships I just have to look at
- 38:51like a a thousand relationships and one
- 38:54will pop up that looks pretty close um
- 38:58and and that's this notion of kind of
- 38:59multiple comparisons bias right no
- 39:02that's that's awesome I think you've
- 39:03done a really good job of explaining
- 39:05this Delaney um I appreciate you you
- 39:07know really fleshing this out so
- 39:09sticking in line with the theme of this
- 39:11episode you don't know how wrong you are
- 39:13let's go into some of the other biases
- 39:16let's let's talk about overfitting what
- 39:18is overfitting and maybe let's talk
- 39:20about some best practices for how to
- 39:23avoid
- 39:25overfitting sure so uh again if people
- 39:28want to like muck around with this more
- 39:30there's a there's a full lecture in the
- 39:32quantopian lecture series on on
- 39:33overfitting and again you can get to the
- 39:35lecture series if you to quantopian dcom
- 39:37learn or directly if you wanted by
- 39:39quantopian dcom lectures and overfitting
- 39:43at its core I would say is actually kind
- 39:46of one of the biggest problems that
- 39:48people deal with in finance and what it
- 39:50is
- 39:52is um it's it's similar to multiple
- 39:55comparisons bias so like kind of try to
- 39:57keep the same same kind of ideas
- 40:00floating around in your head if you can
- 40:02um but the idea is that if you look at
- 40:05some set of data you know and again you
- 40:08you're making decisions you're looking
- 40:10at some set of data some of that data is
- 40:12going to be you know if it's the right
- 40:14data set some of that data is going to
- 40:16be like useful data you can make
- 40:18decisions off of it it's related to the
- 40:20thing that you're trying to predict um
- 40:22and then some of that data is just going
- 40:24to be random noise you know and and as
- 40:26an example of this this let's say that
- 40:28you're trying to model uh temperature
- 40:32you know and temperature in some
- 40:34neighborhood and you have a data set and
- 40:36the data set is the temperatures of all
- 40:39the surrounding neighborhoods you know
- 40:41as measured by by the the the the
- 40:44thermometers in in the surrounding
- 40:45neighborhoods you just don't have a
- 40:47thermometer in this neighborhood um and
- 40:49then also uh the number of pop songs
- 40:53that were played on a local radio
- 40:54station that day you know like one of
- 40:57those is unrelated and it's it's just
- 41:00noise it's it's Pure Noise there's it's
- 41:02not related to the outcome in any way
- 41:05and um what overfitting is is when you
- 41:08make a model that fits really really
- 41:12well to the data set you have in fact so
- 41:16well that it's also fitting to that
- 41:19noise in addition to the real signal
- 41:22that relies under underneath and um it's
- 41:25a little tricky to kind of get a get an
- 41:28exact sense of this without seeing an
- 41:29example so again for people who are
- 41:31familiar I recommend just looking up
- 41:32overfitting and there's a bajillion
- 41:34examples of it again like I said the
- 41:35lecture Series has examples of it but
- 41:37the idea is that you know you construct
- 41:41a model which has 100% predictive
- 41:43accuracy over that historical data set
- 41:47you're looking at and if it has 100%
- 41:49accuracy it has to take into account you
- 41:52know the noise that's coming from uh you
- 41:56know your data not being perfect and if
- 41:59it's able to take an imperfect data set
- 42:02and create and and have a perfect
- 42:05prediction then if you take that going
- 42:09forward it's going to be too finely
- 42:11tuned in to all the little noise and and
- 42:14and and little things that popped up
- 42:16right and um so you could as an example
- 42:22if you're making a back test right what
- 42:25you could do is you could say uh I have
- 42:27a back test I have a trading strategy
- 42:29and I want to be not vulnerable to
- 42:32another Financial collapse like happened
- 42:34like the one that happened in 2008 and
- 42:37so what I'll do and and this is actually
- 42:39where multiple comparisons bias can come
- 42:41in here what I'll do is I'll look for
- 42:44signals that seemed to match with you
- 42:47know the collapse happening in 2008 so
- 42:50what you do is you say okay well two in
- 42:532008 I noticed that uh you know housing
- 42:57uh housing growth followed this pattern
- 43:00I noticed that the LA Dodgers had run
- 43:03had won and lost in this pattern and I
- 43:05noticed that the temperature in
- 43:07Sacramento followed this pattern so my
- 43:09model for avoiding the next financial
- 43:11crisis is going to take those three
- 43:13variables and look and and say if at any
- 43:16point these three variables line up with
- 43:17what happened in 2008 I'm going to move
- 43:20to cash right and that's a particularly
- 43:23ludicrous example but you know when you
- 43:26start saying okay okay well I'm going to
- 43:27look at the movements of Apple in 2008
- 43:32I'm going to look at um you know uh JP
- 43:36Morgan's stock price which probably is
- 43:38related to 2008 Apple maybe not as sure
- 43:41and I'm going to look at the movements
- 43:44of uh you know Pepsi colola in 2008 is
- 43:48that related I mean maybe I don't know
- 43:50what you can start doing is just looking
- 43:52for these incredibly specific patterns
- 43:54that have no bearing on what's going to
- 43:56happen into the future fure and and
- 43:57you've become overfit to this historical
- 44:00data and it's it's amazing how easy it
- 44:03is to do that and how subtle it is to
- 44:05you know to to to to detect and um it's
- 44:09actually one of the biggest problems
- 44:10that we have to deal with at quantopian
- 44:14every day because we have to
- 44:15differentiate between algorithms who
- 44:17look really good historically because
- 44:19they're overfit and algorithms who look
- 44:21really good historically because they're
- 44:22going to keep performing well into the
- 44:25future so how do you different iate
- 44:27between the two like what are some of
- 44:29the things you do to get around this
- 44:32issue so really kind of like there's
- 44:35there's two main things you can do and
- 44:37and and the the first and foremost and
- 44:39it's really like the gold standard for
- 44:40avoiding overfitting is something known
- 44:43as out of sample testing and again now
- 44:46you know we can go as deep into the
- 44:47weeds with this as we want um I don't
- 44:51want to necessarily kind of bore or
- 44:52scare people who who haven't done much
- 44:55with the statistics in the past but what
- 44:57the idea of out of sample testing
- 44:59is you do is you develop your model and
- 45:02you do all of your model development and
- 45:04your strategy development on one data
- 45:06set but you've saved some of the data
- 45:08you you haven't run out of data you've
- 45:10taken some of the data and you just
- 45:11haven't looked at it at all and I mean
- 45:13that like you haven't even explored it
- 45:14you haven't poked around it you've just
- 45:15cut it off you've taken your Excel file
- 45:18you've cut it off under a certain number
- 45:19of rows you've taken that you've put it
- 45:21into a safe and then what you do is once
- 45:24you're done your strategy testing um
- 45:27sorry your strategy training as you call
- 45:28it we call it training and then testing
- 45:30you've got your you you like you're
- 45:32training your strategy on the on the on
- 45:34the ins sample data that you that you
- 45:36use and then once you've done that you
- 45:39say okay
- 45:41now I I think it works really well on
- 45:44this data set but I want to test whether
- 45:48it's just fit to noise in the data set
- 45:50or whether these are like real patterns
- 45:52I found that will continue forward into
- 45:54the future and so what you do then is
- 45:56you say I run this I run my model on the
- 45:59testing data set which you haven't
- 46:00looked at at all and it hasn't been used
- 46:03in the construction of your model um and
- 46:06because it hasn't been used in the
- 46:07construction of your model your model
- 46:09cannot be you know overfit to the random
- 46:12noise that occurs in the testing data
- 46:14set and so its performance over the
- 46:15testing data set is usually far more
- 46:18indicative of the quality of your model
- 46:21than the performance over the training
- 46:22data set um but the problem is that you
- 46:25only have a finite number of tests and
- 46:27rarely is just your model working the
- 46:28first pass so generally you'll have to
- 46:30like save several out of sample testing
- 46:33segments from your data or wait for new
- 46:35data to be collected as time goes by or
- 46:38something like that okay so what's a
- 46:41good ratio to have of ins sample and out
- 46:45of sample data like if you have a you
- 46:47know let's say 10 years worth of
- 46:49minutely data for the Spy how would you
- 46:52segment that data into in and out of
- 46:55sample sure so
- 46:57so I mean again we're getting into
- 47:00things which are very well studied in
- 47:03statistics and you know I I may miss you
- 47:07know crucial papers and you know I we if
- 47:10if you're if you're a statistician and I
- 47:13say something right now that's just
- 47:14completely wrong or completely misses a
- 47:16key a key paper please angrily write to
- 47:18me because I want to know but but not
- 47:20too angrily um how I would approach this
- 47:24is uh basically the following I mean
- 47:27this is where it kind of gets into more
- 47:29of an art than a science to an extent
- 47:32but generally some people like doing
- 47:35like 910 as a split um one thing you
- 47:39have to be careful about is that with
- 47:42Market data uh things change over time
- 47:45that's known as nonstationarity if
- 47:47things change over time and so if you're
- 47:50developing a model on you know 20 2000
- 47:53to 2009 and then you're saving 2009 to
- 47:562010 as you're out of sample test well
- 47:592009 to 2010 may just have completely
- 48:01different behavioral characteristics
- 48:04than the 9 years prior and so it may not
- 48:07be like a great test of your model that
- 48:11you know that's just something to
- 48:12consider um and so doing things like
- 48:14rather than splitting across time
- 48:17sometimes it can be better to split
- 48:18across say you know tradable assets and
- 48:21just take a bunch of your tradable
- 48:23assets uh and and move them into your
- 48:25your out of sample test superi uh out of
- 48:28sample test uh set so that's one way to
- 48:32that's one way to handle it um again in
- 48:34practice there's there's lots of
- 48:36resources for this online if you just
- 48:38look up out of sample testing you can
- 48:40get comp I mean like there's lots of
- 48:42people who like do things like uh cross
- 48:45validation some people do this thing
- 48:46called Jack knifing some people do
- 48:48things like bootstrapping unlimited data
- 48:51sets lots of different crazy things you
- 48:53can do um but at its core the concept
- 48:56that really want to get across is just
- 48:58this idea that uh you know you need to
- 49:01take some of this data and and not touch
- 49:04it until you're done developing your
- 49:06model and the other thing that's
- 49:08dangerous is that let's say that you are
- 49:10developing some model and you follow
- 49:12this procedure really well and you
- 49:14develop the model and then uh you know
- 49:17you you save 10% of your data and you go
- 49:21ahead and you you test uh your model on
- 49:23the other 10% of your data and it
- 49:24doesn't work so you give up okay you
- 49:26come come back two months later you have
- 49:27a new idea so you develop your model in
- 49:29the first nine years and then you test
- 49:31it on the next
- 49:33year and it doesn't work okay you do
- 49:36this like 10 times right well now we're
- 49:39starting to get into multiple comparison
- 49:41bias territory in which if you try
- 49:44enough ideas one of them will get past
- 49:48the the out of sample test purely based
- 49:50on random chance you know it's it's just
- 49:53there there's some chance it gets
- 49:54through so it's it's it's just important
- 49:58to realize that these these biases kind
- 50:01of pervade in many different directions
- 50:03and it's hard to account for all the
- 50:05different directions that they pervade
- 50:07and you can pretty much never completely
- 50:10avoid these biases you can just minimize
- 50:13the chance that you run into them okay I
- 50:15like how you brought up the point about
- 50:17you know different sets of data
- 50:20non-stationarity is that what you mean
- 50:22yeah yeah yeah how there's different
- 50:24market conditions you know so if you
- 50:25have a strategy that you've tested from
- 50:272009 to 2000 uh 2000 to 2009 um and then
- 50:31you run it on 2010 might be very
- 50:33different market conditions in 2010 so
- 50:35it's not a fair test I really liked that
- 50:37point uh that you bought up just moving
- 50:40on now to another type of bias and
- 50:42that's uh survivability bias um take us
- 50:45through that what does this refer to and
- 50:47what measures can a Trader take to
- 50:49eliminate
- 50:50this so again I I'll just pick on that
- 50:53language point of eliminate because like
- 50:55you know basically Al just just to to to
- 50:58drive this point home you you can't
- 51:00eliminate these biases they are they are
- 51:03kind of things that are always there in
- 51:05some quantity and and your your best bet
- 51:08is just to try to reduce that quantity
- 51:10as much as possible um with
- 51:13survivability bias survivability bias is
- 51:16the notion that uh let's start with a
- 51:19simple example let's say that you have
- 51:21uh 1,000 coins okay and you flip all of
- 51:27those coins once you go down in a row
- 51:28and you flip the first one and the
- 51:29second one and the third one the fourth
- 51:31one Etc and then when you you've gotten
- 51:32through flipping them all you step back
- 51:34and you say okay how many how many heads
- 51:38did I get and uh well the answer is that
- 51:41if they're Fair coins um and you your
- 51:44your flip is a fair flip uh you should
- 51:46get about 500 heads right so you you say
- 51:50okay I'm going to get rid of all the
- 51:52Tails just knock them out knock them out
- 51:54my set okay now I have 500 coins left
- 51:56and you go down and do everything again
- 51:57you flip them all and you get left with
- 52:00250 heads and you knock out all the tals
- 52:03and you just repeat this process well it
- 52:05turns out that there is a kind of a
- 52:08Decay uh of how many heads you should
- 52:11expect after a certain number of of
- 52:14flipping processes and
- 52:17so um survivability bias refers to the
- 52:20fact that uh if you look at one of these
- 52:24coins you know and and you say oh wow
- 52:27this coin has gotten 10 heads in a row
- 52:29well you might not be looking at all the
- 52:32coins that didn't get 10 heads in a row
- 52:35and are just never coming across your
- 52:37radar because of that so let's take this
- 52:39analogy and let's put it into Traders
- 52:42right let's say that you start with a
- 52:44population of 1,000 Traders and they're
- 52:47all making trades and let's say that
- 52:49they're all making random trades there's
- 52:52literally no skill in this population of
- 52:54Traders um well after one year you know
- 52:58there's some chance that you were you
- 53:00were up or you were down and let's say
- 53:02it's 50/50 because kind of these Traders
- 53:04either place largely up bets or largely
- 53:06down Bets with a lot of Leverage and so
- 53:08the traders that you know got the market
- 53:11wrong they're all going to have lost all
- 53:12their money and they're going to be out
- 53:13of the business you know they're not
- 53:15going to be posting on the trading
- 53:16forums there's not going to be any news
- 53:18articles written about them you know and
- 53:21then you go for two years you go for
- 53:23three years you go for four years well
- 53:25there's still going to be a few left you
- 53:27know it's not going to be a ton there's
- 53:28still going to be a few left who just
- 53:30based on random chance have gotten it
- 53:33right every year and made tons of money
- 53:36and generally these are the people you
- 53:38hear about these are the people and
- 53:40again I'm not saying that everybody you
- 53:42hear about is unskilled and just lucky
- 53:45I'm saying that you it's hard to
- 53:46distinguish it's really hard to
- 53:48distinguish because you hear about
- 53:49someone and they say this person has
- 53:51gotten 70% per year for the last 3 years
- 53:55well what about all the people who did
- 53:56didn't get 70% per year for the last 3
- 53:58years and and and dropped out of the
- 53:59running and aren't on TV right now so
- 54:02survivability bias is this is this kind
- 54:04of very pervasive notion in finance that
- 54:06whenever you're looking at performance
- 54:08results uh it can be really hard to tell
- 54:12if they're based on luck or or they're
- 54:14based on something real and actually out
- 54:17of sample testing is one way to try to
- 54:20get at that you say okay well I don't
- 54:22know if this is based on luck so let's
- 54:24test it going forward
- 54:26uh for another you know year and see you
- 54:29know if this guy can make mostly right
- 54:31trades you know that that's that's one
- 54:33of the ways you can try to get at it
- 54:35okay excellent answer and just moving on
- 54:38to the fourth bias which um I'd like to
- 54:41cover and that's uh data cleaning bias
- 54:44what do we need to know about this one
- 54:46so I mean this is this is a fun one in
- 54:49finance and and other people may call it
- 54:51something other than than data cleaning
- 54:53bias um that's just what I call it uh so
- 54:56when you are using data to set up some
- 54:59kind of trading system you know and I'm
- 55:01sure many of your users get data from
- 55:03many different places right uh some of
- 55:06your users may just get kind of daily
- 55:08data that they they scrape off of Yahoo
- 55:10some of your users may get uh they
- 55:13purchase data from some data vendor uh
- 55:16whatever you know it comes from all over
- 55:18the place uh and I think I might have
- 55:20just said user rather than listener
- 55:21which just shows you how in How Deeply
- 55:24deeply dug into the uh the startup
- 55:26culture I am here um but uh but uh so
- 55:31the idea is when you buy that
- 55:33data often times in fact I would I would
- 55:37say I don't know I don't have statistics
- 55:39on this so I'll just say oftentimes uh
- 55:41that data will have Corrections baked
- 55:44into the data and what I mean by this is
- 55:47let's say that you know your data
- 55:50provider uh comes out and they says they
- 55:53say uh the price of Apple
- 55:56today is $1 trillion per share you know
- 56:01and you know you as a human say hm I
- 56:04don't know about that one uh but you
- 56:06know an algorithm that's making
- 56:08decisions uh may say oh my God this is
- 56:11the greatest short opportunity of all
- 56:14time right and uh so you you this this
- 56:18data says apple is $1 trillion per share
- 56:22and then they come out the next day and
- 56:25they say
- 56:27uh the price of Apple today is $101 per
- 56:31share and we have issued a correction
- 56:34for yesterday uh the price yesterday was
- 56:37actually $100 per share and someone put
- 56:40their finger at the zero key too many
- 56:41times or something you know
- 56:44so that's a correction and the data that
- 56:48you look at most times that you get from
- 56:50data vendors has had this pre- cleaning
- 56:53done to it they've gone back and they've
- 56:55wiped out the cases in which they were
- 56:57wrong live and so when you are testing a
- 57:01strategy on this data that you get from
- 57:04your data vendor you will not have any
- 57:08of these bad things happen in the back
- 57:11test of your strategy you won't be able
- 57:13to say oh how does my strategy do if my
- 57:17data vendor just gives me a completely
- 57:19wrong piece of information you know is
- 57:20it robust to that and so you may have
- 57:23these inflated performance numbers B
- 57:26based on your data that you're back
- 57:27testing on being higher quality than the
- 57:30data that you're actually going to get
- 57:32in a live feed from the data vendor um
- 57:35and you know this is kind of one of
- 57:37those catastrophic scenarios often where
- 57:40uh an algorithm could be vulnerable in
- 57:42some weird way to um you know some some
- 57:45weird extreme piece of data coming down
- 57:48the wire and you know you could like
- 57:50make some really horrific trade and and
- 57:52end up having to lose a lot of money uh
- 57:54you know but but this is just something
- 57:56something that you will not notice
- 57:57necessarily unless the data that you're
- 58:00using has kind of a a representative
- 58:02amount of dirt in it compared to what
- 58:04you'd get normally okay so why do these
- 58:07bad prices or these bad prints occur
- 58:10like what triggers
- 58:11that it it can really be anything I mean
- 58:15I don't know if you've ever used a piece
- 58:17of software and had something weird
- 58:18happen but I mean just back that out to
- 58:21imagine that piece of software is is
- 58:23producing data you know it's it's uh
- 58:26it's really they can come from anywhere
- 58:29because there the stock exchanges are
- 58:31running a piece of software and then uh
- 58:35oftentimes like there will be one data
- 58:36vendor that consumes it from the stock
- 58:38exchange that will then sell it to a
- 58:39second data vendor which like packages
- 58:41it up and then maybe that second data
- 58:43vendor licenses it to a third data
- 58:44vendor which sells it in a retail basis
- 58:46so this data often times will will will
- 58:50change hands and go through many
- 58:51different systems and it's really
- 58:54difficult to track where in those
- 58:56systems you know you might have weird
- 58:58bugs like this pop up but they can be
- 59:00things that are as in name like I said
- 59:02to someone literally putting their
- 59:04finger out a button too many times which
- 59:05I which I think has that's that's
- 59:07happened in the past um to you know as
- 59:10subtle as just like uh a rounding error
- 59:13in a computer software that was hard to
- 59:15catch uh that caused the price to wrap
- 59:18around from uh you know one cent all the
- 59:21way up to Infinity dollars or something
- 59:23you know like little things like that
- 59:24can happen right okay and so how does a
- 59:27Quant deal with you know misprints or
- 59:31bad data uh unclean data in a live
- 59:34environment so there's a few different
- 59:37kind of main ways to deal with it I
- 59:39think one way uh is basically kind of
- 59:42ignoring outliers and this is this is a
- 59:45common tactic in in statistics which is
- 59:48just a predefine before you've looked at
- 59:50your data kind of say there's a
- 59:52threshold Beyond which just I don't kind
- 59:55of I I think data is probably just like
- 59:58noise or or something wrong with the
- 1:00:00system and and and set those points and
- 1:00:02maybe have those points change as the
- 1:00:04data that you come in change so a common
- 1:00:06thing would be to say maybe to make it
- 1:00:08so that if the data is more than three
- 1:00:11standard deviations away from the the
- 1:00:13the current mean over the last month
- 1:00:16then just don't look at it or it don't
- 1:00:17you know pretend it doesn't exist um so
- 1:00:20that's one way uh and that's that's
- 1:00:23known as as outlier getting rid of
- 1:00:25outlier and then there's another way
- 1:00:27which is called Windsor Rising which is
- 1:00:29similar except that instead of getting
- 1:00:32rid of outliers you just set them to be
- 1:00:35the maximum threshold that you could you
- 1:00:37know feasibly observe so if you get a
- 1:00:39price for Apple and it's $1 trillion per
- 1:00:42share and the standard deviation of the
- 1:00:45price of Apple over the last month has
- 1:00:46been $10 a share and the mean has been
- 1:00:49$100 a share then you say okay well mean
- 1:00:52of 100 plus 3 * 10 which is the standard
- 1:00:55deviation that's
- 1:00:57$130 so you know I don't know what's
- 1:01:00going on here but I'm just going to say
- 1:01:01this price is $130 you know and so you
- 1:01:04kind of you limit the damage to your
- 1:01:06system in that way and and a third and
- 1:01:08more structural way that quants will
- 1:01:10deal with this I think is really the
- 1:01:12most powerful which is you say quants
- 1:01:15are good quants are really good at
- 1:01:18admitting when they don't know stuff and
- 1:01:21that's actually one of the things that
- 1:01:22kind of defines and and kind of can set
- 1:01:24AP quants apart is that they're just
- 1:01:26they're really good at admitting when
- 1:01:29they are wrong and uncertain and don't
- 1:01:31know stuff and again that gets back to
- 1:01:32this core of Statistics which is
- 1:01:34quantifying uncertainty and if you're
- 1:01:36really good at kind of saying hey you
- 1:01:38know
- 1:01:39what I don't really think that you know
- 1:01:42the chance that one stock is going to
- 1:01:44have a misprint is too high for me so
- 1:01:47what I'm going to do is I'm just going
- 1:01:48to invest in so many assets that the
- 1:01:52chance that you know enough of them have
- 1:01:54misprints at the same time to really
- 1:01:56damage my portfolio is very low so this
- 1:02:01idea of accepting that bad things can
- 1:02:04happen and then adjusting the structure
- 1:02:07of your portfolio or strategy based on
- 1:02:09that acceptance is is I think very
- 1:02:11common in quantitative workflows and and
- 1:02:14gets at again like I said one of the
- 1:02:16ways in which quants might think
- 1:02:18differently from more traditional or or
- 1:02:20or you know discretionary Traders okay
- 1:02:23another really great answer so I'll lock
- 1:02:25this point all right Delan so let's
- 1:02:27shift gar here a little bit talk to us
- 1:02:29about quants when did they come to be
- 1:02:32what's their history there like when did
- 1:02:34quantitative trading actually become a
- 1:02:36thing so I mean I'm not an expert on the
- 1:02:40timelines uh of of you know how things
- 1:02:43started happening but my general
- 1:02:45understanding is that kind of in the
- 1:02:471950 to 2000 window and really when
- 1:02:50computers started being available um you
- 1:02:54know is when Quant started popping up
- 1:02:56and the idea was well you're sitting
- 1:02:59there and you have access to all this
- 1:03:01data and why would you make kind of by
- 1:03:04hand decisions on this data when you
- 1:03:06could gain a ton of information based on
- 1:03:08looking at you know summary statistics
- 1:03:11Trends all of the stuff that you know
- 1:03:12statisticians look at in their in their
- 1:03:14day-to-day work so just as computers
- 1:03:17proliferated it became more and more
- 1:03:19available and as more and more this data
- 1:03:21became quickly available um more and
- 1:03:24more you know quants started being you
- 1:03:26know popping up on on Wall Street and
- 1:03:28and and assets under management has been
- 1:03:32um you know kind of slowly trickling out
- 1:03:35of from you know more traditional
- 1:03:36Traders towards quants and and whereas
- 1:03:40quantitative Investments like purely
- 1:03:42algorithmic Trading still makes up a
- 1:03:45smaller percentage of assets under
- 1:03:47management um what's interesting is that
- 1:03:50uh so many firms incorporate some level
- 1:03:53of quantitative analysis so it might not
- 1:03:55be that everything is controlled by an
- 1:03:56algorithm but it might be that they have
- 1:03:59Traders whose trades go to a risk system
- 1:04:01which is quantitative you know it might
- 1:04:03be that they have some analyst who uses
- 1:04:06some quantitative measures of a of some
- 1:04:08investment's quality before they go and
- 1:04:10Pitch it to the board or you know
- 1:04:12there's many different ways that you can
- 1:04:14incorporate quantitative analysis into
- 1:04:17your strategies it's not just uh
- 1:04:21everything being completely
- 1:04:22algorithmically driven um and the other
- 1:04:24thing is that I believe the majority of
- 1:04:27trading volume right now is driven by
- 1:04:31Quant uh Quant strategies algorithmic
- 1:04:34strategies so one thing that's
- 1:04:35interesting is whereas you know a
- 1:04:37smaller percentage of AUM is is is uh
- 1:04:41you know quantitively managed um Quant
- 1:04:43strategies tend to trade more and so
- 1:04:46because they're trading more uh they are
- 1:04:48actually a higher percentage of of uh
- 1:04:51Market volume I believe I could be wrong
- 1:04:54on that um don't actually have the
- 1:04:56statistics in front of me and so what's
- 1:04:59interesting is that nowadays if you as
- 1:05:00like an individual go to place a trade
- 1:05:04you're no longer really competing
- 1:05:05against people like you because that
- 1:05:08trade is going to be matched against I
- 1:05:11think probably most likely a trade made
- 1:05:12by some kind of algorithm whether it's
- 1:05:14an execution algorithm or a market maker
- 1:05:16algorithm or or whatever it is and so to
- 1:05:19an extent when you're trying to enter
- 1:05:21into a position um you don't just have
- 1:05:24to worry about other Traders anymore you
- 1:05:26have to worry about is there an
- 1:05:27algorithm that knows something that I
- 1:05:29don't and that's why it's selling me
- 1:05:30this stock so this is probably a good
- 1:05:32point to ask like how have quants
- 1:05:35evolved since first sort of coming onto
- 1:05:37the scene like are there are there
- 1:05:39Trends evolving of current new ways of
- 1:05:42how quants are trading and looking to
- 1:05:44gain an
- 1:05:45edge so a lot of this stuff is really
- 1:05:47hard to know because of all the secret
- 1:05:50secrecy in finance and um you know it's
- 1:05:54it's really hard to know exactly what
- 1:05:55people are doing inside the firms and
- 1:05:57and you can kind of try to reverse
- 1:05:58engineer it based on what departments
- 1:06:00they're hiring from and all that um but
- 1:06:04in general I think that quants haven't
- 1:06:07changed a whole ton um since they got
- 1:06:10started and and part of that is because
- 1:06:13you know a lot of places actually didn't
- 1:06:16trust they they just didn't think quants
- 1:06:18were as valuable as they were and so a
- 1:06:21lot of like I think Quant shops got
- 1:06:23started as Quant shops it wasn't like
- 1:06:25quants went to work for a larg
- 1:06:28institution all the time so um you know
- 1:06:32one of the things that is always
- 1:06:33separated Quant shops is like a lot of
- 1:06:35these people are much more uh you know
- 1:06:37like Silicon Valley not Silicon Valley
- 1:06:40but just laidback in their culture you
- 1:06:41know like quants much more often tend to
- 1:06:43be closer to scientists than they are to
- 1:06:47uh you know more of the suit wearing
- 1:06:48types you'd see on a traditional uh you
- 1:06:51know trading floor or or bank and uh you
- 1:06:55know
- 1:06:56just it's it's just kind of an
- 1:06:57interesting little uh you know different
- 1:06:59community that exists on Wall Street and
- 1:07:02part of that is because a lot of them
- 1:07:03are hired from Academia uh a lot of
- 1:07:07Quant shops uh you know now and always
- 1:07:10have uh hired from physics and math
- 1:07:12departments they hire from computer
- 1:07:14science departments um because these are
- 1:07:17the people who are used to thinking
- 1:07:19about the world as kind of a a thing
- 1:07:22that you can model and and a stream of
- 1:07:24data that you can work with with so I
- 1:07:27don't necessarily think that quants have
- 1:07:29changed too much I think that what they
- 1:07:30work on has changed um but but you know
- 1:07:34I don't know if necessarily like the
- 1:07:35roles have changed a tremendous amount
- 1:07:38over time okay sure and I know one of
- 1:07:41the one of the interesting points we
- 1:07:43were discussing before we hit record
- 1:07:45were some of the Exotic data sets that
- 1:07:47have been used by quants uh today do you
- 1:07:50want to tell us about some of these uh
- 1:07:52data sets some of the more obscure ones
- 1:07:54and how they're actually being used yeah
- 1:07:57this is uh I actually have a lot of fun
- 1:08:00with these because it's just so sci-fi
- 1:08:03you know when you when you get into some
- 1:08:04of these things and and and and start
- 1:08:06actually like being like Oh my goodness
- 1:08:08they're actually doing that so let me
- 1:08:10tell you one of my one of my favorite
- 1:08:11examples of something that quants came
- 1:08:14up with uh to try to get an edge on the
- 1:08:16market and and one of my favorite
- 1:08:18examples is the following so computer
- 1:08:20vision is actually pretty good now and
- 1:08:22what I mean by computer vision is the
- 1:08:24ability of a computer to look at an
- 1:08:26image and tell you interesting stuff
- 1:08:27about the image and one of the things
- 1:08:30that's actually kind of a very Wells
- 1:08:32solved problem because many different
- 1:08:34parties have been working on it is
- 1:08:36identifying
- 1:08:38cars and uh you know car companies have
- 1:08:42worked on it uh DARPA which is the US uh
- 1:08:46you know Robotics and and computer
- 1:08:48science defense department has worked on
- 1:08:50it uh you know now of course like Tesla
- 1:08:53and anybody else who's developing
- 1:08:54self-driving cars has worked on
- 1:08:56identifying cars so there's all sorts of
- 1:08:58freely available scientific research on
- 1:09:00like how to get your computer to to
- 1:09:02identify whether or not something in an
- 1:09:05image is a car and so what uh some
- 1:09:09quants did is they went in and they said
- 1:09:12oh also we have Google Maps now right we
- 1:09:16have satellites and I don't think they
- 1:09:17use Google Maps but they have satellites
- 1:09:20that get satellite imagery and there's
- 1:09:22many companies which will sell you
- 1:09:25imagery from their satellites kind of
- 1:09:27live imagery they get maybe they'll take
- 1:09:29one or two pictures a day or even more
- 1:09:31frequently depending on how the
- 1:09:32satellite orbits and everything and so
- 1:09:34what these firms did is they said um
- 1:09:37okay we're going to go in we're going to
- 1:09:39look at the satellite imagery and we're
- 1:09:41going to count the number of cars in
- 1:09:43parking lots outside of retail
- 1:09:47locations and by counting the number of
- 1:09:50cars in parking lots outside of retail
- 1:09:52locations you can actually look for when
- 1:09:56uh there's going to be changes in
- 1:09:58earnings and more accurately predict
- 1:10:01sales figures uh for these retail and
- 1:10:04Retail retail change you can look for
- 1:10:06downward or upward Trends you can look
- 1:10:07for shocks you know all these things
- 1:10:09that basically anything that doesn't
- 1:10:10match what you'd expect you can say in
- 1:10:13what direction does it not match what I
- 1:10:14expect and and therefore I expect a
- 1:10:16positive or negative surprise uh when
- 1:10:19they actually release their figures next
- 1:10:21quarter so what they did is they just
- 1:10:22did that they said you know we're going
- 1:10:24to count the cars we're going to say if
- 1:10:25we expect a positive or negative
- 1:10:27surprise and we're going to enter into
- 1:10:29positions uh based on that positive or
- 1:10:31negative expectation and and and I just
- 1:10:33think that's a pretty kind of like
- 1:10:35pretty futuristic and and crazy way of
- 1:10:38of getting at this information yeah
- 1:10:41satellite imagery is super crazy I I
- 1:10:44recently interviewed uh Michael hore
- 1:10:46from quantstart who I'm sure you're
- 1:10:48familiar with um and he also spoke about
- 1:10:50that it just totally blew my mind it's
- 1:10:52um it's just so out there I mean while
- 1:10:55these these sorts of data sets like you
- 1:10:57know as the example here satellite
- 1:10:59imagery it sounds very sexy it's very
- 1:11:02edgy have these types of exotic data
- 1:11:05sets actually shown any sign of
- 1:11:07producing significantly greater returns
- 1:11:10than more traditional data I mean I know
- 1:11:12it sort of comes down to how you
- 1:11:13actually use it but you know broadly
- 1:11:16speaking are you able to shine any light
- 1:11:18on that so one thing that I will say is
- 1:11:21like my opinions here are kind of again
- 1:11:26it's hard I don't have this data in
- 1:11:29front of me and I haven't done an
- 1:11:30analysis on uh this particular data set
- 1:11:34so for like any particular data set I
- 1:11:37don't know uh you know like when it was
- 1:11:40able to produce better returns if it was
- 1:11:42able to produce better returns how is
- 1:11:44able to produce better returns but my
- 1:11:46understanding is that basically these
- 1:11:49types of techniques uh and and another
- 1:11:52type of technique which I'll talk about
- 1:11:53in a sec in in in in a minute but these
- 1:11:55types of kind of getting at these exotic
- 1:11:57data uh were able to you know basically
- 1:12:01be incredibly valuable uh to the point
- 1:12:04that um my understanding is that the the
- 1:12:07cars and parking lot thing is actually
- 1:12:09like washed out now because everybody
- 1:12:11started doing it so it it's no longer a
- 1:12:14novel piece of information it's just
- 1:12:16like kind of fully Incorporated but
- 1:12:18again I'm not sure I believe that's the
- 1:12:19case um and uh I was actually recently
- 1:12:23at a uh a conference in in Hong Kong put
- 1:12:27on by uh mccy bank which is I'm sure
- 1:12:31you're familiar with coming from
- 1:12:32Australia they at that conference they
- 1:12:34had one of their presenters was um
- 1:12:37terabella which is a a satellite imagery
- 1:12:40startup which was recently acquired by
- 1:12:42Google and terabella was showing some of
- 1:12:46the new imagery techniques that they had
- 1:12:49and not only can they create videos
- 1:12:52satellite videos of like planes flying
- 1:12:54over the land which is more for fun I
- 1:12:57think than than than than for
- 1:12:59quantitative techniques but they were
- 1:13:01able to do things like um what you can
- 1:13:04do is for every uh GPS location and time
- 1:13:07of year you know exactly what angle the
- 1:13:09sunlight is going to be hitting the
- 1:13:10ground right and uh you can just kind of
- 1:13:13compute that and you can say okay well I
- 1:13:15know what angle the sunlight's coming
- 1:13:16from so what you can do is you can look
- 1:13:18at the tops of oil tanks this is just
- 1:13:21one example of like what they can do you
- 1:13:23look at the tops of oil tanks and say I
- 1:13:26compute the size of the shadow on the
- 1:13:28top of the oil tank and something that
- 1:13:29not everybody knows is that actually
- 1:13:31when you drive past these big oil tanks
- 1:13:33the top actually raises or lowers
- 1:13:35depending on the amount of oil that's in
- 1:13:37the tank um and that's just so that
- 1:13:40there's just not this huge amount of air
- 1:13:42in there um probably one of the reasons
- 1:13:44is to prevent a fire risk uh but the top
- 1:13:47raises are lowers depending on how much
- 1:13:48oil is in the tank and so what you can
- 1:13:50do is you can actually compute for oil
- 1:13:53refineries and oil storage location
- 1:13:55how much oil is in the
- 1:13:58tanks and what they were showing is they
- 1:14:00can do things like look at uh Iran and
- 1:14:04look at the refineries in Iran and
- 1:14:06actually show like where they're moving
- 1:14:08their oil around to and look at the
- 1:14:10refineries in the Middle East and show
- 1:14:11how the oil is being moved around and
- 1:14:13basically get the jump on big
- 1:14:15announcements of like you know uh cuts
- 1:14:18to production or increases to production
- 1:14:20or whether a company says they have more
- 1:14:21or less than they actually do they can
- 1:14:23kind of they know that because they can
- 1:14:25just track where the oil is being stored
- 1:14:27and like as a result I think that people
- 1:14:28have actually started putting up like
- 1:14:30tents over their oil drums so that these
- 1:14:33satellites can't you know can't the
- 1:14:35Iranian government doesn't want uh the
- 1:14:38US knowing where they're moving their
- 1:14:40oil to so that struck me as another
- 1:14:43example of like something that you can
- 1:14:44do with this data and and a kind of just
- 1:14:47a new piece of information you can learn
- 1:14:50which was just have been completely
- 1:14:51impossible to hold you know 5 years ago
- 1:14:54yeah yeah I mean it's again it's just so
- 1:14:57crazy to think that people are are
- 1:14:59actually doing this I mean it's it's
- 1:15:00just wild to think about but anyway
- 1:15:03deloney Let's uh let's leave it at that
- 1:15:04for now um so like I mentioned earlier
- 1:15:07we're going to be doing another four
- 1:15:08episodes following this one plus a Q&A
- 1:15:11uh would you like to give just a maybe a
- 1:15:13brief overview for some of the upcoming
- 1:15:15topics we'll be discussing yeah so I
- 1:15:18think the next four episodes are really
- 1:15:20designed to try to get into um some of
- 1:15:24the major
- 1:15:25components of how a Quant actually works
- 1:15:28in their day-to-day and I think the
- 1:15:30purpose of today and I felt that we
- 1:15:32actually able to hit a lot of these
- 1:15:33points is just kind of um give people a
- 1:15:36sense of of of what some of the
- 1:15:38differences are between kind of a more
- 1:15:40traditional Trader in a Quant and what
- 1:15:41quants do differently and how quants
- 1:15:43think and what quants worry about and
- 1:15:45now for the next four episodes we'll try
- 1:15:47to dive into uh specific parts of their
- 1:15:49workflow a little more so something
- 1:15:51we'll talk about is what's known as
- 1:15:52Alpha factors and Alpha factors uh is
- 1:15:56the idea of um by valuing everything in
- 1:16:00the tradable universe uh you know can I
- 1:16:03produce a a ranking of things based on
- 1:16:06their future values uh that produces a
- 1:16:09trading strategy which has Alpha um and
- 1:16:12if you if you don't understand what that
- 1:16:14means unfortunately there's not really a
- 1:16:16greater way to explain it without really
- 1:16:18getting into it so you'll have to wait
- 1:16:19until that episode um and then we'll
- 1:16:22have an episode on how well in reality
- 1:16:25uh quants really don't trust any
- 1:16:27individual Alpha Factor uh to work well
- 1:16:30on its own so they actually will end up
- 1:16:32combining Alpha factors um together and
- 1:16:36and combining different methods of
- 1:16:38predicting stock movements together uh
- 1:16:40to try to get a better picture of how
- 1:16:42the Market's going to move as a whole
- 1:16:44and therefore be able to you know make
- 1:16:46better trades episode 4 uh we'll talk
- 1:16:49about okay well let's say now you have
- 1:16:51this combined uh Alpha factor that you
- 1:16:54actually think works pretty well well
- 1:16:56the next step is actually taking its
- 1:16:58output and converting it to trades on
- 1:17:01the market and and we get into this this
- 1:17:04new game there of uh risk optimization
- 1:17:07and portfolio optimization and the idea
- 1:17:10of how do you decide whether or not to
- 1:17:12enter into a new portfolio and it turns
- 1:17:14out that quants have all sorts of
- 1:17:16definitions of portfolio risk and
- 1:17:19quantitative hedge funds will basically
- 1:17:21every trade they make before they make
- 1:17:23it will go through extensive
- 1:17:26optimization and risk calculation which
- 1:17:28just says is there a better way to make
- 1:17:30the trade and if we make this trade will
- 1:17:33we be violating any of our risk
- 1:17:35tolerances and if if if you know if the
- 1:17:37latter is true the trade is not made so
- 1:17:41uh every single trade will will kind of
- 1:17:43enter through one of these uh one of
- 1:17:46these uh these checks at a at a
- 1:17:48quantitative firm often and and these
- 1:17:50things are done in the course of you
- 1:17:52know like less than a second um often
- 1:17:55times way faster than obviously if
- 1:17:56you're doing something higher frequency
- 1:17:58uh and uh then episode five is you know
- 1:18:02machine learning is a really popular
- 1:18:04concept it's a really popular topic all
- 1:18:06over the place not just in finance a lot
- 1:18:09of people uh constantly ask us hey how
- 1:18:12do you are you going to have lectures on
- 1:18:13machine learning are you going to do
- 1:18:15this with machine learning you going to
- 1:18:16support machine learning on the platform
- 1:18:18um and machine learning is another one
- 1:18:21of those things where it's a really
- 1:18:23really powerful technique but it's also
- 1:18:25really easy to shoot yourself in the
- 1:18:27foot with machine learning so we're
- 1:18:28going to talk about that on that episode
- 1:18:29and then episode 6 as you mentioned I
- 1:18:32think we're just going to have a have a
- 1:18:33chance for us to iron out some of the
- 1:18:36Kinks that maybe came up and things I
- 1:18:37didn't explain very well or or others
- 1:18:39didn't explain very well and and and
- 1:18:42here it depends on people's schedules
- 1:18:44but we'll try to bring on not just
- 1:18:46myself but we'll try to bring on
- 1:18:48Jonathan Lin who's the chief investment
- 1:18:50officer at quantopian he's worked at
- 1:18:51some really large financial institutions
- 1:18:53we'll try to bring on Jess stth who's
- 1:18:55our um VP of Quant strategy and she's
- 1:18:58actually in charge of selecting which
- 1:18:59strategies are or are not included in
- 1:19:02the portfolios that we develop um and uh
- 1:19:05Thomas Waki who's uh our in-house uh
- 1:19:08director of data science and you know
- 1:19:10he's a PhD in Neuroscience from Brown
- 1:19:12University and and works a lot on the
- 1:19:15strategy selection side and and also Max
- 1:19:18uh margut who's a and I completely
- 1:19:21mispronounced his name there so I
- 1:19:22apologize to him um but but uh he is
- 1:19:25someone we just hired actually to work
- 1:19:27on the lectures uh and Max's a
- 1:19:30background is in statistics and he can
- 1:19:31explain some of this stuff really well
- 1:19:33so we'll try to try to bring those
- 1:19:35people on as well to answer some of
- 1:19:36these questions more specifically yeah
- 1:19:39it's going to be good it's going to be
- 1:19:40good so where can listeners go in the
- 1:19:42meantime uh to get these resources maybe
- 1:19:44if you just want to give that that URL
- 1:19:46you mentioned earlier again yeah so for
- 1:19:49now let's go ahead and say the the best
- 1:19:51way to get these resources is going to
- 1:19:53be quantopian
- 1:19:55learn l e a RN uh and that's going to
- 1:19:59bring you to a page where um you can you
- 1:20:01know get started with tutorials or you
- 1:20:03can kind of try to dive into these
- 1:20:05lecture Concepts and I think I mentioned
- 1:20:06some specific lectures during today's
- 1:20:09podcast um that you can dive into that
- 1:20:11were related to the concepts we
- 1:20:13discussed and so you can find those in
- 1:20:15the lectures page you can go there
- 1:20:16directly quantopian dcom lectures all
- 1:20:20right Delan well this has been a lot of
- 1:20:21fun man I really look forward to picking
- 1:20:23up from uh where we leave off right now
- 1:20:26on the next episode thanks very much
- 1:20:28yeah absolutely it's been a lot of fun I
- 1:20:29appreciate the chance to to talk to you
- 1:20:31and indirectly to to many more people
- 1:20:33about this stuff cool and guys thanks
- 1:20:35very much for listening we'll catch you
- 1:20:37on the next episode
- 1:20:38[Music]
About this transcript
This page contains the full transcript of Q1: You Don't Know How Wrong You Are · Delaney Mackenzie by Chat With Traders, generated from the public captions YouTube serves with the video. The transcript has 14,730 words across 2,013 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.