Hugo speaks with JD Long, agricultural economist, quant, and stochastic modeler, about decision making under uncertainty and how we can use our knowledge of risk, uncertainty, probabilistic thinking, causal inference, and more to help us use data science and machine learning to make better decisions in an uncertain world.
This is part 1 of a two part conversation. In this, part 1, we discuss risk, uncertainty, probabilistic thinking, and simulation, all with a view towards improving decision making and we draw on examples from our personal lives, the pandemic, our jobs, the reinsurance space, and the corporate world. In part 2, we’ll get into the nitty gritty of decision making under uncertainty.
As JD says, and I paraphrase, “You may think you train your models, but your models are really training you.”
Executive Data Science, episode 5 of Vanishing Gradients, in which Jim Savage and Hugo talk through decision making and why you should always be integrating your loss function over your posterior (https://vanishinggradients.fireside.fm/5)
Get full access to Vanishing Gradients at hugobowne.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_03Hugo Bowne-Anderson here, your friendly neighborhood podcast host. Today, it is with great pleasure that I'm speaking with James J.D. Long. J.D. is an agricultural economist, quant and stochastic modeler. In addition to being an avid user of Python, R, AWS and colorful metaphors, He is also the co-author of The R Cookbook and a born raconteur. This is part one of a two-part conversation in which we delve into decision-making under uncertainty and how we can use our knowledge of risk,
SPEAKER_03uncertainty, probabilistic thinking, causal inference, and more to help us use data science and machine learning to make better decisions in an uncertain world. Now, why am I speaking with JD about this? Well, because not only is he a wild conversationalist with a real knack for explaining hard-to-grok concepts with illustrative examples and useful stories, but he has worked for many years in reinsurance. That's right, not just insurance, but reinsurance. These are the people who insure the insurer's people, so if anyone can actually tell us about risk and uncertainty in
decision-making...
SPEAKER_03It better be him. So in this part one, we discuss risk, uncertainty, probabilistic thinking and simulation, all with a view towards improving decision making. And we draw on examples from our personal lives, from the pandemic, from our jobs, the reinsurance space and the corporate world. In part two, we'll get into the nitty gritty of decision making under uncertainty. As JD says, and I paraphrase, you may think you train your models, but your models are really training you. Now, a bit of bookkeeping before we jump in.
SPEAKER_03I'd honestly love to hear from you about what resonates with you, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know currently is on Twitter, at Vanishing Data is the podcast handle, and I'm at Hugo Bowne. It would be great if you could subscribe to the show on your app of choice, and if you like it, do write us a review on iTunes and or anywhere else. Also, this episode was the first we recorded as a YouTube live stream, so when we occasionally refer to people commenting in the chat, that's what we're on about. We plan to have more such live streams, and you can subscribe to our channel to keep up to date on YouTube.
SPEAKER_03The link's in the show notes. I'm your host, Hugo Bowne-Anderson, and welcome to Vanishing Gradients.
Ooh.
SPEAKER_03Without further ado, JD, I'd love to get into this. Before jumping into really the topic of the day, though, I'd just love a bit of background in how you got into data science and all of these types of things, the world we inhabit.
SPEAKER_00Yeah. So like everybody who did this before data science was a thing, I fell in sideways, right? And this is like all the physicists and economists and everybody else who ended up doing data work fumbled into here because they had problems to solve, right? And my background is as an agricultural economist. And in the late 90s, like the summer job I had between undergrad and grad school was moving a bunch of
SPEAKER_00SAS data from a mainframe to this new Unix machine. this hp unix machine that we had in the agricultural economics department university of kentucky and that was like my first touch with like data and there were all these job control language scripts over in sas that we're getting stuff off of i think it was on tape if i remember because and that was old even at the time and that was the whole deal is we had to get it off of that we're going to lose access to machine to read that stuff so anyway
We migrated data all over and that started my journey with kind of analytics and understanding data and like buried in a bunch of that work was like linear
SPEAKER_00regressions, which I had studied as an undergrad and would later go on to study more econometrics course in grad school. But I was fortunate enough to be studying in graduate school under a professor who did his own analytics, which sounds weird. That's like saying somebody does their own typing to us. But at the time, a lot of the professors, even in applied fields like ag economics, had programmers or staff.
SPEAKER_03Also, this was a time where people had typists as well. So people actually had people type for them.
SPEAKER_00We had just gotten out of... So this would have been like late 90s. I started grad school in like 96, 97. I can't remember exactly. I think it would have been late 96. And so nobody had typist at the time, but they did. The math department I was in the early noughties, the professors there still had... typists, they were essentially assistants who wrote their LaTeX for them.
SPEAKER_03They were these wonderful, wonderful women who were part-time assistants who didn't understand the math. I mean, it was like, you know, non-commutive algebraic geometry and stuff like that, but they would, they knew how to type LaTeX. So...
SPEAKER_00No, we didn't have that, but a lot of the professors had people on staff who wrote the SAS code to implement the equations they wrote out. So they didn't actually code or do the analytics. And the professor I worked under actually wrote the code. And I saw this thing that has resonated with me for the last 25 years, and that was he could iterate faster because he discovered things and he discovered things he wanted to hypothesize about in playing with the data is what we would have called it then.
Basically, he was like, no, it's a shorter feedback loop if I just do all this junk myself.
SPEAKER_00Plus I discover things that I want to know more about or what causes it. And I felt like the faculty who only did the linear line, I've got this theory, I'm going to have this person who doesn't really understand the theory of the data, implement that, and then I'm going to look at the results. they were missing that feedback loop, right? And they weren't engaged in stuff that we would now call exploratory data analysis and hypothesis creation from exploratory data analysis and that sort of thing. Now, there were some errors they didn't make because of that, right?
SPEAKER_00So they didn't actually, when you start making hypothesis off of your EDA, you run into some other challenges. But that fast feedback loop was truly effective. And so I observed that and then later was like, oh, I see that how he's so much more productive because he can do this all himself. I want to be that person. And then for the next like rest of my career and even after grad school, a lot of folks would look at me in organizations. I did not go into academia. I got a master's degree and then was out and they were like, Look at me like, what are you?
You're not really a developer, but you're not really like these other things either.
SPEAKER_00You've got your nose all up in the data and you're writing code. Like, what even is this? And like my biggest thankfulness that data science came along years later is I actually had something to kind of call myself, even though I've never had that title in a job. It was at least it made writing code, but not being a professional developer in the IT part of an organization. It made that legitimate. That was illegitimate activity for a long period of time. I got sideways with a guy once who called me Shadow IT because I was coding outside of IT.
My response to him was, well, if you guys would do your job, I wouldn't have to.
SPEAKER_00We got a little sideways on that. But really, that's not how it should be. And that's not how my organization I'm in now sees it. We see it very much as a partnership. And once again, it's about fast feedback loops. If we have people in the business able to test things in code, and then we can do what I love, which is pass off to professional developers working code as a specification document, right? The most rich specification document you can give somebody is working code. And say, like, make this robust, add error checking, make it scale.
SPEAKER_00But this is the thing that gives you the right answer. Tremendously powerful, like, booster in an organization, as opposed to there's people over here that understand the business and they don't understand code. There's people over here that understand code and they don't understand the business. Like, if we can just get those smashed together, get some business people in the IT group, get some technical folks in the business group, we can bridge those gaps. I've spent my whole career bridging those gaps. mostly risk-taking organizations.
SPEAKER_03Amazing. And of course, there's kind of a third cog here in a lot of ways, which is there's the code skills, the business or domain expertise, and then there's the kind of mathy or statisticy or simulation stuff, which we'll get to. I just want to say there are several comments already in the chat of people who everything you've just said resonates with. I just want to, I was going to say double click on it. I've been working in tech for far too long. So let's dive into it.
SPEAKER_00I will mock you if you say that.
SPEAKER_03I'm just happy you didn't end the call straight away. But Mike Smith wrote, so many stats colleagues say, I'm not a programmer, almost as an excuse for having messy code. They are writing code to do stuff and explore data. And I just want to make the point that writing code is almost an overloaded activity, just like we overload terms like probability, right? You can write code for all types. If you're not writing production grade software, that doesn't mean you're not writing code. If you're writing code in a notebook to do EDA, that's writing code for your scientific purposes as part of the scientific method at that certain point in whatever workflow.
SPEAKER_03So I think Mike's point is incredibly, incredibly well taken. And that's something which very much needs to be recognized. Yeah, and he goes on to say, like, don't toss a bunch of crap over the wall for IT to fix.
SPEAKER_00And that's totally legit. Let me give you an example of what this looks like in healthy. Because I feel like in my vague terms and your vague terms, people may be imagining very different things. The proverbial, each one of us holding a different part of the elephant trying to describe it. What this looks like when it's healthy is I know I'm doing a mock-up. Maybe I'm implementing an idea in SQL. And we know in our production environment, that's not going to be maybe SQL for that. They're going to implement it using something else. But it allows them, being the professional developers,
SPEAKER_00to see exactly what operations need to happen. And then I never toss it over the wall, right? I call it the three-legged race, right? From when we were in school and you take two people or a potato sack race, and they each put one leg in the potato sack and try to run together.
SPEAKER_01You tie them together, yeah.
SPEAKER_00Yeah, that's the way it should work between the technical business people and the IT devs, not throw it over the wall. Y'all fix this. It's we're in this three legged race together. My part is give you a prototype. Your part is add some robustness to it. But do that with me. Talk to me about it. Ask me the question. You know, we're collaborating together, not here's a bunch of crap that isn't documented. Make it good. That would be awful and totally unreasonable.
SPEAKER_03So you mentioned and I mentioned you're an agricultural economist. I am. OG data scientist or not?
SPEAKER_00I tend to say yes. Right. My joke is the physicists all get mad. But from, you know, agricultural economics, we were getting recruited outside of ag econ for years and largely, you know, credit card companies, American Express, that sort of thing, recruiting agricultural economists because we had applied data experience. Right. And the pure economists that came out of the econ department tended to not They're heavy on theory, low on applied mathematics, applied, I'm sorry, applied statistics. And as a result,
SPEAKER_00having that data munging skill, a lot of times within SAS at my age would have been with SAS or SPSS or something. We came out able to actually do something with data. And so that's where I do my OG or get my OG data science creds. But I think the physicists have a reasonable claim on that as well.
SPEAKER_03Yeah, I think actuaries do as well. I actually do, though, think economists and people working in finance, particularly with the incentives of working in finance, a lot of what we're doing now kind of comes from a lot of the things that were happening there. With physicists, though, hands down, the best applied statisticians I've ever met astronomers on average.
SPEAKER_01Yeah.
SPEAKER_03Because they can't do experiments as well, right? So they're literally like figuring out all the tools they can get, right? Yeah.
SPEAKER_00I work with two astronomers closely, one of which has a PhD. We have a one of our sea level risk execs has a PhD in physics. These folks are everywhere. They do great work and they're all coming, bringing their applied experience from elsewhere.
SPEAKER_03Awesome. So what are you up to these days? Just to kind of round out your career and before we jump in. So, gosh, for the last 13 plus years, I've worked for a global reinsurance company.
SPEAKER_00And, you know, my joke is I tell my daughter I play piano in a whorehouse because there's some things you just can't explain to a kid. Well, reinsurance. is one of those things, right? Like we insure insurance companies. I think that's like the elevator pitch and she's now 15. And so I think she actually just tells people, dad works for a reinsurance company, a reinsurance company insures insurance companies. Now I'm not sure she fully ingests what that means, but what that means is insurance companies often have more risk They're exposed to, for example, things like Hurricane Ian that just came through Florida.
A regional company in Florida could get completely wiped out by a storm like that. So they buy reinsurance to cover their capital above and beyond what they might
SPEAKER_00lose from large events. That's an example of reinsurance. One of the phrases we use in the industry to refer to reinsurance is contingent capital. It's capital contingent upon some set of events happening. So they've got enough capital to run under normal conditions. But if something out in the tail of the distribution happens, they need more capital. And so we do that. So I spend a lot of time modeling risk, thinking about risk. I work in a corporate group. And then I also... for a small part of the year put my underwriting hat on and go
work on the analytics of our agriculture portfolio and because i've been close to agriculture for years so they let me do that as a side hustle within the organization but that's not most of my job most of my job is far away from agricultural economics
SPEAKER_03Great. So let me, I want to jump into kind of thinking about risk, uncertainty, probability, all of these things in a second, but let me kind of paraphrase in my words what reinsurance would be then. Insurance is about pulling risk. We've got organizations that help people pull risk. Mike Smith says, yeah, JD, but what do you actually do all day? Brilliant. Yeah, exactly. pulling risk now for any insurer when they're pulling a bunch of risk that may be correlated in some ways so if the risk they're pulling all goes
in one direction then they need to have some i suppose safety net of some sort so then a bunch of different insurers who are all pulling their own risk then pull risk together and
SPEAKER_03it's the reinsurers who help them do that
SPEAKER_00Yes. So what we're trying to do is we're trying to spread risk around the globe. And if we had populated other planets, we'd spread it there too. But we're trying to spread this risk out. For example, it's pretty obvious if you think about it for very long, Japan has a very certain type of property risk, right? It's earthquake tsunami risk. And in Kansas, there is none of that. And they have a different type of risk, right? That's completely unrelated.
SPEAKER_00It's completely uncorrelated. The severe convective storm that blows Dorothy to Oz. You would think that the risk in Kansas has some admirable properties, if you put it in a portfolio, with the risk in in Japan because they aren't related. You aren't necessarily going to have one problem when you have the other. You could just by coincidence because of pure misfortune, but they aren't correlated. They aren't going to happen at the same time by definition. So what reinsurers do, for example,
is make global portfolios and pull those risks together. So that's the sort of thing we're thinking about at the global macro level.
SPEAKER_03Fantastic. And I love that you, you know, you reference a lot of real things there, but then mention something that's real that takes Dorothy to Oz, which is the most real. In fact, I think it's important to define a few terms because everything's overloaded and things are confusing. Generally, we've kind of talking around risk, uncertainty, probability. What do all these things mean?
SPEAKER_00All right. So the first distinction I like to make is risk versus uncertainty. And I like to lean on Frank Knight from the Chicago School of Economics for his definition of risk versus uncertainty. His definition of risk is an outcome that is unknown, but you know the distribution from which it will be drawn. So for example, if we're flipping a fair coin, we don't know the outcome, but we believe it's a fair coin. So we believe the distribution is 50% heads, 50% tails. So that is risk.
SPEAKER_00It's definable. I like to think, let's add a little more dimensionality to it. Let's think of it as something a little more continuous. We might have, and this isn't truly continuous, but it's more continuous than two options. You might have an urn with even number of three different color marbles in there. So you know when you draw out, once again, what distribution you have. contrast that to uncertainty which is we don't know the outcome of this and we don't even know what the distribution is or what's driving the
range of outcomes it's an unknown underlying process and sometimes we know how much of that there is and sometimes we don't know how much of that uncertainty there is but we may look
SPEAKER_00at a certain unknown outcome and we may say okay that's really just whether or not the wind blows in florida whether this insurance company will lose money right because we know we believe that they're running a reasonably sound business and the only factor is does a hurricane hit florida for a certain outcome to happen. Or we may look at something like startups in Silicon Valley, where it's like, we can't even define all of the things that might go wrong or
all the things that would be needed in order for them to have a successful or unsuccessful outcome.
SPEAKER_00One is a situation full of risk. The other is a situation that's largely uncertainty. And maybe that's a contrast between the two. So you ask a third, though. You said risk, uncertainty, and something else.
SPEAKER_03But I just want to maybe just reflect for clarity an example. Let's say we had a global pandemic. and we knew the prevalence in a certain region and we picked someone at random, we knew 20% of people had it at a certain point in time, then that is thinking about risk, right? Because we know what proportion people have it, right?
SPEAKER_00Assuming we know that, right? Exactly. There's no sampling error or all this garbage, right?
SPEAKER_03Exactly. But if we don't know that, so that would be risk. If we don't know that, that's uncertainty.
SPEAKER_00Right. If we don't know, and this is, This is one of the things people like me watched a lot. And I know you thinking this way because of what you wrote during the pandemic that we all went through. At the very beginning, huge amounts of uncertainty because we didn't know what the underlying transmission rate. We didn't know what the fatality rate could mean. We had some pieces of information, but we knew there were big things we didn't know. and not to get all donald rumsfeld but these were like known unknown yes we knew we
didn't know them and so lots of us who think in terms of risk and uncertainty were extra cautious because that could have broken very differently as we got more
SPEAKER_00information now we got more information And then we got a head fake after post-vaccine, right? Where we thought this thing was done. And then, oh shit, yeah, I guess epidemiologists had been telling us this would happen. And things changed, right? So, but we started with huge amounts of uncertainty. And then as we got more and information we got more defined risk than a component still of uncertainty and so what we were talking about is really the conversion of uncertainty into risk so it's quantified we don't know the outcome individually but we
know it's more
SPEAKER_00quantified and then squeezing down the uncertainty to a smaller amount
SPEAKER_03Yep. Great. So my next question was around just probability, but I want to preface that by saying we're talking about a technical definition of the term uncertainty. Once again, an overloaded term. It is a general term, which means being uncertain, not knowing things. And one way I like to think about probabilistic thinking is as a way of dealing with uncertainty. So when you're uncertain about things that will happen in the future, we developed a cognitive tool, a psychotechnology, if you will, called probabilistic thinking and probability distributions and that type of stuff.
to help us deal with uncertainty yeah we're going to quickly delve into philosophy and i'm not a philosopher i like to hang out with them they're neat people but my language is probably too loose and too applied and honestly too applied to my specific field to be a very good general philosophical yeah well i'd love to know specifically how it applies to your work because that bridging those scales i think
SPEAKER_03is incredibly important
SPEAKER_00Yeah. So how does probability and risk taking apply to the world of insurance and reinsurance? Is that what you're sort of thinking? Absolutely. So in the reinsurance world, the business comes in usually as very different than insurance. Insurance is like a policy, an individual can shop for insurance. Can I tell a little story here about Flow? Absolutely. Progressive, you lived in the US for a while. So do you know Flo, the character from Progressive Insurance commercials?
SPEAKER_03I do not, no.
SPEAKER_00Okay, so she's like this, dark haired, red lipstick, and she's like the salesperson or the clerk. And Progressive Insurance has this neat model where you can say, oh, you go to their website and they will show you competitors' prices. And then they'll show you their prices, right? And they pitch this as like a sales model. I don't trade with Progressive in my day job or any other. I've never had their insurance. I got no relationship with them. This is just how a risk person looks at that.
SPEAKER_00Okay, if you were to go to that website and Progressive was the highest cost insurance on that matrix they show you, what does that tell you? That tells me they don't want my business. That's not Flo doing me a solid, right? That's Flo saying no. And they are redirecting me away from their risk pool and into other risk pools. And this is what insurance companies are doing with the individual level,
SPEAKER_00which interestingly enough, I was speaking about this once and I wanted a screenshot of this. And so I went to Progressive website. They wouldn't show me comparative pricing. Why is that? I'm a 50-year-old male with a perfectly clean driving record in a relatively high income bracket. They want my business so bad. I'm just like Mr. No Rec, right? Like I'm the type of person who has very... And that's true. I've not made a auto insurance claim in... 25 years or something, right?
SPEAKER_00And they can kind of figure that out. So they didn't even show me comparative pricing with anybody else. And that's them saying, yes, please come do insurance with us. Well, on the reinsurance level, it's different than that. We aren't looking at individual policies. We get entire companies with large portfolios of insured individuals in it. And they're looking for, they being the insurance companies, are looking for a structure to re-insure that, right? And common structure would be an excess of loss where it's like,
SPEAKER_00okay, if this pool of risk has more than $100 million of loss, we want you all to pick up the next 50 million. So that would be a 50X100 is what we would call that in the vernacular, a 50X100. excessive loss policy. So we got to figure out some way to model that. Well, what if there has never been an event in history that would have caused their portfolio $100 million of losses? What do we do then?
SPEAKER_00Does that mean that there can't be an event in the future so we should just give them the reinsurance for free like surely not right this feels like the the black swan problem of just because you haven't seen a black swan doesn't mean one can't exist and then you come to western australia exactly and they're everywhere that's the only type you got it from what i understand so What happened in the late 1990s is a more engineering approach of modeling risk, and this would be like property risk,
SPEAKER_00came to be. And this modeling of risk, I say it's engineering approach, and that is as opposed to an actuarial approach, which was well-established historically, but is usually based on historical data. Well, when you're trying to price an instrument for which there is no historic data that says a loss can occur, How do you do that? Well, for that, you need to look at something like a historic catalog of hurricanes and then do something like, say, could they have gone a slightly different path?
If they had gone a slightly different path, what would have been the impact on this?
SPEAKER_00group of policies that I'm looking at. And that was the advent of what my industry calls catastrophe modeling or cat modeling. Quite a disappointment for people who are very fond of felines when they come to our industry and they think there's going to be gratuitous amounts of cat modeling. Unfortunately, it's catastrophe modeling. And in the process or the process of catastrophe modeling is to say, is to create a stochastic catalog. So a historic bunch, not historic, sorry, a bunch of
SPEAKER_00storms that haven't happened but could happen. So I'm kind of focusing here on Southeast hurricane in the US, Gulf of Mexico. And there are companies that will sell potential catalogs of what they think 10,000 hypothetical years could look like. There's a whole bunch of mediocre years in there, a few good years and a few bad years. And so you take a book of business, a book of policies, and you run them against that model and say, what's the impact?
SPEAKER_00on this portfolio and you begin to say, oh, even though we haven't seen it in actual 50 years of history, we haven't seen this portfolio take 100 million in loss. We find when we run it through this catalog that there's a 10% chance that it'll take meaningful losses and we can actually quantify what those losses are. And then we start putting more information in. So, well, if we know what type of roofs these houses are or what they're built out of, then we can more accurately simulate the damage of these
different storms across
SPEAKER_00this portfolio of business and better understand the rest. So a whole bunch of the catastrophe modeling at the reinsurance level is basically taking portfolios of insurance policies and physical properties running them through against historic catalogs and looking at what the impact is on that portfolio. And that's kind of how pricing and risk assessment is done for reinsurance.
SPEAKER_03Fantastic. And I just want to say the intersection of catastrophe modelling and actual cat modelling is incredibly small, but at Taronga Zoo in Sydney a couple of weeks ago, five lions escaped. So I feel like that is, you know, we've recently... And it actually looks like they were, like, digging around overnight. I don't know whether they had a plan, but, like, at least the mainstream media has been, did they plan this? And, you know, so there's a lot at play there.
SPEAKER_03I would love to, Mike Smith has a great question around communication of model outcomes, predictions to decision makers. I want to get into that in a second when we really get into decision making. So just letting you know, Mike, I'm very excited about getting there. But before that, we've been talking around probability, probabilistic thinking and simulation. And what are the, this is tough. What's the role of simulation? What's the role of probabilistic thinking? I'll set the seed of this random conversation generator by saying,
SPEAKER_03if we're talking about probabilistic thinking, why can't we just think about point estimates like means? Where do we fall? What are the failure modes there? And then why simulate and why think probabilistically?
SPEAKER_00Okay. I love where you're going with this. I also love that Christina is up here in the chat mentioning John von Neumann and Monte Carlo, right? What I just described is a type of Monte Carlo simulation. I did not use that term. I was trying to, some of my stumbling over my words is my trying to fight back my urge, 25 years of jargon, right? And trying to explain what we do in a way that can be ingestible for anyone who might watch this video or listen to your podcast.
SPEAKER_01Yeah.
SPEAKER_00But yes, this is Monte Carlo simulation, absolutely. And so why not use means, right? And I have told this story to some folks, and it bears repeating, or is worth repeating, that I tend to think about the sophistication of a model by how many moments of the distribution it includes. And I'll explain why I do that in a minute, but just a quick review, like... The first moment is the median. The second moment is the standard deviation. That's the dispersion around that mean. Third moment is skew.
SPEAKER_00And fourth moment is kurtosis. And we may not make it to kurtosis in this conversation, although I have thoughts. So if we just think about like the difference, two distributions, let's say we're looking at two different portfolios of insurance and they have the same mean. But one has really big tails in both directions. So sometimes it has no losses at all, but sometimes it has really big losses. And the other distribution always has relatively close to the mean losses. They're having the same mean.
But one is clearly very different if you're thinking about my previous structure I
SPEAKER_00described about a 50x100, right? One of them may have, the one with the longer tails is gonna have a lot higher probability of having a, or potentially have a higher probability of having a $100 million loss than the one that's always crouched around the mean, imagining the mean as something like 50 million or 75 million, right? That one that's really tight around the mean So when you start thinking about things that are away from the mean,
you've got to understand the shape of that distribution or you don't understand
SPEAKER_00anything about what is the possibility, the probability, the numerical probability of having losses out here away from the mean. And you'd have no way of distinguishing between those two potential deals in reinsurance land. They would kind of look the same, but you add that Second measurement, which is the second moment of dispersion, and actually in this case, more importantly, the third moment, because these distributions are not symmetrical.
SPEAKER_00The best you can do is no losses. And by the way, most insurance companies for property have very small losses most of the time. So their loss distribution is all right tail. Most of the time they're running very low losses. And then occasionally they have these blowout events like a hurricane blows through, right? And those cause huge losses, but it's only once every 20 years or once every 10 years, right? And so they're way out here, highly improbable, but highly catastrophic.
SPEAKER_00So low probability, high severity. In contrast that to like your standard auto policy, If you look at the losses for automobile companies, they're very narrow. They're very tight. The second moment, very low standard deviation. They run plus or minus one or two percentage points on loss ratio. So loss ratio is ratio between premium paid and losses. They're super stable. Meanwhile, homeowners runs like almost zero and then it runs a 500 or
something where it's
SPEAKER_00just one extreme or the other. So those second and third moments matter tremendously when you start talking about things that are farther from the mean and farther out in the tail. Now, did that begin to answer the question you asked me?
SPEAKER_03Absolutely. And we can delve into further moments, higher moments or into the role of simulation and computation and thinking through these. I'll let you decide. I got completely distracted by a very good question that was asked in the chat.
SPEAKER_00Can I just like totally you and go into that? Yeah, so our mystification asks, what do we do when we don't have a catalog of catastrophes to estimate from? So let's back up and ask the question of why, for something like Hurricane, can we do a catalog of possible outcomes? Let's start with that. So the reason one can do that catalog, and there are companies that specialize in this, like AIR and RMS, are companies that specialize in making these catalogs. And then the company I work for has an independent view of the risk.
SPEAKER_00And I'm going to explain why in a minute. But if we think about why can they do that? Because, well, the reason they can do that for a hurricane is hurricanes are a bit of a mechanical event. At some point, they're so big, they scrape against the atmosphere and can't grow anymore. Now, what they can do is they can speed up. And that's one of the concerns with global warming speed up in terms of more of them happen in a season because there's more heat around the equator and we can pump more of these out. But a few years ago, we had five typhoons.
SPEAKER_00That's what we call a hurricane in your part of the world. We had five of them active at once. It looked like a conveyor belt right into Southeast Asia. And there is less distance between Africa and the U.S. to make a conveyor belt like that. The Pacific is a little bit longer stretched out, but we can get some number of these. But it's a bit of a mechanical event. And so while there is some uncertainty around how many of those we might produce in because of changes like global warming,
SPEAKER_00it's a little bit constrained by physics. And so we can say, okay, because we understand the global temperature conditions and the cycles, we think this is a reasonable estimate of the risk, a little bit uncertainty. Now, what mystification asks is something about new diseases due to climate change and pandemics. And that is a great question because now this is really back to our previous discussion of risk versus uncertainty. Now we're in uncertainty land.
And what a lot of companies do and makes a lot of sense is to manage that risk not
SPEAKER_00on a probabilistic basis, but on what's called an exposure basis. So managing on an exposure basis, say, I will only take so much of this class of business or class of risk. at any price. Because I'm not confident I can really model it. But I can model how much I am exposed to. So how much exposure to that line of business I had. This is what happened after September 11, 2001 in the US. The willingness to buy terrorism insurance went up considerably by
lots of companies and entities.
SPEAKER_00No one knew how to model it. Because the question everybody's asking is, did we mismodel this? Is this really... Quite likely. And we thought it was very rare. Are there going to be follow-up attacks? There was so much uncertainty. And I use uncertainty specifically, not risk. So much uncertainty of what's going on. And the way a lot of companies handled that is they said, we'll write X dollars, X million dollars worth of this class of business. And we want X to be small enough that it won't put us out of
business if we do have
SPEAKER_00an event because we're not confident we can model it. And that's often what is done with lines of business that companies aren't sure they know how to model. And as the risk portion grows and the company thinks they know what that risk is and the uncertainty piece shrinks, the risk appetite typically changes as a result of that. The company says, okay, I'm comfortable with this class pricing it based on the risk as opposed to pricing it based on uncertainty, which is usually a higher price.
SPEAKER_00So anyway, that's how industries like ours tend to weigh the class that we can model by risk versus a class that we don't feel like we can model. And we just need to willing to take a little bit, but we also need to protect ourselves, protect our capital from that. So anyway, that was a total tangent based on a good question. Let's go back. You had a question. Yeah, it wasn't. a relevant tangent because it does circle back nicely to our discussion of black swan events as well and hedging against such things and i think actually i do want to talk about simulation now and as we know the black swan
event was popularized by nasim uh taleb who we may get to at some point fascinating writer who inspires generative thinking in a lot of us and um wonderful provocateur as well and barbell
SPEAKER_03lifter and barbell methods across the board. But of course, he's someone who's interested in the world of simulation as well. So maybe you can tell me a bit about how simulation is important to you as opposed to writing everything in equations and doing integration by parts and whatever we do in that kind of calculus space.
SPEAKER_00Yeah, so a bunch of what gets done in insurance and reinsurance is solved with simulations simply because it's pragmatic given the way the deals are understood, and the computing power available. There is a world where every policy could be defined by an equation and we could combine these equations and it would be impenetrable to most people.
SPEAKER_00And it's just not practical to create that type of closed form solution. So what we end up doing is solving it with simulation. And we say, okay, I can define a simulation for this deal or this type of policy or this class of business. And so I do that. And then I can do that for each one of the individual deals or the class of business or some subset and then we bring those together with and we maybe
define them individually and we bring those together with a with a correlation matrix of some kind and we say okay now this is our overall position we've simulated all these lines we broaden together correlation here's our overall position now what i described with property if you're using a ground-up model like the physical
SPEAKER_00simulation model we have in catastrophe reinsurance You don't need to bring correlation in. Correlation comes from the spatial location of the individual properties in each program. That gets picked up intrinsically in a model that's defined the way I described that one, right? If two portfolios have a lot of properties in this one area, and that happens to get a lot of hurricanes in the simulation, those two portfolios are going to end up modeling correlated. Because of the nature of the physical model.
SPEAKER_00So you don't have to worry about correlation there. But if you say, all right, well, we write property and we also write something with non-geographically based risk. So casualty insurance, for example, errors and omissions, or directors and officers, those lines of business, their risk isn't defined spatially. So two companies that are close together are not more likely to have a suit against their board of directors just because they're in the same city.
SPEAKER_00So those get modeled differently and they have, one would expect a relatively lower correlation to the property lines of business, right? And so you can bring all those together in a simulation, assuming some correlation structure. Now, one of the things I mentioned earlier was this idea of an independent view of risk. This kind of one of the things you and I had tossed around bringing up is when idiosyncratic risk becomes systemic risk. And this is kind of an interesting place for it, because if you think about if all participants in a market used
the same model,
SPEAKER_00what happens when that model is wrong? And what happens when that model is wrong, if everyone has the same view on risk, is everybody makes mistake in the same direction at the same time because they were all guided by the same incorrect map. if you will.
SPEAKER_03So I'm excited to hear about the bridge, where I think this is going. But is 2007 another example of highly leveraged assets?
SPEAKER_00Yes. It's a little bit different than everyone using the same catastrophe model. It's like everyone was assuming a certain event could never happen. And therefore, you couldn't have correlation collapse where... everything happens together that's actually the okay so just put it in context here for other folks the 2007-2008 financial crisis in the us a big piece of that was the residential mortgage market and a whole deeper discussion
of this is in michael
SPEAKER_00lewis's book which is drawing a blank what's it called hugo
SPEAKER_03Is it? I can't remember.
SPEAKER_00Drawing a quick blank. You Google that while I keep talking. Part of what happened there was there was the assumption that losses or defaults on houses were always idiosyncratic. They just they'd randomly fluctuate. They didn't fluctuate together. And as a result, certain tail events where high default rates happens just couldn't happen because that didn't had never happened. And that was because there was underlying correlation assumptions that were based on relatively short amount of history and didn't take into account big systemic
SPEAKER_00events. Well, we ended up having some systemic shocks. Lots of folks started defaulting at the same time and all these default probabilities were wrong. Is that a reasonable summary?
SPEAKER_03Yeah, exactly. And of course, it's the big short.
SPEAKER_00Big short. Thank you. And it's both the movie and the book discuss this in great detail. The book, obviously, in more detail than the movie. But there's a pretty decent bathtub scene in the movie that explains this pretty well.
SPEAKER_03Yeah, I mean, you're referring to Margot Robbie's explanation of the types of assets that we're talking about. And actually, the fact, I mean, there's a great sequence in about how they're kind of designed to be boring and impenetrable.
SPEAKER_00As safe as houses.
SPEAKER_03Exactly. And there's a great point in the movie where it really thinks through the incentive systems of everyone involved as well, which I think is fascinating. Of course... Adam McKay's next movie, I think it was his next movie, Vice, had an incredible performance by Steve Carell as Donald Rumsfeld. And this brings us back to known unknowns and unknown unknowns. And we've been talking around that as well, which I think is quite telling.
SPEAKER_00I made allusion to that myself. Yeah.
SPEAKER_03On top of that, going back to the world of simulation, I think this may be an apocryphal tale, but those are usually better than real tales and can shed light on how people think about things as well. But supposedly we can never remember which Bernoulli it was. It was Daniel Bernoulli or Jacob Bernoulli when So he came up with the Bernoulli distribution partially to think through infectious disease rates, actually. And so sampling populations. And he was like, okay, let's start flipping coins. And so the apocryphal tale, Alex Birch just said the big short as well. Great. The apocryphal tale is that he would sit there and flip coins
and roll dice and
SPEAKER_03this type of stuff and write down all the tables. Like he could do it in closed form, but just to make sure that the closed form reflected the reality. So we can do that using... Python and NumPy or R or whatever it is these days. So to get into decision making now, which is very, very exciting. I think we're bringing it, really bringing it now to one of the big reasons we're here. I do want to start off by mentioning how it can relate to probabilistic thinking as well. And I actually want to reference what you know is a podcast episode, which I'll share in the chat right now.
SPEAKER_03It's... An episode with Jim Savage from Schmidt Futures. Jim is one of the smartest and sharpest thinkers I know, which is one of the reasons I had him on the podcast. But his... I don't know if it's still the case. I think it is. His Twitter handle is AbelFoip. Correct. It still is. Which... which is an acronym for always be integrating your loss function over your posterior. Now, I mean, what on earth does that mean?
SPEAKER_00That's clearly impenetrable.
SPEAKER_03Anything we're talking about, right? And already I'm thinking Bayesian inference. But I want to just talk through a brief example, which can help us start thinking about decision making under uncertainty. So an example Jim gives is a new type of chemotherapy drug where you run an RCT and get a causal estimate of the effect. Now, the intervention will be costly to implement. It will be both expensive and painful. The effect has diminishing returns on welfare, reduces probability of death in the next six months, but no long range effect on mortality. At the expected, at the point estimate effect size,
it seems to make sense. So what that means is that your loss function looks pretty good at that effect size. Now, but that doesn't tell you much about the distribution of possible outcomes, right?
SPEAKER_03So how do you get the distribution of possible outcomes? What you do is look at the probability distribution of the effect size after you incorporate all your modeling and data into it. Now, that's called the posterior. distribution once we've incorporated our modeling and data into everything we get this posterior distribution and we want to convolve that in some sense so look at that at each point in the distribution multiply that by the loss function or the cost and figure out then what the integral of all that is
essentially so for those who don't know a lot of calculus essentially what we're doing there is at each point we're multiplying them and adding it all together to essentially get the
SPEAKER_03average right of The estimate weighted, instead of just looking at the average of the estimate, we're weighting it by all the possible effect sizes in order to make a decision. And I'll link to it. Well, I have given the episode of the podcast in the YouTube chat. I'll link to it in the show notes for those listening to the podcast itself. But I think this is a nice way to start thinking about decision making. under uncertainty but i do think this would be a nice point to um speak to mike smith's question because we are talking about making decisions
we're talking about decision makers who may not be technical or computational mike asked how do you communicate model outcomes and predictions to decision making and then mike says
SPEAKER_03because the danger is that they will hear computer says no
SPEAKER_00Right. So let me tell you just like hand wavy how a lot of professional risk taking organizations think about this. Now, what I'm not going to do and we'll get a lot of comments in the podcast and people will crap at me on Twitter or whatever. i'm not going to do that anyway man exactly that's what i'm there for and people but this is going to have some holes in some of this but conceptually let's start with this as a simplified framework knowing that it's a limited framework so what a
lot of risk-taking organizations do in order well first of all if we have a financial organization where the outcomes are financial the integration over the
SPEAKER_00posterior with the loss function becomes easy And the reason it's easy is they're just numbers. We don't have to do something like turn suckiness of life experience into a metric, right? We just have negative $100 million. It's really easy, right? So this is much easier in a financial trading shop. So I'm gonna kind of use that example. So we take the losses and then you have the probability distribution and you can get a probability distribution of losses.
SPEAKER_00So when we integrate our posterior distribution with our loss function, we get a posterior distribution that is in dollars. And we can say, okay, we have a 5% chance of losing $100 million. We have a 20% chance of losing $10 million. We have a 30% chance of, you know, and we can do the whole distribution, right? I need not go through the full example. And we have some mean expected. return.
SPEAKER_00That's the average. Well, in the world of finance, they do a thing called risk-adjusted return on capital. Rayrock, it's even got a catchy name. And what we can basically do there is say, okay, well, take your loss at some point in the bad tale, So in your organization can say, okay, let's take the one in 20, the 95th percentile, and we're just going to get a ratio when we decide what that potential loss is divided by the expected profit.
And there we have a measure of our mean relative to a static point in the tail.
SPEAKER_00And we can compare two deals, ones with a higher mean and a higher loss in the tail, the other one with a lower mean but a lower loss in the tail. Well, how do those compare? That ratio between that mean expected profit and the loss out in the tail can begin to help you triangulate on how to think about those two deals relative to each other because we're trying to compare the expected to some downside, right? risk, right? This operation is like covered in undergrad textbooks, right? In finance. Great place to start, right?
SPEAKER_00And then you can do interesting stuff like say, oh, what's our return on risk-adjusted return on capital for all of our positions? That's our main portfolio. We've got a new deal we want to do. Oh, economists are all fetishized the margin, right? Making decisions on the margin. Well, we can say, what's the return on capital of this portfolio by itself? And then we can take this deal, put it in there and say, what's the risk adjusted return on capital after adding that deal in? Ta-da.
SPEAKER_00Risk adjusted return on capital for a single deal, marginal Rayrock. And that will give you some, then you have some potential set of deals you might put in that portfolio. Well, you can calculate the marginal Rayrock for those to understand how they might fit. in that deal, right? And so that's one way, if you're in financial land, you can, if you turn everything into dollar losses, you figure out which point in your tail is interesting to you. There's a big set of assumptions, right? I'm hand-waving by which point do you put, that sort of thing.
SPEAKER_00But you can compare your expected to some point in the tail and have some sophistication when you think about adding things to your portfolio or adding risk to the portfolio. Yeah, and of course, in the financial world, there's an obvious metric to use. And part of the challenge is figuring out what the cost function actually is for
SPEAKER_03any of the work and decisions we're making. Wow, what a cliffhanger. This is exactly where we'll pick up in the next episode of Vanishing Gradients. Tune in to hear more about making decisions under uncertainty and how this applies to the worlds of data science, machine learning, business, insurance, and reinsurance. That's right. This will include how data science can be more tightly coupled with the decision function in organizations. some common mistakes and failure modes of making decisions under uncertainty,
SPEAKER_03heuristics for principled decision-making in data science, and the intersection of model building, storytelling, and cognitive biases to keep in mind. Look forward to seeing you there. Thanks for tuning in, everybody. And thanks for sticking around to the end of the episode. I would honestly love to hear from you about what resonates with you in the show, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know currently is on Twitter, at Vanishing Data is the podcast handle, and I'm at Hugo Bowne. See you in the next episode.
Hilary Mason, CEO of Hidden Door, works with agents across software development and creative projects. Drawing on Richard Hamming’s distinction between science and engineering, she describes agents as “bringing the...
Agents can write the code, run the analysis, and produce a convincing explanation. How do you check that they’ve answered the right question, used the data appropriately, and reached a conclusion you can act on? I...
“It’s an LLM, a loop, and enough tokens.” - Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?...
“If you feel that a product is hard to eval, or you feel like, ‘I don’t even know how to eval this,’ it’s a strong smell that your product isn’t good.” - Hamel Husain, on AI product design An AI data agent tells you...
“It would be sad if local models were not an option and there were only proprietary models. It’s good to have alternatives. Competition is good for business.” - Sebastian Raschka, on open-weight AI Kimi K3’s weights...