|
spoonitnow's Mathematics of EV Thread
I'm going to make this thread because I'm tired of answering everyone and their mother's questions about setting up EV equations for cash games. Once this is finished, I'll just start linking people to this thread when they ask me these types of questions. What will follow is a series of math lessons that build on each other to eventually come around and teach you how to do EV calculations that are as complicated as you'd like. As a pre-requisite to this thread, you'll have to know how to multiply, divide, subtract and add real numbers, and also understand how to use decimal numbers (ie: knowing that 0.01 < 0.1, and so on) and exponents (that 3^4 means 3*3*3*3). Hopefully that's it.
This isn't going to be perfect, but I'm trying to lay enough of a foundation that someone can study this and either know what they need to know to do complicated EV calculations, or to at least know what they need to figure out to be able to do complicated EV calculations. Good luck.
Pre-Algebra Section
Introduction
These are a few topics that are usually first taught in a Pre-Algebra class, and they're all related, so I'm grouping them together. Most people will already know some or all of this, or maybe know some of it but aren't sure how each topic relates to the other.
Part 1: Fractions
A fraction is one number divided by another number. For example, 1/3 is a fraction that means one divided by three. It also means some part of a whole. For example, if there were 8 slices of pizza, and you ate 3 of them, then the fraction of the pizza that you ate is 3/8, or three parts out of the whole which was eight parts.
Some fractions can mean the same thing even if different numbers are involved. For example, both 1/4 and 2/8 mean the same thing. If the top and bottom of a fraction can be divided by the same number, then we can "simplify" the fraction by doing the division of the top and bottom by that number. For example, if you have the fraction 6/9, both the top and bottom can be divided by 3. So if you divide the top and bottom by 3, you get 2/3 which is the "simplified" version of 6/9. You can use a calculator to see that 6/9 (six divided by nine) and 2/3 (two divided by three) are the same thing. It's often useful to simplify fractions since you end up with smaller numbers because smaller numbers are easier to deal with.
Poker Example 1: What fraction of a standard 52 deck of cards are spades? There are 13 spades in the deck, and 52 total cards, so the fraction is 13/52. The top and bottom can both be divided by 13, so if we divide the top by 13 we get 1, and if we divide the bottom by 13 we get 4, so the simplified fraction is 1/4. This makes sense because there are 4 suits, and spades are 1 of them.
Poker Example 2: Suppose we have a diamond flush draw on the flop. What fraction of cards can make our hand on the turn? There are 2 cards in our hand and 3 cards on the flop, so that leaves 47 cards that we haven't seen yet. Of those cards, there are 9 diamonds, so the fraction is 9/47, or nine out of forty-seven.
Part 2: Percentages
A percentage is a fraction of 100. If someone says something happens 64% of the time, that means the same thing as saying it happens 64 out of 100 times, or 64/100. Often we'll want to take a fraction like 9/47 from Poker Example 2 above and convert that to a percentage. If you do the division 9 divided by 47 on a calculator, you'll get something like 0.191489. To find the percentage, move the decimal place to the right 2 spaces and you'll get 19.1489%.
One more time. Suppose we want to convert 5/8 to a percentage. First we do the division 5 divided by 8 and get 0.625. Now we move the decimal place two spaces to the right to get the percentage that 5/8 equals: 62.5%.
Poker Example 3: Suppose you have an open-ended straight draw on the turn. What is the fraction of the time you'll make your draw on the river? What percentage is this?
There are 2 cards in your hand and 4 community cards on the board, so that means there are 46 cards left that could come on the river. Since you have an open-ended straight draw, that means 8 of those 46 cards can make your draw, so the fraction is 8/46. To find what percentage this is, we divide 8 by 46 to get 0.173913 and move the decimal place to the right two spaces to get 17.3913%.
Part 3: Ratios
Just like fractions and percentages, a ratio is another way we can use to express how often something happens. What's special about a ratio is that it doesn't express things as part of a whole. Instead, it expresses how big each individual part of the whole is. For example, look at this diagram:
There are 5 balls. As fractions, we could say that 2/5 of the balls are red, and that 3/5 of the balls are blue. We could turn those into percentages to say that 40% of the balls are red, and that 60% of the balls are blue. However, with a ratio, we would say that the ratio of red balls to blue balls is 2:3. Or we could say that the ratio of blue balls to red balls is 3:2.
Ratios can be simplified in the same way as fractions can be simplified. If we have the ratio 20:4, both sides of the ratio can be divided by 4. If we do the division, we get 5:1, which means the same proportion as 20:4. Sometimes we'll simplify ratios to make them have the form X:1, even if that makes X an uneven number. We do this to make it easier to compare different ratios, like comparing pot odds to the odds against hitting a draw.
Ratios are important in poker because it's often easier to think about things like pot odds in terms of ratios instead of fractions or percentages. When things are easier to think about and understand, we have a higher chance of doing something correctly.
Poker Example 4: In Poker Example 2 we showed that the chance of hitting a flush draw on the turn was 9/47 because there are 9 cards out of 47 that make the flush. With a flush draw on the flop, what is the ratio of cards that don't make our flush to cards that do make our flush?
Since there are 47 total cards, and 9 of them make our flush, that leaves 38 cards that do not make our flush. Then the ratio of cards that don't make our flush to cards that do make our flush is 38:9. If we divide both sides by 9, we get 4.22:1. We would say that 4.22:1 (4.22 to 1) are our odds against making our flush.
Poker Example 5: Imagine that you're heads-up on the river in position (he has you covered). After your opponent makes a bet of $50, the pot is $150 and it's your turn to act. What is the ratio of the pot size to the amount you'd be calling if you call?
The pot size is $150, and you'd be calling $50, so the ratio of the pot size to the amount you'd be calling is 150:50, or 3:1. This ratio is important in poker, and is known as your "pot odds".
Algebra Section
Introduction
Algebra is a topic that scares a lot of people, mostly because they haven't taken the time to learn it. I'm going to try to make this as painless as possible. I'm also not going to get into a ton of detail with examples and such. If you want extreme detail without the classroom setting, I'd suggest getting Algebra for Dummies or some other similar text that breaks it down better than most traditional textbooks. Alright, deep breath, here we go.
Part 5: The Distributive Property
This is something that comes up a lot and some people don't fully understand, so I'm making a special place for it here. If you have something that says 6(3+4) normally you'd add 3+4 to get 7 and have 6(7) which is 42.
Side note: If you don't know, 6(7) just means 6 times 7, and similarly 6(3+4) means six times the sum of 3 and 4.
But back when we have 6(3+4), there's another way we can work it out using a relationship between numbers that we call "the distributive property". This says that we can start figuring out 6(3+4) by doing 6*3=18 and 6*4=24 to get 18+24, and then do the addition 18+24 = 42. The name of the property comes from thinking of it as the 6 being "distributed" to the 3 and 4.
One more example. Say we have 4(2-7). Normally we'd do 2-7 to get -5, and 4(-5) = -20. With the distributive property, first we would "distribute" the 4 to get 8-28, and then do the subtraction 8-28 = -20.
Make sure you understand this before you proceed. If you don't understand it, check out the google search for the distributive property.
Part 6: Equations
An equation just means you're saying two things are equal. In real life, if we say two apples and an orange cost $2.50, that's another equation since we're saying that the cost of two apples and one orange at that time in that place "equals" $2.50. In math land, if we say 6 + 4 = 10, that's an equation. In math land, equations need an equals sign. The equals sign divides the equation into two parts, which we usually just call "the left side" and "the right side".
What's really cool about equations are that if (in terms of math) you do the same thing to both sides, it stays equal. So say we have our equation 6 + 4 = 10. If we add 3 to both sides, we get 6 + 4 + 3 = 10 + 3, and since both sides equal 13 now, the equation is still correct.
If we want to multiply both sides by a number, we have to use the distributive property. Say we have 6+4 = 10 and we want to multiply both sides by 3. On the left side we should have 3(6+4) and on the right side we should have 3(10). We have to do this because we want to multiply the WHOLE left and right sides by 3, so we put the whole thing in parentheses. This would leave us with 3(6+4) = 3(10), and both sides equal 30 so we know the equation is still right.
Part 7: Variables
Sometimes we need to do some math on a number but we don't know what that number is yet, so we'll use a letter in place of that number until we figure out what it is. For example, if we want to talk about some generic poker scenario, we could call the pot size by the variable P since we don't know specifically what the pot size is.
Then we can use that variable to talk about bet-sizes and other things. For example, a half-pot sized bet would be P/2. For another example, 30 dollars more than the pot would be P+30, or 20 dollars less than the pot would be P-20.
Twice the pot could be represented as 2*P or just 2P for short. When using multiplication with variables, we usually just write them down beside of each other instead of using a times symbol and it's understood that this means multiplication. So 2P means 2 times P, and something like ab would mean the variable a times the variable b.
Part 8: Using Equations to Solve Unknown Variables
A side note to get you started on the right foot: Say you have 500 chips in a tournament. If you win 30 chips, then lose 30 chips, how many chips do you have? Obviously the answer is 500.
If you remember from part 6, we can do whatever we want to equations as long as we do the same thing to both sides. This single rule combined with a small amount of logical thinking allows us to do a whole lot of things. For example, suppose we have the equation
x + 566 = 1027
and we want to figure out what x is. After a bunch of guesses you could probably figure it out eventually, but it would take some time. Instead, let's use a little logic. What if you subtracted 566 from both sides?
x + 566 - 566 = 1027 - 566
We've stuck to our rule from part 6, so we know this equation has to still be true. But look at what's happened to the left side of the equation. If we start with x, add 566, but then subtract 566, we have what we started with.
x = 1027 - 566
A quick bit of subtraction tells us that x = 461. If we check our original equation x + 566 = 1027, then substitute in 461 for x, we have 461 + 566 = 1027. A quick check with a calculator shows that this is correct, so we have found the right number for x.
It's this process of using logic plus our rule about doing the same things to both sides of equations that will allow us to do really powerful things in poker math.
Poker Example 6: At PokerStars, some player makes 0.27 FPPs per hand at their game. How many hands will it take them to get 50000 FPPs (for the PlatinumStar bonus)?
First let's set up an equation. Let's call the number of hands our player has played H. Then the number of FPPs our player will make over H hands is 0.27H. We want to know how many hands it takes to get 50000, so we'll set 0.27H equal to 50000. That gives us the equation
0.27H = 50000
From here we can divide both sides by 0.27, giving us
0.27H/0.27 = 50000/0.27
The left side of the equation just becomes H since we multiplied it by 0.27 then divided it by 0.27 and those are opposite operations. That leaves us with
H = 50000/0.27
and by using a calculator we see that 50000/0.27 = 185185. So it will take about 185185 hands for our Hero to get his $650 bonus.
Probability Section
Introduction
Probability is basically the study of how often stuff happens. We need to understand some basic concepts about probability before we can start working on tougher EV calculations. This section is simpler than the two before it because the ideas needed are really basic.
Part 9: Outcomes
Before we can get into actual EV calculations, you have to be able to correctly determine all of the possible outcomes. Outcomes are the different ways a situation can play out.
Poker Example 7: Suppose we go all-in on the flop against one player on a semi-bluff, how many outcomes are there?
1. Our opponent folds
2. Our opponent calls, we win
3. Our opponent calls, we lose
Side note: Technically there is a 4th possible outcome in some situations. Our opponent could call and we could tie. We aren't worried about this in the vast majority of situations since equity calculations take into account the ties and split them evenly among the players left in the hand.
Part 10: Finding the Chance of an Individual Outcome
Suppose we have two independent events. (Independent events are two events that don't have any influence on each other whatsoever.) Let's say our chance of winning the first event is 30% and our chance of winning the second event is 50%. Then what's our chance of winning both events? The way to get this answer is to multiply the chance of winning the first event (0.30) times the chance of winning the second event (0.50). So we have 0.30 * 0.50 = 0.15, or 15%.
Poker Example 8: If we go all-in with AA pre-flop against a random hand, we have 84.93% chance to win (pure chance to win, not tie) according to PokerStove. What's the chance of going all-in with AA five hands in a row heads-up and winning all 5?
The chance to win the first time is 84.93%, the chance to win the second time is 84.93%, and so on. So the chance to win all five is 0.8493 * 0.8493 * 0.8493 * 0.8493 * 0.8493 = 0.4419 = 44.19%.
Part 11: The Individual Chances of Each Outcome Must Add Up to 100%
This is a simple idea, which is why it's coming first. Let's say in some situation there are three possible outcomes. The chance of outcome #1 happening is 50% and the chance of outcome #2 happening is 20%. What's the chance of outcome #3 happening? The answer is obviously 30%.
While this seems obvious, you'd be surprised by the number of times a long-term winning small or mid-stakes player has asked me about some EV equation they're working on when the sum of the chances of the outcomes don't add up to 100%.
If you add up all of the chances of each individual outcome and don't come up with 100%, you probably didn't list all of the outcomes.
EV Calculation Section
Introduction
Now we're to the fun part. Instead of trying to analyze every kind of spot, I'm going to work out a few examples in this section to show how the general process works so hopefully you'll have enough to go on that you can do your own calculations yourself.
I'll make one note here about something so people don't get confused. It's often useful in big bet games like NLHE or PLO to let the pot equal 1 and then to call our bet size B. The reason this is useful is because then the value B tells us the % of the pot being bet. For example, if the pot is 1 and B is 0.5, then we know we've bet one-half of the pot. If B was 2, we know we're betting twice the pot, and so on. It's just another little thing to make our life easier to and give us one less variable to have to move around, even though I'm not going to use it here.
Part 12: The EV of Individual Outcomes and Total EV
The EV of an outcome is the chance that outcome happens times your profit when it does. For example, if we're flipping a fair coin, and the times it comes heads you gain $3, then the EV you get from the times you hit heads is 0.50 * $3 = $1.50. If the times it comes tails you lose $1, then the EV you get from the times you hit tails is 0.50 * -$1 = -$0.50.
If you add up the EV of every possible outcome in a situation, then you get the total EV of that situation. So in the above situation since there are only two outcomes, your EV of flipping the coin is $1.50 - $0.50 = $1.
Part 13: Basic Semi-Bluff Shove Calculation
Now it's time for some poker. Suppose we're heads-up on some street and our opponent has us covered. The pot size is P and we're considering making a shove of size B. Our opponent's chance of folding is F, and when he calls our equity is E. Let's find the EV of this shove.
First we have to figure out all of the possible outcomes. The first decision that happens after we shove is that either Villain folds or Villain calls. If Villain folds the hand is over.
Outcome #1: Villain folds
If Villain calls, either we win the hand or we lose. (Note again we're ignoring ties since that's taken care of in our equity %). Both of these outcomes end the hand.
Outcome #2: Villain calls, we win
Outcome #3: Villain calls, we lose
Now we have to find the chance of each outcome happening. The chance of outcome #1 is just the chance of Villain folding, and we know that's F. The chance of outcome #2 is the chance of Villain calling times the chance we win the hand after he calls (our equity). The chance Villain calls is (1-F) which just means 100% minus the % of the time he folds, and our equity is E, so the chance of outcome #2 is E(1-F), and remember that means E TIMES (1-F). The chance of outcome #3 is the chance Villain calls times the chance we lose after he calls. The chance Villain calls is (1-F) like before, but the chance we lose after Villain calls is (1-E), or 100% minus our equity. So the chance of outcome #3 is (1-F)(1-E). In summary, the chances of each:
Outcome #1, Villain folds: F
Outcome #2, Villain calls, we win: E(1-F)
Outcome #3, Villain calls, we lose: (1-F)(1-E)
(Side note: For this next part, it might be useful for those not super familiar with Algebra to know that (a+b)(c+d) = ac + ad + bc + bd.)
So we need to first make sure that all of these chances added together equal 1. So we have:
F + E(1-F) + (1-F)(1-E)
= F + E - EF + 1 - E - F + EF
= 1
Now that we've verified that we have all of the outcomes and they all add up to 100%, we need to find the EV of each individual outcome. Recall from part 12 that the EV of an outcome is the chance it happens multiplied by the profit we get when it happens. In outcome #1, our profit when Villain folds is the size of the pot which is just P. So our EV from outcome #1 is PF, or P times F. In outcome #2, our profit when Villain calls and we win is the size of the pot P plus the size of the bet he calls B, so our total profit in this outcome is (P+B). Since the chance of outcome #2 happening is E(1-F), the EV of outcome #2 is E(1-F)(P+B). Finally in outcome #3, our profit when Villain calls and we lose the hand is a loss of our bet size B, so our profit in this outcome is -B. Since the chance of outcome #3 happening is (1-F)(1-E), our EV is (1-F)(1-E)(-B). In summary, the EV of each:
Outcome #1, Villain folds: PF
Outcome #2, Villain calls, we win: E(1-F)(P+B)
Outcome #3, Villain calls, we lose: (1-F)(1-E)(-B)
Remember that the total EV of this situation is the EV of each individual outcome. Therefore:
EV = PF + E(1-F)(P+B) + (1-F)(1-E)(-B)
TA DA. Now you can put this in a spreadsheet or something and play around with different values to see how different semi-bluffs work out.
Part 14: Continuation Betting a Gut-shot
I'm going to hold your hand a little less on this one. At NLHE with $2/4 blinds and infinite stacks, you’re out of position heads-up on the flop and a $30 pot before you act. You have a gutshot (4 outs) and no other equity. Your gutshot is the nuts and if you hit it on the turn you will win 100% of the time by showdown (if you don’t hit it then you never win the pot other than making him fold on the flop). You c-bet the flop for $20. He will raise 1/3 of the time that he continues to your c-bet (and you must fold), and the other 2/3 of the time he just calls. If you hit on the turn you will bet $60 into the pot of $70. He will call this bet 25% of the time, and 25% of the time he calls the turn bet he will also call a $120 bet on the river. How often does he have to fold to your flop c-bet to make this profitable?
With EV calculations that have a large tree, one way to keep it organized is to list the outcomes and the EV of them individually. This helps to make sure that we don’t miss any possible outcomes, and it also makes it easier if we want to manipulate some variables later on. So here we have a number of possible outcomes:
1. He folds the flop: we’ll call his fold % x, then the EV of this case = 30x
2. He raises the flop: he does this 1/3 of (1-x) % of the time and we lose $20, so the EV = (1/3)(1-x)(-20)
3. He calls the flop and we miss: he calls 2/3 of (1-x) % of the time and we miss 43/47 of the time and we lose $20, so the EV = (2/3)(1-x)(43/47)(-20)
4. He calls the flop and we hit and he folds to a turn bet: he calls the flop 2/3 of (1-x) % of the time, we hit 4/47 of the time, he folds the turn 3/4 of the time and we win the $30 from the flop pot and the $20 c-bet he called, so the EV = (2/3)(1-x)(4/47)(3/4)(50)
5. He calls the flop, we hit, he calls the turn, folds the river: he calls the flop 2/3 of (1-x) % of the time, we hit on the turn 4/47 of the time, he calls the turn 1/4 of the time, he folds the river 3/4 of the time, and we win the $30 flop pot plus the $20 c-bet and $60 turn bet, so the EV = (2/3)(1-x)(4/47)(1/4)(3/4)(110)
6. He calls the flop, we hit, he calls the turn, calls the river: he calls the flop 2/3 of (1-x) % of the time, we hit on the turn 4/47 of the time, he calls the turn 1/4 of the time, he calls the river 1/4 of the time, and we win the $30 flop pot plus the $20 c-bet he calls, the $60 turn bet and the $150 river bet, so the EV = (2/3)(1-x)(4/47)(1/4)(1/4)(260)
So now we have a big ass equation of one variable, 0 = 30x + (1/3)(1-x)(-20) + (2/3)(1-x)(43/47)(-20) + (2/3)(1-x)(4/47)(3/4)(50) + (2/3)(1-x)(4/47)(1/4)(3/4)(110) + (2/3)(1-x)(4/47)(1/4)(1/4)(260). I plug that into something like the equation solver at Algebra Simplifier and Math Solver and get x = 0.328, though you're welcome to do it by hand if you want. So Villain has to fold about 32.8% of the time.
Edit: There are more parts later in this thread at this link http://www.flopturnriver.com/pokerfo...ml#post1944426
|