For Tic-tac-toe to be a draw, wouldn't the first move be enough? Because with "optimal play", shouldn't tic-tac-toe always be a draw? Maybe I'm misunderstanding the question.
The matrix isomorphism was really interesting! I typed just a bit up on our wiki about that, but I thought it was really cool how matrices could be used to represent complex numbers.
Payoff matrices are just grids describing the possible outcomes for each player for a given choice. You look at Player A's choice, and Player B's choice, and see where the intersect on the matrix, and then you get the payoffs to each player.Mixed strategies are when you don't play the same move each time, rather you assign probabilities to each choice so your choices are random (in a way) but are chosen in a certain ratio.For the last problem, I believe it can be solved (for me) by choosing A 17/24 of the time, and B 7/24 of the time, based on the equation p = (d-b)/(a+d-b-c).
Hi James,For the tic-tac-toe problem, I drew out a bunch of scenarios and I believe that there can be a maximum of 2 empty spaces on a tic-tac-toe board to make sure there is a tie? If there are 3 or more empty spaces on the board, then it is possible for a player to win. I'm not sure how to prove this- it's just based on observations.
I tried sketching the 3d graph on paper, and I got the saddle-like shape to appear, but I haven't gotten too far with it. I haven't taken calculus yet, so I am not yet familiar with how to utilize 3d graphs. Should the 3d graph have been made on the computer or on a calculator instead of on paper?
I also saw the page on markov chains, and it's interesting- I can't wait to see what's coming.
Hi James,
I'm not too sure I understand what you mean with the tic-tac-toe moves and positions... if one player plays a corner and another plays the center, aren't there only 4 positions to consider?
As for the 3d graphing- I don't yet know how to find a horizontal line or even how to plot the other points in a 3d graph. I plotted just the points (1,1,10), (-1,1,-7), (1,-1,-4) and (-1,-1,3).
How could I determine where a horizontal line would be from those four points?
For the Markov Chains question, is the answer 63.636364 % ? I used the equation .6*.6 + .4*.7 to get the probability of landing on A the second move (.6 of the time, it will start at A and .6 chance of going from A-A, and .4 of the time, it will start at B and have a .7 chance of going back to A, thus .6*.6 + .4*.7, which is .64.)I then used the .64 as the new value of the chances of starting out at A, and substituted it back into the above equation. (So .64*.6 + .36*.7) which is .636. I kept on repeating this and noticed that the pattern was .636363...etc. Taking it to the 8th term is .63636364, or 63.636364 %.
.64*.6 + .36*.7) which is .636. I kept on repeating this and noticed that the pattern was .636363...etc. Taking it to the 8th term is .63636364, or 63.636364 %.
Almost... I think you only took it to six steps though?
Each step we update 'x' to x*0.6+(1-x)*0.7 which is 0.7-0.1x.
so x goes 1, 0.6, 0,64, 0.636, 0.6364, 0.63636, 0.636364, 0.63636636, 0.6363636364
Yes, 10/24 is correct. So is the Expected value E=1/12.
E(p,q) = 24pq -7p -10q+3
E(p,q) = q(24p-10) -7p +3
If p=10/24 the (24p-10) is zero and changing q has no effect whatsoever. For this value of p we have:
E(10/24,q) = -70/24 +3 = 2/24 = 1/12
So each turn your expected win is 1/12, no matter what I choose for q.
Please write this up on the starter page along with explanation of what a 'mixed strategy' is:
http://onlinemathcircle.com/wiki/index.php?title=Nash_Equilibrium
Writing this up will be good for other people on OMC learning game theory, and also you'll start to learn LaTeX this way too. Use <math>\frac{10}{24}</math> for fractions. You're very welcome to cut and paste from what both you and I have written in our e-mails into that page where you think it helps, and that could be a quick way to get some more content written there.
----
About the graphs we've been discussing:
The format
10*x*y - 4*x*(1-y) - 7*(1-x)*y + 3*(1-x)*(1-y)
is probably best if plotting using an online 3D function grapher like:
because then you can vary the 10, the -4, the -7 the 3 and see how it affects the graph.
I find it kind of odd that in the 3D graph for any fixed p we get a straight line, and that for any fixed q we get a straight line, but that the overall surface is curved. If we draw a contour graph (think 3D graph as seen from above) and draw the contours E(p,q) = K for different constants K, most of the lines are curves. [Plotting xy=K is mostly the same thing as plotting y=K/x, so it is no surprise that these lines of constant E are curves]. Think of K increasing as being like water level rising in a mountainous landscape.
A fair Game?
The fact that with the strategy p=5/12 your expected winnings are 1/12 each go means that it is not a "fair game" in that the person choosing A or B has an advantage over the person choosing X or Y. It's a small margin for sure, but a margin none the less.
So a new question:
How can we adjust the parameters in the payoff matrix to make the game fair? - and I don't mean making all four values zero! I'd like to make it not too obvious at first sight whether the game is fair or whether it favors the AB chooser or the XY chooser.
--James.
On 9 July 2011 04:04, Jonathan Joo <jonath...@yahoo.com<mailto:jonath...@yahoo.com>> wrote:
Hi James,
Thanks for your extremely comprehensive reply. I think I finally got the answer now- is it 10/24? When you substitute 10/24 for P, you end up with 10y-7(10/24)-10y+3, which simplifies to 70/24 + 3 or 1/12. Sorry it took so long for me to get this- but it was really helpful seeing how you arrived at the equation for E:
("You choose A with probability p, and you choose B with probability (1-p).
I choose X with probability q, and I choose Y with probability (1-q).
So AX with probability pq, AY with probability p(1-q), BX with probability (1-p)q and BY with probability (1-p)(1-q).
So the expected score is
E(p,q) = 10pq - 4p(1-q) - 7(1-p)q + 3(1-p)(1-q)")
-Jonathan
________________________________
From: James Crook <james....@gmail.com<mailto:james....@gmail.com>>
To: l2lea...@googlegroups.com<mailto:l2lea...@googlegroups.com>
OK.
Let's collect p
--James.
On 8 July 2011 16:44, Jonathan Joo <jonath...@yahoo.com<mailto:jonath...@yahoo.com>> wrote:
Hi James,
I've attempted the graph many many times, but I just can't seem to get it right. I also tried the steps you gave me- but I'm still stuck on figuring out the equation for E and trying to draw the graph in a way that I can actually understand it... I've spent a considerable amount of time trying to figure it out, but haven't gotten very far :(.
For the markov chains one, I noticed that percentage is the rate of changing from A to E or vice versa (.4 or .7) over the total changing (.4+.7=1.1) ending up with .4/1.1 or 4/11, and .7/1.1 or 7/11. So would the probability of ending up in each state for the second markov graph be .15/.425 (6/17), .25/.425 (10/17) and .025/.425 (1/17)?
-Jonathan
________________________________
From: James Crook <james....@gmail.com<mailto:james....@gmail.com>>
To: l2lea...@googlegroups.com<mailto:l2lea...@googlegroups.com>
Sent: Thursday, July 7, 2011 6:27 PM
Subject: Re: Topic Choices (Puzzles and Game Theory)
Hi jonathan,
Any other ideas?