Preview

Tic-Tac-Toe - Data Mining

Powerful Essays
Open Document
Open Document
1778 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Tic-Tac-Toe - Data Mining
The Goal
My goal is to find the probability of wining in tic-tac-toe game given that you make the first move. To obtain hypothesis bases on my goal I have to state some conditions and facts on the game. They are: 1) There are 362, 880 ways of placing O’s and X’s. 2) When X make first move, possibility of X winning is 131,184, O winning is 77, 904, and 46, 080 tied games (Source: http://en.wikipedia.org/wiki/Tic-tac-toe). After eliminating rotations and/or reflections of other outcomes, there are only 138 unique outcomes. X won 91 times, O won 44 times and 3 ties (Source: http://en.wikipedia.org/wiki/Tic-tac-toe). Basically, the win of X is the concept. There are 8 possible ways of creating three X in row. Based on this my hypothesis states:
Hypothesis
“If X makes the first move then the probability of the player with X will win is 60% and above.”
Null Hypothesis
“If X makes the first move then the probability of the player with X will win is less than 60%.”
Data Collection and Preparation
To prove or refute the hypothesis, data has to be collected. As we all know this step requires a great amount of time and effort. Also in order to build an effective model a data mining algorithm must be presented with a few hundred or few thousands relevant/applicable records. As mentioned above there are thousands of winning combinations, I have collected datasets with 958 instances which encodes set of possible board configurations at the end of tic-tac-toe game given X makes the first move.
The data set for tic-tac- toe board end game was taken from UCI machine learning repository website (Source: http://archive.ics.uci.edu/ml/datasets/Tic-Tac-Toe+Endgame). The data was in a command delimited text file without attributes name on the top. After downloading the data in CSV format, I converted into excel spreadsheet using the options available from MS Excel. Since the attributes name was missing I have to read the data description file which was provided at the same website to



Bibliography:  Asuncion, A. & Newman, D.J. (2007). UCI Machine Learning Repository [http://archive.ics.uci.edu/ml/datasets/Tic-Tac-Toe+Endgame]. Irvine, CA: University of California, School of Information and Computer Science.  http://en.wikipedia.org/wiki/Tic-tac-toe  http://www.infoacumen.com/  http://www.kdnuggets.com/software/classification-decision-tree.html#tree-free o http://www.geocities.com/adotsaha/CTree/CtreeinExcel.html o http://www.tetris1d.org/zigah/mangrove/  Data Mining – A tutorial based primer, Richard J. Riger and Michael W. Geatz, Second impression 2008, Pearson Education Inc.

You May Also Find These Documents Helpful

  • Good Essays

    iii. Player(s) places their bets before any cards are dealt. (The amount bet is the amount to win)…

    • 494 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Assume that win=2 draw=1 and lose=0. If the supremacy matrix is calculated, tie always occurs, which proves that if there is a small gap between win and draws, that supremacy matrix isn’t valid.…

    • 3264 Words
    • 14 Pages
    Good Essays
  • Satisfactory Essays

    Problem 4 Set

    • 298 Words
    • 2 Pages

    b. Does the result of your answer change if the game is played an infinite number of times? Why or why not. Properly use game theoretic terminology in your answer.…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Qnt561 Week 3 Assignment

    • 450 Words
    • 2 Pages

    This study is based on the paper “In all probability, Probability is not all” written by Danny Helman (2004). This paper is about how much probability theory can be applied in a popular game of lottery. It is believed that since the lottery is a game of chance, no strategy can be of any use. Burger (1991) says that the lottery is a situation where no control is possible. It is a situation where outcomes are chance determined. The paper investigates whether the statement that chance determined means no control is possible is true or not.…

    • 450 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    |is neither a win or lose. |is more likely to happen |choice made due to not putting in any part |…

    • 1044 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Its important to take into account that since probability is something that occurs in a little time and statistics takes over a long period of time; only one game would not provide a successful evaluation of a player’s abilities.…

    • 974 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Discrete Mathematics

    • 954 Words
    • 4 Pages

    Part III: Create a tree that models the following scenario. A player decides to play a maximum of 4 times, betting on red each time. The player will quit after losing twice. In the tree, any possible last plays will be an ending point of the tree. Branches of the tree should indicate the winning or losing, and how that affects whether a new play is made.…

    • 954 Words
    • 4 Pages
    Good Essays
  • Good Essays

    "… It is essential in the endgame to have foresight, a mathematical understanding of all possible moves.".…

    • 5087 Words
    • 21 Pages
    Good Essays
  • Satisfactory Essays

    The Game of Pig Portfolio

    • 642 Words
    • 3 Pages

    The key ideas were developed in the unit through the presentation of many games and variations of those games to us. The key ideas helped us to solve the central problem by giving us many opportunities to learn how to solve strategies for probability games. In each different game there was a new game or variation in which we could find a new way to find optimal game strategies for probability games.…

    • 642 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Geo Sci

    • 2744 Words
    • 11 Pages

    Feedback: If you guessed “heads” before a coin flip, and it came up heads, that would NOT prove that you can predict all coin flips; you will get half of such guesses correct by chance. You might be cheating, you might be lucky, or you might have figured something out.…

    • 2744 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    The player that wins is the player that has, in a way, the most similar cards to the cards on the deck. For instance, a pair consists of two cards that have the same number, like the 6 of hearts and the 6 of diamonds, regardless…

    • 524 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Managerial Economics

    • 696 Words
    • 3 Pages

    6. You, a real-estate developer, own a piece of land in Nassau, Bahamas, next to an equal-size piece of land owned by a competitor. Both of you have the choice of building a casino or a hotel. Your payoffs are as follows:…

    • 696 Words
    • 3 Pages
    Good Essays
  • Good Essays

    “Every time you play a hand differently from the way you would if you could see all your opponents cards, they gain; and every time you play your hand the same way you would have played it if you could see all their cards, they lose.”…

    • 504 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Probability Studies

    • 731 Words
    • 3 Pages

    First of all, he talks about that probabilities take their place in every part of our life, how can we put statistics in our life, how can we calculate the probability, which is born in the study of games of chances. There is a calculation of rolling a die without getting a double “6” and he says that conventional thinking reveals that breakeven point in rolling a die for four times gives us 24 but it is revealed by De Mere that it is not 24 it is 25 for the double die game. And then he says that throwing die without getting 6 is 5/6 and if it would be thrown for four times iut gives us 5/6 times 4 equals .48 that means that we have 0.48 percent to win the game. Another example is roulette game, he says that in roulette there are 18 black 18 red slots in conventional way we night think that we have chance of 18/36 which is 50% of winning but there is also extras such as 0 and 00 numbers so we have 38 numbers and we have the chance of 18/38=47 percent.…

    • 731 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Basically, the player starts playing the game with two main assumptions, that turn out to be wrong in the end:…

    • 633 Words
    • 3 Pages
    Satisfactory Essays