Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2007, 10:20 PM
TNixon TNixon is offline
Senior Member
 
Join Date: Apr 2007
Posts: 616
Default Having trouble with a variance calculation, NLHE

Ok, I have a variance result that I have calculated over ten hands, and what I want to do is attempt to figure out what sort of edge and average pot size it would take for a $100 stack playing 0.5/1 NL to have the same amount of variance.

Train of thought follows (I cribbed this from somebody else, but it turns out he made an algebra mistake that, when accounted for, gave the problem zero non-imaginary solutions, so I took a different approach, trying to figure out what's going on. It turns out my approach was simpler than all the algebra he had to do, but we both end up with an unsolvable equation)

Over ten hands, we're going to look for an average pot size (A) and a player edge (p, which represents the percentage of the time our 100BB player wins) that will give the same variance as our pre-calculated result (which was also over ten hands)

I'm laying out every step, so that hopefully somebody can point out my error, because the result is confusing me.

p is the percentage of times player is going to win the pot (expressed from 0 - 1). A is the average pot size. Therefore our mean should be pA. We're making the assumption that every pot is average-sized, because I have no clue how to go about approaching this if we don't make that assumption. [img]/images/graemlins/smile.gif[/img]

Anyway, the variance formula is:

10p((A - pA)^2) + 10(1-p)((0-pA)^2)
...
10p(A^2 - 2pA^2 + p^2A^2) + (10 - 10p)(-p^2A^2)
...
10pA^2 - 20p^2A^2 + 10p^3A^2 + 10p^3A^2 - 10p^2A^2
...
10pA^2 - 30p^2A^2 + 20p^3A^2
...
Since the actual value of the variance we're trying to solve for doesn't seem to matter (it's unsolvable no matter what the exact value for variance is, I'm going to call it V.
...
A^2(10p - 30p^2 + 20p^3) = V
...
A^2(10p - 30p^2 + 20p^3) - V = 0
...
Substituting P for the expression 10p - 30p^2 + 20p^3, to make things more clear for a minute
...
PA^2 - V = 0
...
Solving for A, using the quadratic equation, where a = P, b = 0, and c = -V
...
A = +/- sqrt( -4 * P * -V ) / 2P
...
We can pull 4V out, leaving P by itself in the sqrt, again to simplify further figuring, and sqrt(4) cancels the 2 in the denomiator.
...
A = +/- sqrt( V ) * sqrt( P ) / P
...
We know V is a positive real number, but P is an equation dependent on the player's edge. We will not be able to determine an average pot anytime P is less than zero, so solving for p = 0
...
20p^3 - 30p^2 + 10p = 0
...
The roots of this equation are 0, 0.5, and 1. We only care about the ranges 0 to 0.5 and 0.5 to 1, but when plugging a few numbers in to see where P comes out positive, and where P comes out negative, this starts to get *very* strange:
...
for p = 0.2, P = 0.96, indicating that P is positive in the range from 0 to 0.5.
But for p = 0.7, P = -0.84.

Since this is not dependent on the actual variance value we're comparing to, I have to believe that I've done something horribly, horribly wrong, because this equation cannot find an average pot size that would match *any* variance figure, unless the player's edge is less than 50%.

Help?
Reply With Quote
  #2  
Old 09-01-2007, 07:03 AM
BruceZ BruceZ is offline
Senior Member
 
Join Date: Sep 2002
Posts: 4,078
Default Re: Having trouble with a variance calculation, NLHE

[ QUOTE ]
Anyway, the variance formula is:

10p((A - pA)^2) + 10(1-p)((0-pA)^2)
...
10p(A^2 - 2pA^2 + p^2A^2) + (10 - 10p)(<font color="red">-</font>p^2A^2)

[/ QUOTE ]

That final minus sign (in red) is wrong. This leads to a massive simplification and

V = 10*p*(1-p)*A^2

which is obvious since sqrt[10*p*(1-p)] is the standard deviation of the binomial distribution of the number of hands won out of N=10, sqrt(Npq), and since we win A for each hand won, multiplying this by A gives the standard deviation of the amount won, and squaring gives the variance of the amount won.
Reply With Quote
  #3  
Old 09-01-2007, 12:50 PM
TNixon TNixon is offline
Senior Member
 
Join Date: Apr 2007
Posts: 616
Default Re: Having trouble with a variance calculation, NLHE

omg

Wow

I R dum

I must have done that like 15 times without squaring that minus sign out. I really did expect to come out with something very simple and obvious, and was having trouble understanding why it ended up so complex.

Thanks.

[img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #4  
Old 09-01-2007, 04:47 PM
TNixon TNixon is offline
Senior Member
 
Join Date: Apr 2007
Posts: 616
Default Re: Having trouble with a variance calculation, NLHE

Bruce, would you (and anybody else here who is very familiar with variance calculations) mind reading and commenting on this post:

http://forumserver.twoplustwo.com/showth...page=0&amp;vc=1

Sorry, it's very long and verbose, and realizing why it had to be would require scanning through the rest of the ugliness in that thread (which is 10x worse as far as verbosity goes), but I'd appreciate it very much if you gave at least this one a gander.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.