<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bryce Davitt on Medium]]></title>
        <description><![CDATA[Stories by Bryce Davitt on Medium]]></description>
        <link>https://medium.com/@brycedav7?source=rss-b1741fee5d7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ppYpOabJmvjjNWZBN-812w.png</url>
            <title>Stories by Bryce Davitt on Medium</title>
            <link>https://medium.com/@brycedav7?source=rss-b1741fee5d7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:13:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brycedav7/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Make Me a Market]]></title>
            <link>https://medium.com/@brycedav7/make-me-a-market-7eeb5ac81320?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eeb5ac81320</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 19:44:54 GMT</pubDate>
            <atom:updated>2026-10-15T19:44:54.868Z</atom:updated>
            <content:encoded><![CDATA[<h3>Four Words That Open Every Trading Interview</h3><p>If you interview for a trading role at Jane Street, SIG, Optiver, or IMC, there’s a good chance someone will look across the table at some point and say: “Make me a market.”</p><p>On what? Could be anything. The sum of three dice. The number of windows in the building. The temperature in Chicago tomorrow at noon. The subject doesn’t really matter, because the question isn’t about the subject. It’s about whether you can do the one thing every market maker does thousands of times a day, name a price you’d buy at, a price you’d sell at, and survive the person on the other side who gets to choose.</p><p>That last part is what makes it hard. When you quote a market, you don’t pick the direction. Your counterparty does. And they only trade with you when they think you’re wrong.</p><p>Most people treat the game as a mental math test. It’s actually a compressed version of three real problems in market microstructure: estimating fair value, pricing the risk that someone knows more than you, and managing the position you get stuck with. Each one has real math behind it, and the good answer to “make me a market” quietly uses all three.</p><h3>Reading the Order Book</h3><p>A limit order book is just two sorted lists. On one side, everyone who wants to buy and the price they’ll pay (bids). On the other, everyone who wants to sell and the price they’ll accept (asks). Here’s a toy snapshot of a stock:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*08kLjW6nZ8FND_yMbl9-TA.png" /></figure><p>The top row is the inside market: best bid 100.00, best ask 100.02. The gap between them is the spread, here 2 cents. Anyone who wants to trade immediately has to cross it, buying at the ask or selling at the bid. Whoever is posting those quotes collects it.</p><p>The usual definition of “fair price” is the mid:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*YBgkUafl5SSuhCajaiceNw.png" /></figure><p>But the mid ignores something obvious in the table. There are 500 shares bid at the top and only 100 offered. The ask is thin. A couple of small buy orders will clear it, and the next trade is far more likely to print at 100.02 or higher than at 100.00.</p><p>The microprice fixes this by weighting each side by the size on the opposite side. Define the imbalance as the bid’s share of total top-of-book size:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*UijU0MHP6YzHE0wQeBof2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*c4l2KC0ouPUJZr5fn6b4Cw.png" /></figure><p>With 500 bid and 100 offered, I = 500 / 600 ≈ 0.83, so the microprice is about 100.0167. That’s two-thirds of a cent above the mid, leaning toward the side that’s about to give way. It looks like a rounding error until you remember a market maker might trade the name thousands of times a day. Centering your quotes on the wrong number by a sixth of a tick, every time, is a very consistent way to lose money.</p><p>The broader point, fair value isn’t a single obvious number sitting in the middle of the spread. It’s an estimate, built from whatever information the book is leaking. That’s exactly what the trading game is asking you to do.</p><h3>The Game: Make Me a Market on Three Dice</h3><p>Here’s the standard version. I’m going to roll three fair dice. Quote me a bid and an ask on the sum. I can buy from you at your ask, sell to you at your bid, or pass. After the roll, the contract settles at the actual total.</p><p>Step one is fair value. Each die has expected value 3.5, so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*QGMR7IFv3JyGCNS8a8WLNQ.png" /></figure><p>Step two is how uncertain that number is. One die has variance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*StQmFERLHnzH_j9jTvPxwA.png" /></figure><p>The dice are independent, so variances add: Var(S) = 3 × 35/12 = 8.75, and the standard deviation is about 2.96. Most outcomes land somewhere between 7.5 and 13.5.</p><p>Now the actual quote. Suppose you say “10 at 11.” If I’m guessing blindly and trade with you either way, you sell at 11 something worth 10.5 on average, or buy at 10 something worth 10.5. Either way your expected profit is the half-spread, 0.5 per contract. A market maker doesn’t need to predict the dice. You get paid for standing in the middle.</p><p>So why not quote “9 at 12” and collect 1.5 per trade? Because nobody trades with you. Width is a trade-off between edge per trade and number of trades. Too tight and you’re giving away protection; too wide and you’re not a market.</p><p>Then the interviewer changes the game: “I just looked at one of the dice. It’s a 6.” Your old market is now badly wrong. The new fair value is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*a37Wlu7oMA8Th1CgxIfbxA.png" /></figure><p>The uncertainty shrinks too, since only two dice are unknown: standard deviation √(35/6) ≈ 2.42. A sensible new market is something like 12.5 at 13.5, recentered and slightly tighter. If you had left 10 at 11 up, anyone who saw that die would lift your offer every single time.</p><p>Which raises the real question. What if the interviewer looked at the die and didn’t tell you?</p><h3>Why the Spread Exists: Adverse Selection</h3><p>In the blind-guessing version, the spread is pure profit. In real markets it’s mostly insurance. Some of the people hitting your quotes know something you don’t, and the spread is what you charge everyone so that the informed ones don’t bankrupt you.</p><p>The cleanest model of this is Glosten and Milgrom (1985). Strip it down:</p><ul><li>An asset is worth either V_H or V_L, each with probability 1/2. Call the gap Δ = V_H − V_L.</li><li>A fraction μ of traders are informed. They buy when the value is high and sell when it’s low.</li><li>The other 1 − μ are noise traders who buy or sell with equal probability, for reasons unrelated to value.</li><li>The market maker is competitive, so quotes earn zero expected profit.</li></ul><p>The key move: the market maker sets the ask equal to the expected value <em>given that someone just bought</em>. Not the unconditional expected value. Your quote has to be correct in the world where it gets hit.</p><p>The probability of a buy in each state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5bwS4eOukajbuLEWSMcgOA.png" /></figure><p>Buys happen half the time overall, so by Bayes’ rule P(V_H | buy) = (1 + μ)/2. The ask is then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*ig8AfqKZe2WJAyPa4AdK_w.png" /></figure><p>The bid is the mirror image, mid minus μΔ/2. So the spread is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*vjPwBcsc_iyzSStKP5cOwA.png" /></figure><p>That’s the whole idea in one line. The spread is the fraction of informed flow times how much they know. A stock with no news coming and mostly retail flow trades tight. The same stock the morning of earnings trades wide, because Δ just got bigger.</p><p>You can check that it actually breaks even. Each noise trade earns the half-spread, μΔ/2. Each informed trade loses Δ/2 − μΔ/2 = (1 − μ)Δ/2. Weighting by how often each shows up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*sTGnnYm2je0T1EEO1RklFQ.png" /></figure><p>Noise traders pay for the informed traders’ profits, and the market maker is just the pipe in between.</p><p>Back to the dice. If there’s a real chance the interviewer peeked, a buy at your ask is evidence that the dice came up high. The right response isn’t just to widen up front. It’s to move your fair value up after you get lifted, because the trade itself was information. This is the part candidates miss most often: they treat each trade as a separate event, when every fill is telling them something about where the price should be.</p><h3>The Position You Get Stuck With: Inventory Risk</h3><p>Glosten-Milgrom assumes the market maker doesn’t care about holding a position. Real ones care a lot. Every time you buy at your bid, you now own something whose price can move against you before you find a seller. Get lifted five times in a row and you’re short five, exposed to whatever happens next.</p><p>The standard model here is Avellaneda and Stoikov (2008). The market maker has mid-price s, inventory q (positive means long), price volatility σ, risk aversion γ, and a horizon T. The first result is that you shouldn’t center your quotes on the mid. You should center them on a reservation price:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*HVMWNONvtR1DmVN1YmrzkA.png" /></figure><p>Read it term by term. If you’re flat, r = s. If you’re long, r drops below the mid, so you quote lower: your bid becomes less attractive (you buy less) and your ask becomes more attractive (you sell more). The adjustment scales with how much you’re holding, how much you hate risk, how volatile the asset is, and how long you’re stuck with it.</p><p>The second result is the optimal total spread around that reservation price:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*2P37Na4o5qGxBz_FpNwiYw.png" /></figure><p>Here k describes how quickly order flow dries up as you quote further from the mid (fill rate falls off like e^(−kδ)). The first term is a risk charge: more volatility, wider quotes. The second is a competition term: if fills drop off fast when you widen (large k), you’re forced to quote tight.</p><p>Plug in numbers. Say s = 100, σ² = 4, T − t = 1, γ = 0.1, k = 1.5, and you’re long 2 units:</p><ul><li>Reservation price: r = 100 − 2 × 0.1 × 4 = 99.2</li><li>Total spread: 0.4 + 20 × ln(1.0667) ≈ 0.4 + 1.29 = 1.69</li><li>Quotes: 99.2 ± 0.845, so roughly <strong>98.35 at 100.05</strong></li></ul><p>Notice the ask is barely above the mid while the bid is 1.65 below it. You haven’t changed your view on what the asset is worth. You’ve changed how badly you want to trade each way. That asymmetry is called skew, and it’s how market makers flatten positions without ever crossing the spread themselves.</p><p>Interviewers test this directly: “You’re already long three contracts from earlier. Make me a new market.” The right answer keeps the same fair value and shifts both quotes down.</p><h3>Putting It Together: A Full Round</h3><p>Here’s how a good round of the three-dice game actually plays out, with all three ideas running at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XfcUwWYjIQcJorMJHOe2Sg.png" /></figure><p>A few things are happening in that sequence.</p><p>After each buy, fair value moves up. That’s Glosten-Milgrom: a buy is more likely when the dice are high, so you update. But the update is modest, a quarter point, not a full point. Most of the time the interviewer is just testing whether you’ll overreact, and if you chase every trade you get pushed around.</p><p>The quotes move up faster than fair value. That’s Avellaneda-Stoikov: you’re short and want to buy back, so you lean your market toward buying. The center of the quote sits above your fair value estimate on purpose.</p><p>When real information arrives, it dominates everything. The revealed die drops fair value to 9, and the market jumps down to match. You sold two contracts at an average of 11.25 on something now worth 9 in expectation, about 4.5 points of expected profit. The spread you charged and the discipline of not over-updating are what put you on the right side of that.</p><p>The width barely changed through all of it. You could argue for tightening slightly after the reveal, since only two dice are unknown, and an interviewer would be happy to hear that reasoning out loud.</p><h3>What the Game Is Actually Testing</h3><p>On the surface, “make me a market” checks whether you can compute an expected value quickly. Almost everyone who gets the interview can do that. What separates people is everything after the first quote.</p><p>Can you treat a trade as information rather than just a fill? Can you hold a view on fair value separately from where you’re quoting, and explain why they’re different? Can you update without lurching, staying calm when someone keeps lifting your offer and moving decisively when real news arrives?</p><p>Those are the same questions a market maker answers all day, just with order books instead of dice. The microprice is a fair value estimate built from book imbalance. The Glosten-Milgrom spread is a price on the risk of trading against someone smarter. The Avellaneda-Stoikov skew is a plan for getting out of whatever position the market forces on you.</p><p>The takeaway isn’t any one formula. It’s that a quote is never just a guess at what something is worth. It’s a guess at what it’s worth given that someone chose to trade with you, adjusted for what you’re already holding. Get that framing right, and the math mostly follows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eeb5ac81320" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The German Tank Problem]]></title>
            <link>https://medium.com/@brycedav7/the-german-tank-problem-e567c5498923?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e567c5498923</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[logic]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 17:42:22 GMT</pubDate>
            <atom:updated>2026-06-19T17:42:22.175Z</atom:updated>
            <content:encoded><![CDATA[<p>In 1943, Allied military intelligence had a problem that had nothing to do with combat and everything to do with arithmetic. They needed to know how many tanks Germany was building each month, and the usual sources of reconnaissance photos, captured documents, and interrogations kept producing wildly different answers, almost all of them too high.</p><p>Their fix came from an unlikely place: serial numbers.</p><h3>Reading the Numbers</h3><p>German tank parts were manufactured with sequential serial numbers, the same way a factory might number every unit it produces in order. Each time a tank was captured or destroyed, analysts recorded the number stamped on it.</p><p>That turned a military intelligence problem into a statistics problem: if serial numbers run from 1 up to some unknown total N, and you’ve only observed a handful of them, with the largest being m, what’s your best estimate of N?</p><p>This shows up in interviews now and then, usually dressed up as boxes, lottery tickets, or product IDs instead of tanks, but the structure is always the same. It’s a commonly confusing little problem, and most people’s first answer to it is wrong in an instructive way.</p><h3>The Two Guesses People Reach For</h3><p>Ask someone random, and you’ll usually get one of two answers.</p><p>The first is simple: “N is probably just a bit more than m.” You saw a tank numbered 250, so the real total is probably 250-something, round up a bit and move on. The problem is that this isn’t really a calculation, it’s a shrug. There’s no principled way to know how much “a bit more” should be.</p><p>The second answer is more thought out, and it’s the one most people naturally jump to. The idea: “If the numbers are spread evenly from 1 to N, the average of your sample should land near N divided by 2. So take your sample average, double it, and that’s your estimate.”</p><p>That’s a real estimator, and it’s even unbiased, averaged across many repeated samples, it lands on the right answer. Which makes it a far more interesting wrong turn than the first guess, because it isn’t wrong in the way you’d expect.</p><h3>Why “Unbiased” Isn’t the Same as “Best”</h3><p>Here’s the part that trips people up, there can be more than one unbiased way to estimate the same unknown number, and they are not equally good. Being unbiased just means an estimator doesn’t systematically drift too high or too low on average. It says nothing about how much it bounces around from sample to sample.</p><p>The “average and double” method treats every number in your sample as equally useful, but most of those numbers are mediocre evidence. A serial number near the middle of your sample tells you far less about the true ceiling than the single highest number does. Folding in all that weaker evidence actually makes your estimate noisier, not more accurate.</p><p>The maximum observed value, by contrast, is the single most informative thing in your sample. The trick isn’t to abandon it, it’s to correct it properly, instead of either taking it at face value (too low) or drowning it out in an average (too noisy).</p><h3>Building the Actual Estimator</h3><p>Assume serial numbers run from 1 to N, and you sample k of them without replacement. Let m be the highest number you observe.</p><p>The expected value of that maximum follows a clean formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*4VvF6J0OSVhHZWM0_NofXg.png" /></figure><p>Rearranging this to solve for N gives an estimator:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*nfXLqNoP7J6RZ9LtZZAoBA.png" /></figure><p>This is the minimum-variance unbiased estimator for N, of all the estimators that don’t systematically over- or undershoot, this one has the smallest spread. It isn’t just an unbiased answer, it’s the most efficient one available.</p><p>A quick check on the formula, when k is large, the correction term m/k shrinks toward zero, and the estimate collapses close to m itself, which makes sense, since a big sample is unlikely to have missed the true ceiling by much. When k is small, that correction term grows, because a small sample has a real chance of badly undershooting the truth.</p><p>Plug in numbers, say you’ve captured 10 tanks, and the highest serial number among them is 250.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*Svw8T1_jlzJlWchibVfzTA.png" /></figure><p>Now compare that to the “average and double” approach. Run both estimators across many repeated samples, and the rank-based one clusters far tighter around the true value, especially when your sample is small relative to N. Same unbiasedness, much less noise.</p><p>History backs this up. Postwar comparisons against actual captured German production records showed the serial-number method landing remarkably close to the true monthly totals, while conventional intelligence estimates, pieced together from spies and reconnaissance, were inflated by several multiples of the real figure.</p><h3>What the Problem Is Actually Testing</h3><p>“Average and double” is a legitimate estimator, and plenty of people would stop right there, satisfied that it’s unbiased. That’s exactly what makes this a good interview question, it doesn’t just filter out people with bad instincts. It filters out people who stop at “technically correct” instead of asking whether a better answer is hiding underneath it.</p><p>That distinction matters well beyond tank serial numbers. Estimating total order flow from a partial view of the book, sizing up a competitor’s position from the fills you can see, judging the depth of a dark pool from the trades that happen to print, these are all the same shape of problem, an unknown total, glimpsed through an incomplete, structured sample.</p><p>The takeaway isn’t the formula itself. It’s the habit underneath it, when you land on an answer that’s technically defensible, the right move is to ask whether it’s actually the best one available, not whether it merely clears the first bar you happened to think of.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e567c5498923" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Probability Puzzle Everyone Should Know Before Touching Leverage]]></title>
            <link>https://medium.com/@brycedav7/the-probability-puzzle-everyone-should-know-before-touching-leverage-340460326738?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/340460326738</guid>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 22:12:48 GMT</pubDate>
            <atom:updated>2025-12-05T22:12:48.258Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day I revisited a probability problem that shows up everywhere, from quant interviews at hedge funds to stochastic calculus textbooks, but most people never connect it to the real world of trading. It’s called Gambler’s Ruin, and at first glance it looks like another casino exercise. You picture two people flipping coins, one with a bit less money than the other, and you try to guess who gets wiped out first.</p><p>But this simple setup hides a surprisingly deep lesson about liquidity, randomness, and solvency. If you’ve ever traded leveraged products, sold options, or run mean-reversion strategies, you’ve messed around this exact logic without knowing it.</p><p>And that’s what makes the puzzle so interesting is it doesn’t just test probability skills, it tests whether you understand survival as a mathematical concept.</p><h3>The Setup</h3><p>Two gamblers, Conner and Shane, agree to play a simple betting game.</p><ul><li>Conner starts with $10</li><li>Shane starts with $20</li><li>They flip a fair coin over and over</li><li>Each heads gives Conner $1 from Shane</li><li>Each tails gives Shane $1 from Conner</li><li>They stop when someone hits zero</li></ul><p>The crucial question is this:</p><p><strong>What is the probability that Conner eventually goes broke?</strong></p><p>At first, intuition seems decent. Conner has half as much as Shane, so you figure he’s more fragile and more likely to collapse under a streak of bad luck. You might even guess something around 65% or 70%.</p><p>Which is not terrible as a first instinct.</p><p>But quant interviews don’t give points for instinct. They want a clean method, something that still works when the puzzle is more complicated than two people flipping coins.</p><h3>The First Intuition Trap</h3><p>The game is perfectly fair. Each flip is 50/50. Neither player has an advantage. Yet one of them is guaranteed to go broke eventually if they play long enough.</p><p>No matter how evenly matched the game is, time and variance guarantee that eventually somebody hits a streak long enough to wipe out their entire bankroll. If neither Conner nor Shane has infinite capital, ruin is just a matter of waiting around.</p><p>This is one of those moments where you begin to see why leverage, margin thresholds, and liquidity constraints are so critical: expected value is irrelevant if you go insolvent before the expectation delivers.</p><h3>Turning Intuition Into a Markov Chain</h3><p>Instead of guessing, you can formalize the game as a Markov chain, which is just a way of saying that the future depends only on the present state, not on how you got there.</p><p>If Conner currently has $13, his long-term survival probability from that point is exactly the same whether hegot there after a streak of ten wins or after a rollercoaster of random swings. The state of the current bankroll is everything.</p><p>Two terminal states exist:</p><ul><li>Conner reaches $0 (ruin)</li><li>Conner reaches $30 (Shane is ruined)</li></ul><p>Every flip moves the state up or down by a dollar until one of those absorbing boundaries is hit.</p><p>This is exactly the structure that makes Gambler’s Ruin clean to analyze and surprisingly intuitive once isolated.</p><h3>The Actual Ruin Probability</h3><p>Because the game is fair, the ruin probability ends up with a compact expression.</p><p>If Conner starts with 10 out of a total of 30 dollars, then his probability of eventual ruin is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*vnV1-VDv7d417xXw359bvA.png" /></figure><h3>What Happens If Conner Has an Edge?</h3><p>Instead of playing a fair game, imagine the coin is slightly biased toward Conner. Maybe he wins 55% of the flips.</p><p>Most people now assume the ruin probability collapses. Surely a positive edge means Conner is safe.</p><p>But volatility doesn’t care about your expectation until you survive long enough for it to play out. Even with a long-term advantage, Conner can still be wiped out if he begins with too little capital relative to the swings he must endure.</p><p>With a biased game, the ruin probability becomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*ygmNrVH--w4QSP7PQYgn5A.png" /></figure><p>Where:</p><ul><li>p = probability Conner wins one flip</li><li>q=1−p = probability Conner loses one flip</li></ul><p>That’s another core lesson, a small positive expectation is not the same thing as safety. Most profitable systems blow up not because the math is wrong, but because the bankroll is too small relative to variance.</p><p>This is how traders lose money on strategies that are “profitable on average.” The reality doesn’t care about the average if you don’t survive the path that gets you there.</p><h3>Why Hedge Funds Love This Puzzle</h3><p>Gambler’s Ruin doesn’t appear in interviews because coin flipping is exciting. It appears because it measures the deeper idea of whether you understand survival as a stochastic process.</p><p>The parallels are everywhere:</p><ul><li>leveraged portfolios that blow up before delivering their drift</li><li>retail traders doubling down on mean reversion until spreads widen suddenly</li><li>perfectly fair strategies that evaporate during a liquidity drought</li><li>option sellers who make small steady income for years until a single shock cleans them out</li></ul><p>No one is cheated in these scenarios. The game is fair or even profitable in expectation. The issue is finite capital in an environment with infinite variance.</p><p>Without infinite capital, ruin isn’t a catastrophic surprise — it’s a mathematical destination.</p><p>That’s why Markov chains matter here. They force you to think in terms of absorbing states, state transitions, and distance to the boundary. It’s no longer about guessing probabilities, it’s about understanding that randomness is adversarial when you’re too close to zero.</p><h3>The Counterintuitive Takeaway</h3><p>The most unsettling insight is this:</p><p>A perfectly fair game guarantees ruin for at least one participant given enough time.</p><p>The longer you play, the more certain that someone’s bankroll collapses to zero. Fairness has nothing to do with safety. Variance has all the power, and capital is the only buffer between variance and catastrophe.</p><p>Replace Conner and Shane with two trading firms, two counterparties, or even a single trader and the market, and suddenly the toy problem feels like a realistic stress scenario.</p><h3>Final Thought</h3><p>This is why Gambler’s Ruin belongs in quant interviews. It tests whether someone understands that risk is not about being “right.” Risk is about staying solvent long enough for being right to matter.</p><p>Anyone can model positive drift. Anyone can calculate expectation. But if you can’t reason about absorbing boundaries, liquidity, time horizons, and how volatility interacts with finite capital, then your probability skills are missing the single most important ingredient in stochastic environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=340460326738" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optiver and the 2008 Oil Market Manipulation]]></title>
            <link>https://medium.com/@brycedav7/optiver-and-the-2008-oil-market-manipulation-3f827568d178?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f827568d178</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[oil]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 00:16:30 GMT</pubDate>
            <atom:updated>2025-10-08T00:16:30.290Z</atom:updated>
            <content:encoded><![CDATA[<p>In 2008, the world of commodity trading was rocked not by a market crash, but by a revelation that a major trading firm had exploited the mechanics of the oil market for quick profits. The Dutch proprietary trading firm <strong>Optiver</strong> was charged by the U.S. Commodity Futures Trading Commission (CFTC) for manipulating oil futures prices on the New York Mercantile Exchange (NYMEX) in a scheme known as <em>“banging the close.”</em></p><p>The manipulation wasn’t about outsmarting the market or predicting price movements. It wasn’t about skill or insight into the fundamentals of oil supply and demand. Instead, it relied on a technical loophole in how futures contracts were settled. By exploiting this window, Optiver could influence the settlement prices of certain contracts and profit from the resulting discrepancies. In other words, it was pure market manipulation, engineered around the rules of trading rather than the behavior of the market itself.</p><h3>How the Scheme Worked</h3><p>At the heart of the scheme were Trading at Settlement (TAS) contracts, a type of futures contract whose value is tied to the daily settlement price rather than the price at the moment the contract is executed. Traders enter TAS contracts at a pre-agreed price relative to the settlement, meaning that the settlement price essentially determines the profit or loss. This made TAS contracts highly sensitive to any influence on the market close.</p><p>Optiver’s traders first built up large net positions in TAS contracts throughout the trading day. Then, in the final moments before and during the settlement period, they executed trades in the opposite direction on the corresponding oil futures contracts. By carefully timing these trades and using substantial volume, they nudged the settlement prices in a way that made their TAS positions profitable.</p><p>The manipulation was precise. Optiver executed roughly 20–30% of its futures trades just before the close, with the remainder during the settlement window. The goal was simple, move the price slightly but enough to benefit the TAS positions. Over an 11-day period in March 2007, the CFTC documented 19 separate attempts at manipulation, with at least five successful instances where the settlement price moved in Optiver’s favor.</p><h3>Evidence of Intent</h3><p>Regulators didn’t just rely on market data, they uncovered internal communications that made the intent unmistakable. Traders used terms like <em>“move,” “whack,”</em> and <em>“bully”</em> to describe their trades. Emails and recorded conversations revealed explicit discussions about pushing the market in order to profit from TAS contracts. Attempts to obscure these actions included false statements to NYMEX compliance officials, further highlighting that this was deliberate manipulation rather than a byproduct of normal trading.</p><h3>The Outcome</h3><p>By 2012, the CFTC and Optiver reached a <strong>$14 million settlement</strong>. Of that amount, $13 million was a civil penalty and $1 million represented disgorged profits from the manipulative trades. Beyond the financial penalty, Optiver was subjected to trading restrictions: the firm was prohibited from trading U.S. oil futures in the last three minutes before the market close for two years. Individual traders were also disciplined, receiving bans ranging from two to eight years.</p><p>While the total profits from the manipulations were relatively modest, the case had an outsized impact on Optiver’s reputation and highlighted the vulnerability of market settlement mechanisms to abuse.</p><h3>Lessons from the Case</h3><p>The Optiver scandal demonstrates that not all trading profits are the result of skill or strategy. Sometimes, they come from exploiting the structure of the market itself. Settlement prices, contract design, and timing can create opportunities for manipulation that reward traders not for insight but for the ability to engineer prices during critical windows.</p><p>The case also underscores the importance of regulatory oversight and market surveillance. Without careful monitoring, technical loopholes can be leveraged by well-resourced firms, eroding market integrity and trust.</p><h3>Conclusion</h3><p>The Optiver case is a very important story, showing that the market is not just about supply, demand, and price discovery. Sometimes, it’s about who understands the rules well enough to bend them. Optiver didn’t beat the market with clever analysis or foresight, it beat it by banging the close and manipulating settlement prices. For traders, regulators, and the public, the lesson is clear, markets must be constantly scrutinized, because the rules themselves can be as exploitable as the prices they produce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f827568d178" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Information Became Digital]]></title>
            <link>https://medium.com/@brycedav7/how-information-became-digital-3500aaa3d2f1?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3500aaa3d2f1</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 23:43:22 GMT</pubDate>
            <atom:updated>2025-09-09T23:43:22.133Z</atom:updated>
            <content:encoded><![CDATA[<p>When Claude Shannon founded the field of information theory in the 1940s, he gave us a way to measure something invisible but essential: <em>information</em>. Shannon showed that all information, every word you read, every photo you share, every song you stream, could be broken down into the smallest possible unit: the <strong>bit</strong>.</p><p>A bit is a yes-or-no, a one-or-zero, a flip of a coin. If I say, “please pass the salt,” the word <em>salt</em> has less than one bit of entropy; you already guessed it was coming. But if I say, “Hello, my name is…” the next word could be anything, and therefore it carries several bits of surprise.</p><p>From this tiny spark of abstraction, the digital age was born.</p><h3>From Voltages to Digits</h3><p>Imagine a wire carrying a signal. If you push 10 volts in, 10 volts come out the other end. You might think: the more precisely we measure voltage, the more information we can capture. With a super-sensitive voltmeter, maybe we can distinguish 1000 levels and get many bits of data in one go.</p><p>The problem? The real world is noisy. Dust on the wire, interference in the air, microscopic imperfections in copper, all blur those fine-grained signals. It turns out that distinguishing between <em>on</em> and <em>off</em> is far more reliable than distinguishing between 8.35 and 8.34 volts. And because it’s faster to make many simple measurements than a few precise ones, digital signals, strings of ones and zeros, proved superior.</p><p>That is why modern computing relies on <em>digital digits</em> instead of analog waves: it’s sturdier, faster, and easier to scale.</p><h3>Saying Anything with Bits</h3><p>Shannon’s theory also tells us that <em>any</em> information, numbers, words, music, images, can be encoded in bits, as long as we use enough of them. The trick lies in choosing the right representation.</p><h3>Place Value in Numbers</h3><p>You learned base-10 as a child: the “3” in 314109 means three hundred thousand, while the “9” means nine ones. In binary (base-2), the same principle holds but with only two digits: 0 and 1. The binary string 110101 equals fifty-three in decimal.</p><p>Binary is perfect for hardware, because distinguishing between two states, high and low voltage, is simple. But humans struggle to read long strings of zeros and ones, so computer scientists often group bits:</p><ul><li><strong>4 bits</strong> = a “nibble”</li><li><strong>8 bits</strong> = a “byte”</li></ul><p>Then came <strong>hexadecimal</strong> (base-16), which maps neatly onto binary while being human-friendly. For example, the hex number d02 translates into binary as 1101 0000 0010.</p><h3>Beyond Positive Numbers</h3><p>Of course, life isn’t just positive integers. How do you represent <em>negative numbers</em> with only 1s and 0s?</p><p>Three common approaches emerged:</p><ul><li><strong>Two’s complement</strong>, which cleverly makes arithmetic work the same for positive and negative integers.</li><li><strong>Biased numbers</strong>, used in floating-point exponents, where each number is offset by a fixed “bias.”</li><li><strong>Sign-bit representation</strong>, where the first bit acts as a plus or minus sign.</li></ul><p>Two’s complement won out for integers; biased and sign-bit representations became staples of floating-point math.</p><h3>Floating-Point and Infinity</h3><p>Real-world data often involves fractions, and for this we use the IEEE floating-point standard. A floating-point number is split into:</p><ul><li><strong>Sign bit</strong> (positive or negative)</li><li><strong>Exponent</strong> (stored as a biased integer)</li><li><strong>Fraction</strong> (the mantissa)</li></ul><p>With this structure, computers can represent not just ordinary numbers but also special cases like <strong>infinity</strong> and <strong>NaN</strong>. These conventions let machines deal gracefully with extreme or undefined values.</p><h3>Powers of Two</h3><p>If you’ve ever wondered why computer storage comes in weird sizes, like 256 GB or 1024 MB, it’s because computers live in powers of two.</p><ul><li>1 Ki (kibibyte) = 1024 bytes</li><li>1 Mi (mebibyte) = 1,048,576 bytes</li><li>1 Gi (gibibyte) = over a billion bytes</li></ul><p>These prefixes (K, M, G, T…) are the shorthand of computing. Knowing them by heart reduces mental overhead, freeing up brainpower for harder problems.</p><h3>From Bits</h3><p>A bit may be the smallest unit of information, but when you group them, structure them, and apply clever rules, you can encode <em>anything</em>. Text, video, sound, entire virtual worlds, each reduces to billions upon billions of tiny yes-or-no questions.</p><p>Claude Shannon’s idea that “information is bits” reshaped not just engineering but the modern world. Every click, every stream, every message you send is part of his legacy: a universe built out of simple coin flips, scaled to infinity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3500aaa3d2f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Memory Management and Smart Pointers in C++]]></title>
            <link>https://medium.com/@brycedav7/memory-management-and-smart-pointers-in-c-d6bffcbde54e?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6bffcbde54e</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 21:18:59 GMT</pubDate>
            <atom:updated>2025-08-08T21:18:59.647Z</atom:updated>
            <content:encoded><![CDATA[<p>In C++, memory is power and power comes with the responsibility to manage it. Every <strong>new</strong> has to meet its <strong>delete</strong>. Every borrowed pointer has to be returned, or at least clearly marked as borrowed. But in a large, evolving codebase, that contract gets violated easily. One missing delete in a rarely executed branch can go unnoticed for months, until it silently degrades performance or causes a crash in production.</p><p>That’s where the modern C++ approach shifts the game allowing for the owning of resources explicitly, and letting the compiler enforce the rules.</p><h3>Why Manual Management Breaks Down</h3><p>In theory, manual memory management is simple, allocate when you need something, free it when you’re done. In practice, it’s fragile. Functions throw exceptions, control flow changes, developers get distracted. Suddenly, cleanup code never runs.</p><p>Worse, ownership gets murky. Who is responsible for freeing this pointer? The function that created it? The caller? A global object? Without discipline, multiple parts of the program start believing they “own” the same allocation, leading to double frees, undefined behavior, and the kind of bugs that consume entire weekends.</p><h3>The Idea Behind Smart Pointers</h3><p>Smart pointers solve two problems at once, they <strong>own</strong> the memory they manage, and they <strong>automatically release</strong> it when no one needs it anymore. Instead of remembering to call <strong>delete</strong>, you wrap your raw pointer in something like <strong>std: : unique_ptr</strong> or <strong>std: : shared_ptr</strong>, and the destructor takes care of cleanup.</p><p>It’s not magic, it’s RAII (Resource Acquisition Is Initialization). The idea is that resource lifetime is bound to object lifetime. When the smart pointer object goes out of scope, it calls delete(or the appropriate cleanup function) for you.</p><h3>Choosing the Right Tool</h3><p><strong>std::unique_ptr</strong> — Exclusive ownership. No copies allowed. Perfect for when exactly one part of your code should own a resource at any given time. Lightweight, no reference counting overhead.</p><p><strong>std::shared_ptr</strong> — Shared ownership. Multiple parts of your program can hold onto the same object, and it’s only destroyed when the last shared_ptr goes away. Comes with atomic reference counting.</p><p><strong>std::weak_ptr</strong> — Non-owning observer. Lets you peek at a shared_ptr’s object without keeping it alive. Prevents reference cycles that could cause leaks.</p><p>Choosing between them isn’t about preference, it’s about modeling reality. If you know who owns what, you prevent ambiguity.</p><h3>The Subtle Benefit: Design Clarity</h3><p>When you see a function returning a <strong>std: : unique_ptr</strong>, you instantly know that the caller becomes the sole owner. When you see a shared_ptr, you know ownership is shared. This isn’t just memory safety, it’s communication. The ownership model is baked into the type system, making your codebase easier to reason about for everyone who touches it.</p><h3>Memory Leaks Aren’t Always Obvious</h3><p>The dangerous thing about bad memory management is how quietly it can fail. A program might leak small amounts of memory for years before anyone notices. By then, fixing it means untangling deep, intertwined logic.</p><p>Smart pointers change the default. Instead of asking, <em>“Did we remember to delete this?”</em>, you ask, <em>“Who should own this?”</em> That shift, from cleanup to ownership, is where safety comes from.</p><h3>The Bigger Point</h3><p>C++ will let you write code that’s lightning fast and close to the metal. But it will also let you shoot yourself in the foot with dangling pointers and leaks if you’re careless. Smart pointers aren’t about taking control away from you, they’re about giving you a better way to express intent, so the compiler can help keep you honest.</p><p>In the end, memory management is less about deleting things at the right time and more about <strong>making sure they belong to someone in the first place</strong>. When ownership is clear, letting go becomes automatic. And the program, like a well-kept house, stays clean without constant manual effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6bffcbde54e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Random Walk Theory]]></title>
            <link>https://medium.com/@brycedav7/the-random-walk-theory-9ad3e1adc05e?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ad3e1adc05e</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 14:07:07 GMT</pubDate>
            <atom:updated>2025-08-02T14:07:07.162Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago, I was looking at the chart of a stock, one that had just jumped 12% after earnings. The move looked sharp, decisive, even obvious in hindsight. Every analyst had a take, every commentator a story. It was a “clear” signal. But when I zoomed out, the picture changed. The chart over the last six months was a jagged, erratic mess, down, up, flat, spike, drop. None of it seemed to follow any real pattern. And I couldn’t shake the feeling: What if this isn’t a story? What if this is noise?</p><p>That’s the unsettling heart of <strong>Random Walk Theory, </strong>the idea that asset prices evolve like a coin flip: today’s move is independent of yesterday’s, and tomorrow won’t care about either.</p><p>It’s not a new theory. It’s been around since Bachelier and later popularized by Burton Malkiel, who famously said that “a blindfolded monkey throwing darts at the financial pages could select a portfolio that performs as well as one carefully selected by experts.” At first glance, that feels like a provocation. But the math behind it is harder to dismiss.</p><h3>The Logic Behind the Walk</h3><p>Let’s suppose that every new price reflects all currently available information. That means only new, unpredictable information can move the price. And if news itself is random, or at least unpredictable, then price changes must be too.</p><p>Formally, a simple version of this process is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*xENyV-96kVgMA63Iuc52ow.png" /></figure><p>Where epsilon is a random variable, often assumed to be drawn from a normal distribution with zero mean. It could be positive, negative, or zero, but importantly, it’s independent of past steps.</p><p>So over time, the path of the asset becomes a kind of financial Brownian motion. Not because investors aren’t trying to find patterns, but because any patterns that do exist get arbitraged away the moment they’re discovered.</p><h3>What This Means for Prediction</h3><p>The implication is uncomfortable: if markets follow a random walk, then past price data is useless for forecasting future prices. Your chart patterns, your moving averages, your Fibonacci retracements, all of it becomes superstition.</p><p>Of course, this doesn’t mean you can’t make money in markets. It just means you’re not making it because you can predict. You’re making it because you’ve been compensated for risk, or because you had structural advantages, lower fees, better execution, tighter spreads. But if you think you’re seeing a “setup,” the Random Walk perspective asks: <em>Is that signal, or is that just what randomness looks like when you squint at it hard enough?</em></p><h3>Expected Value Without Prediction</h3><p>There’s a practical parallel here with decision-making. You can construct a positive expected value (EV) strategy without predicting individual outcomes. In fact, many of the most robust systems in finance, from statistical arbitrage to insurance underwriting, rely not on forecasting, but on consistently applying edge across repeated trials.</p><p>Suppose you have a strategy that makes $1 when correct and loses $1 when wrong. If the win rate is truly 50%, you’re flipping a fair coin — break-even in the long run. But suppose you shift the payoff structure slightly: you win $1.10 when right, and still lose $1 when wrong. Even if your prediction accuracy stays at 50%, your EV is now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*JXBAcKgpRHCwLN7SiERc4Q.png" /></figure><p>That’s five cents per trade, on average, not much, but over thousands of trades, it’s a real edge. The point is: you can’t control the randomness, but you can position around it.</p><h3>Belief Updating Under Uncertainty</h3><p>The Random Walk view also invites a shift in how we handle evidence. When the world is unpredictable, it’s tempting to overreact to noise, to assume that a price spike means “momentum,” or a drop means “sentiment is turning.”</p><p>But if you treat each new observation as a Bayesian update, you avoid jumping at shadows. Just like in statistics, the less confident your prior is, the more slowly you should adjust your beliefs. If the market moved 3% today, ask yourself: <em>How likely is that under the assumption that price changes are normally distributed?</em> And if it’s not that unlikely, maybe it doesn’t mean anything at all.</p><p>Randomness doesn’t just mislead, it <em>feels</em> like meaning. That’s the trap.</p><h3>The Bigger Point</h3><p>What makes Random Walk Theory so powerful, and so frustrating, is that it demands intellectual humility. It tells you that your brain, which evolved to detect patterns, is probably seeing too many of them. That your “strategy” might be a backtest overfit to noise. That your conviction is often just a lagging indicator of recent price action.</p><p>But it also offers a kind of freedom. If you accept that you can’t predict the next move, you can start focusing on things you <em>can</em> control: position sizing, transaction costs, discipline, diversification. You can stop trying to guess what happens next and start preparing for whatever does.</p><p>In the end, a random walk doesn’t mean the market is meaningless. It means the meaning isn’t in any single step, it’s in how you navigate the terrain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ad3e1adc05e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When 7-High Is the Right Move]]></title>
            <link>https://medium.com/@brycedav7/when-7-high-is-the-right-move-962b47e3a25b?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/962b47e3a25b</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[poker]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 02:27:50 GMT</pubDate>
            <atom:updated>2025-07-24T02:27:50.714Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Modern Poker Theory -&gt; Trading</em></h3><p>Earlier this week I found myself watching a high-stakes poker hand between two professionals. It looked ordinary at first , standard preflop open, a dry flop, some probing on the turn. Then, on the river, one player shoved all-in for nearly twice the pot. The camera zoomed in. He had nothing. Seven high. No draw. No chance of winning at showdown. Just an all-in bluff that seemed disconnected from the texture of the hand.</p><p>But it wasn’t random, or reckless. It was calculated. And more importantly, it was optimal, not because of the cards, but because of the situation.</p><p>At the center of this kind of move is the concept of <strong>Game Theory Optimal (GTO)</strong> poker, which tries to construct balanced strategies that cannot be exploited by any opponent. And while GTO may sound like a poker-specific abstraction, it offers an insight into trading systems as well: good decision-making isn’t always about maximizing the immediate outcome, it’s about minimizing your long-term vulnerability.</p><h3>The Bluff Frequency Equation</h3><p>Suppose on the river, you’re representing a strong value range: maybe top set, two pair, or a disguised straight. If you always bet only those strong hands, your opponent has no incentive to call unless they beat them. Your value bets stop getting paid.</p><p>So how often should you bluff?</p><p>Game theory answers that through a simple ratio: if you bet an amount equal to the pot, then your opponent is getting 2-to-1 pot odds to call. That means you should bluff one-third of the time and value-bet two-thirds of the time. Why? Because that makes your opponent indifferent to calling or folding, they can’t exploit you either way.</p><p>Here’s my attempt at the math:</p><p>Let’s say your opponent folds to a bet with probability F, and you’re bluffing. If the pot is P, and you bet B, your <strong>expected value of the bluff</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*WQ69JZrAvB4792SoPu4q_A.png" /></figure><p>To make this a breakeven bluff (where EV = 0), solve for the fold frequency F:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*enXL_nkd6pTRf8MmnEbhzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*3T5x3VnsCvMaYqr96O1Kog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/1*8KOjqjpTfqo-5wXtLlJ8aQ.png" /></figure><p>This means that if you’re betting $100 into a $100 pot, then you only need your opponent to fold 50% of the time to break even. If they fold more often than that, bluffing becomes profitable. If you’re betting $200 into a $100 pot , you only need them to fold 66.7% of the time.</p><p>That’s the logic behind the seven-high shove. It’s not about what hand you have, it’s about how it fits into your overall betting range, and whether it keeps your opponent indifferent.</p><h3>The Trading Parallel</h3><p>This bluff math has a direct parallel in trading: expected value per decision. You don’t take every trade to win it , you take trades where the expected return outweighs the expected loss, even if most of them individually might fail.</p><p>Consider a trading strategy that takes 60% losers but has a payoff ratio of 2:1. The EV per trade is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*8V0GCUGrDgDi1hmzlHYx4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*_hjVnE2L8qUDrEdmwsbw4Q.png" /></figure><p>It’s positive. But to someone who doesn’t understand variance or payoff structure, that strategy might look broken, just like the poker bluff.</p><p>Traders, like poker players, operate under uncertainty and must size and time their decisions based on probabilistic edges, not certainty. And in both domains, short-term outcomes can look like failure. Only over hundreds or thousands of iterations do those small edges compound into durable performance.</p><h3>Bayesian Thinking at the Table</h3><p>There’s also a deeper probabilistic lesson here, one that ties bluffing directly to Bayesian reasoning. When you bet large on the river, your opponent updates their belief about your hand. They began with a prior based on your preflop range and betting line. But now they must factor in the evidence, your willingness to risk two pot sizes on a hand you might not win.</p><p>They’re asking themselves: <em>What’s the probability he’s bluffing, given this action?</em></p><p>And if your bluff frequency is properly balanced, then the Bayesian answer is <em>uncertain enough</em> to make folding costly.</p><h3>The Bigger Point</h3><p>That hand stayed with me not because it was flashy, but because it exposed something fundamental about decision-making in uncertain environments. In both poker and markets, success doesn’t come from chasing certainty or being right every time. It comes from understanding how your strategy performs against a rational adversary, whether that adversary is a person across the table, or the entire structure of the market.</p><p>Shoving with seven-high looks insane. So does shorting a strong stock, or buying after a massive drop. But if the math supports the move and if it’s optimal within the system, then your job is to trust it.</p><p>Not every bluff has to work. Not every trade has to win. What matters is that your reasoning holds up when the stakes are high and the feedback is noisy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=962b47e3a25b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Biased Coin Puzzle — Citadel Interview Question]]></title>
            <link>https://medium.com/@brycedav7/the-biased-coin-puzzle-citadel-interview-question-5b0736410ed1?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b0736410ed1</guid>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 23:27:58 GMT</pubDate>
            <atom:updated>2025-07-16T23:27:58.858Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Biased Coin Puzzle — Citadel Interview Question</h3><p>The other day, I came across a puzzle that’s been used in Citadel interviews for both interns and full-time quant roles. It’s deceptively simple, but it turns into a classic Bayesian trap if you don’t stop and think.</p><h3>The Problem</h3><p>You’re given a bag containing 100 coins. One of those coins is <strong>double-headed</strong> — it always lands heads. The other 99 are normal fair coins. You pick a coin at random and flip it <strong>10 times</strong>. All ten flips come up <strong>heads</strong>. What’s the probability that you picked the double-headed coin?</p><h3>First Thoughts</h3><p>When I first heard this, I instinctively felt like the answer would be pretty high — 10 heads is rare even for a fair coin. But I also know it’s not 100%. There’s still a chance I just got really lucky. So it’s a question of balance: how much weight should I give to the evidence (10 heads), and how much to the prior (only 1 in 100 coins is biased)? A friend of mine had a simpler take. He said something like:</p><p><em>“You had a 1% chance to pick the biased coin. But 10 heads from a fair coin is super unlikely. So yeah, it’s probably like 90% biased.”</em></p><p>Close. But I wanted to make that more precise.</p><h3>The Intuition Trap</h3><p>The common mistake with problems like this is assuming that 10 heads in a row automatically <em>proves</em> the coin is biased. But when you only had a 1% chance to start with, you need overwhelming evidence to overcome that prior.</p><p>Here’s the thing: a fair coin does land 10 heads in a row sometimes. Not often, but often enough that it matters. Specifically, it happens about 1 in 1024 times — roughly 0.1%.</p><p>That’s rare. But a 1% chance of grabbing the biased coin <em>was even rarer</em> — until those flips came in.</p><p>So the question becomes: <strong>Did 10 heads in a row give us enough evidence to overcome the initial 1% prior?</strong></p><h3>The Math</h3><p>You have 100 coins:</p><p>1 is <strong>double-headed</strong>, always lands heads.</p><p>99 are <strong>fair</strong>, meaning each flip has a 50/50 chance.</p><p>You pick a coin at random, flip it <strong>10 times</strong>, and get <strong>10 heads</strong>. Now we want to know:</p><p><strong>What’s the probability you picked the double-headed coin, given that you saw 10 heads?</strong></p><p>This is a classic case for <strong>Bayes’ Theorem</strong>, which — put simply — helps us update our belief based on new evidence.</p><p>We’re comparing two possibilities:</p><p>You picked the double-headed coin (1% chance), in which case 10 heads is guaranteed.</p><p>You picked a fair coin (99% chance), in which case 10 heads has a probability of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*CkzOtu4gjS8eMxvBaLW0aw.png" /></figure><p>Now compute the total probability of seeing 10 heads under both paths:</p><p><strong>Biased coin path:</strong><br> P(10H | biased)⋅P(biased)=</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*CnXOG909-Yq3ZAG3zJifEQ.png" /></figure><p><strong>Fair coin path:</strong><br> P(10H | fair)⋅P(fair) =</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*5D8mP-5W3pJeILuk16NdXQ.png" /></figure><p>Now we apply Bayes’ Rule:</p><p>P(biased∣10H)=</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*wW5vgXrZ9G0FaRvf3l0zSQ.png" /></figure><p>So, after seeing 10 heads in a row, there’s about a <strong>91.2% chance</strong> you picked the biased coin.</p><p>That’s a huge jump from the original 1% chance. Ten heads is rare enough that the evidence overwhelms the prior.</p><p>There’s something elegant about this puzzle. On the surface, it’s a game of coin flips. But it’s really about how you <strong>handle evidence</strong> — and whether you know how to <strong>trust math over instinct</strong>.</p><p>Most people overcorrect here. They see 10 heads and immediately jump to certainty. But if you ignore the prior entirely, you’re doing something very human — but very wrong.</p><p>What makes this problem so good for interviews (and Citadel knows this) is that it reveals two things at once:</p><p><strong>Do you understand Bayes’ rule — not just the formula, but what it <em>means</em>?</strong></p><p><strong>Can you keep your reasoning clean when probability starts to feel like psychology?</strong></p><p>Because this problem <em>feels</em> like psychology. You start off uncertain, you see evidence, and you have to decide when it’s enough to change your mind. A critical decision-making skill.</p><h3>What My Friend Said</h3><p>My friend’s take was:</p><p><em>“After 10 heads? I’d say like 90% biased.”</em></p><p>And weirdly enough, he nailed the number — just not the method.</p><p>He didn’t do any real math. Just a kind of instinctual adjustment. And I think that’s why this problem matters. Because if your instinct happens to be right, but your method is fuzzy, it won’t hold up in harder problems.</p><p>Trading, betting, risk management — they’re all about <strong>having your gut instincts match up with rational frameworks</strong>. If you’re wrong, you need to know <em>why</em>. If you’re right, you need to know <em>why</em>, too.</p><h3>Lastly…</h3><p>This is the kind of question that sticks with you. Not because it’s hard to calculate, but because it reminds you how wrong your brain can be in situations involving rare events.</p><p>It’s the same kind of thing that makes people buy lottery tickets or underprice black swan risks.</p><p>Citadel isn’t just testing whether you can compute an expected value. They’re testing whether you trust the process over your intuition — and whether you can communicate your reasoning clearly while you do it.</p><p>If you’re prepping for interviews like these, it’s not just about doing Bayes’ Rule correctly. It’s about building an intuition that works <em>with</em> the math — not against it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b0736410ed1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Mind of the Most Disciplined Trader You May Have Never Heard Of]]></title>
            <link>https://medium.com/@brycedav7/obsess-execute-27cde4f8ec84?source=rss-b1741fee5d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/27cde4f8ec84</guid>
            <category><![CDATA[quant-finance]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[economics]]></category>
            <dc:creator><![CDATA[Bryce Davitt]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 20:18:09 GMT</pubDate>
            <atom:updated>2025-07-08T02:13:23.454Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently started up <em>The New Market Wizards</em> by Jack Schwager. It’s a follow-up to the classic <em>Market Wizards</em>, and just like the first, it’s packed with in-depth interviews of some of the greatest traders alive. These are people you may not have heard of, but their results speak louder than any spotlight.</p><p>One name I didn’t expect to linger with me was Gil Blake.</p><p>No hedge fund showman. No macro theorist. No hype.</p><p>Just a man with a system, and a near-religious commitment to following it.</p><p>Gil Blake made a fortune trading no-load mutual funds. One-price-a-day, seemingly slow-moving, “boring” products. And yet, he compounded returns at a rate that most traders would call impossible. He built his edge off of strict pattern recognition, psychological discipline, and the kind of mental clarity required to obtain an upper 90s score on Zetamac.</p><p>At the time of his interview, he had made 120% annually in his personal account over the last five years. Not by swinging for the fences, but by showing up every day, doing the same thing, and doing it well.</p><p>Blake’s interview doesn’t hit you in the face with brilliance. It unfolds quietly. But read it carefully and it becomes clear: this man figured something out that very few ever do.</p><p>What made him unique was his near-obsessive commitment to process. He didn’t try to predict markets. He didn’t waste time theorizing about fundamentals. He observed. He tested. He built a repeatable edge and stuck to it.</p><p>He once said that to succeed in the markets, “you need to consistently do the things that most people won’t do.” And that’s really the heart of it. Most traders crave novelty. They want to chase the next big thing. Blake found a simple strategy that worked, and he just ran it over and over again.</p><h3>Blake’s Edge: Reading the Reaction</h3><p>His entire strategy came down to behavioral patterns. He studied mutual funds that went up big one day, not to buy that move, but to observe how they behaved afterward.</p><p>Did they hold the gain? Did they consolidate? Did they give it all back?</p><p>He learned that consistent strength after big days was predictive. That’s what he traded. Relative strength rotation, but through a unique lens.</p><p>He wasn’t trading price; he was trading behavior. He paid close attention to what the market did in response to action. That small nuance, the difference between action and reaction, is what separated him.</p><p>What’s fascinating is how data-driven yet emotionally removed his process was. He didn’t try to understand <em>why</em> something was happening. He simply cared about <em>what</em> was happening, and whether the data supported the decision.</p><p>He didn’t watch the news. He didn’t analyze earnings reports. He just tracked fund performance and took trades with favorable setups, based entirely on tested patterns.</p><h3>A Deeply Psychological Framework</h3><p>Like Seykota, Blake understood that trading is primarily a psychological battle. Most traders think they’re playing against the market. In Blake’s words, “The market doesn’t care. You’re playing against yourself.”</p><p>When asked why most people fail, he doesn’t talk about strategy. He says this: “The single most important reason people lose money in the markets is they don’t cut their losses short.”</p><p>Simple. Brutal. True.</p><p>He cuts losses fast. Without hesitation. Without exception. He believed in getting out at the first sign of trouble, knowing there would always be another trade, another opportunity, another clean entry.</p><p>The emotional urge to justify a losing position and hope it recovers was something he actively shut down. That was key. He trained himself not to feel attached to any individual trade.</p><p>Blake also emphasized the importance of internal alignment. He believed that if you’re not psychologically suited to your strategy — if you crave excitement but build a system that requires patience — you will eventually self-destruct.</p><p>To Blake, trading was a mirror. If you lacked discipline, the market would reflect it. If you sought chaos, it would gladly provide it. Your results were the outcome of your internal wiring.</p><h3>The Final System</h3><p>So what did Blake actually do?</p><p>He ran a system that focused on the short-term performance of no-load mutual funds. He tracked which ones performed well after up days. He filtered out the ones that gave back gains quickly, and focused on the ones that showed persistence.</p><p>His entries were based on simple price behavior, specifically confirmation of strength. His exits were predetermined. If the trade started going against him, he cut it. No exceptions. If the trend continued, he stayed in until a reversal pattern emerged.</p><p>He never risked more than a few percent of capital on a single trade.</p><p>He didn’t scale randomly. He scaled when the data told him the setup was strong. He stayed out of the market when there wasn’t a clean setup.</p><p>There was no discretionary override. The system ruled.</p><p>He understood volatility. He respected the role of randomness. But he also knew that if you could isolate repeatable behavior, and had the discipline to stick with it, you could win. Not by huge margins every time, but consistently, and without blowing up.</p><h3>A Few Standout Quotes</h3><p>From the actual interview pages I reviewed, these lines say more than any summary could:</p><p><em>“The market will give you several chances to get in. But only one chance to get out.”</em></p><p><em>“Most people would be better off turning off the quote screen and following a system.”</em></p><p><em>“You’ll never be consistently successful until you internalize the idea that being wrong is okay.”</em></p><p><em>“Success in trading has far more to do with your ability to follow a method than to find a brilliant method.”</em></p><p><em>“If you’re not disciplined, you’re out.”</em></p><p>Each of these is deceptively simple. But they carry enormous weight. They’re the kinds of things you read once, nod at, then reread months later and suddenly feel the truth behind them.</p><h3>Final Thoughts</h3><p>Gil Blake didn’t build a billion-dollar firm. He didn’t write a best-selling book. He didn’t make headlines.</p><p>But he quietly mastered something that most never do: himself.</p><p>He knew that it wasn’t about finding a magic signal or a new edge. It was about the willingness to do the same boring, disciplined, rigorous thing every single day: to sit in cash when there was no trade, to follow the exit plan when a trade went wrong, and to stay out of your own way.</p><p>His edge wasn’t technical. It was behavioral.</p><p>It was his refusal to flinch.</p><p>If you want excitement, Gil Blake is not your guy.</p><p>But if you want a model of what consistency, clarity, and execution actually look like in the real world, his interview is pure gold. The strategy may not be transferable to your exact context, but the mindset absolutely is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27cde4f8ec84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>