The game of Barcelona databases, evolution, and reverse tessellation through the eyes of a gambler Keith Clay GRCC.

Slides:



Advertisements
Similar presentations
This is the online version of the game of craps. It is a type of simulation game. It’s as though you’re playing on the real table. Craps is played in most.
Advertisements

4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Exponential Functions Logarithmic Functions
Probability Three basic types of probability: Probability as counting
13.4 Map Coloring and the Four Color Theorem. We started this chapter by coloring the regions formed by a set of circles in the plane. But when do we.
1 Copyright © Cengage Learning. All rights reserved. 4 Probability.
1 Counting Problems From Fred Greenleaf’s QR book Compiled by Samuel Marateck.
HOW I TRIED TO BEAT VEGA$ HOW I TRIED TO BEAT VEGA$ An Exercise in the Right and Wrong Ways to Use Probability Dr. Shane Redmond September 23, 2013.
Card Counting What is it, how does it work, and can I use it to pay for college? (and if it does work, do I even have to go to college?) Jeff O’Connell.
BLACKJACK SHARKS: Aabida Mayet, Omar Bacerra, Eser Kaptan March 15, 2010.
PROBABILITY AND EXPECTED VALUE
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
An application of the Probability Theory
Penn State Math Club March 31 st, MacArthur Puzzle Directions: Write down the number of the month in which you are born Double it Add 5 Multiply.
MATH CLASH Integer Addition Game 1. Player Rules Players must be paired with another person Cards must be evenly divided at the start of the round Players.
1 Many people debate basic questions of chance in games such as lotteries. The Monty Hall problem is a fun brain teaser that Marilyn vos Savant addressed.
Probability And Expected Value ————————————
Combinatorics Chapter 3 Section 3.3 Permutations Finite Mathematics – Stall.
 Math Talk: “Look & Talks” “Look & Counts” Asking questions is critical in guiding student learning. Type of Questions: Beginning Intermediate Advanced.
If you have a small bag of skittles and you separate then, you have 5 blue, 6 red, 3 purple, and 5 yellow. What is the probability that you would pick.
The Game of Algebra or The Other Side of Arithmetic The Game of Algebra or The Other Side of Arithmetic © 2007 Herbert I. Gross by Herbert I. Gross & Richard.
Permutations and Combinations
Michael Ymer 3/4.
Chapter 13 – Univariate data
Happy Tuesday! Do the following:  Take out HW#3 HW #4:  P 722 #1, 4, 6-18 Update:  11.4 Quiz on Thursday/Friday  Unit 11 Test Thursday/ Friday April.
Blackjack: An Analysis of Probability By: John Theobald.
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Brian Duddy.  Two players, X and Y, are playing a card game- goal is to find optimal strategy for X  X has red ace (A), black ace (A), and red two (2)
Section 11.6 Odds and Expectation Math in Our World.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Finding Probability Using Tree Diagrams and Outcome Tables
Descriptive Statistics A Short Course in Statistics.
Think About Ten 3-2 Carlos Suzy x
Catch the Spirit of Mathematical Practices Mathematics Investigations Q-Cards: Rational Numbers The Q-Card game has 8 starter cards, 28 playing cards,
Warm Up Evaluate  4  3  2   6  5  4  3  2 
Learning to Play KardKuro Goals: Have Fun while Practicing Addition and Subtraction. Improve Social Learning Opportunities with Classmates. Become familiar.
Copyright © 2009 Pearson Education, Inc. Chapter 12 Section 1 - Slide 1 Unit 7 Probability.
Population distribution VS Sampling distribution
Outline Random processes Random variables Probability histograms
Seminar 7 MM150 Bashkim Zendeli. Chapter 7 PROBABILITY.
The Basics of Probability Theory MATH 102 Contemporary Math S. Rook.
DR. DAWNE MARTIN DEPARTMENT OF MARKETING Show Me the Money.
AMC 10 Preparation SDMC Euler class Instructor: David Balmin
Sec 4.4 Counting Rules Bluman, Chapter 4 A Question to Ponder:  A box contains 3 red chips, 2 blue chips and 5 green chips. A chip is selected, replaced.
7th Probability You can do this! .
seek (exhaust) all possibilities look at/for alternative methods
Finding the Missing Angle of a Quadrilateral Steps for Solving: 1.Add the known angles. 2.Subtract that sum from If there is a picture, check to.
Chapter 8: Probability: The Mathematics of Chance Lesson Plan Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Continuous.
Ready, SET, go! By Melissa Dalis Professor Susan Rodger Duke University July 2011.
Bell Ringers Solve the following equations and write the commutative property equation and solve: (-74) + 54 (-87) + (-32) Solve the following equations.
GamblingGambling What are the odds? Jessica Judd.
10-8 Permutations Vocabulary permutation factorial.
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
TAKS Tutorial Test-Taking Strategies. Remember that the TAKS test is untimed! That gives you plenty of time to do this first strategy! Look at the ENTIRE.
Probability What are the chances of that happening?
ENRICHING STUDENTS MATHEMATICAL INTUITIONS WITH PROBABILITY GAMES AND TREE DIAGRAMS NCTM PRESENTATION BY: ADOLFO CANON Rice University Summer.
Chance We will base on the frequency theory to study chances (or probability).
The expected value The value of a variable one would “expect” to get. It is also called the (mathematical) expectation, or the mean.
Gambling and probability 1. Odds and football.  Predict the Premier League results for this weekend.  Can you estimate the probability of a win/draw/loss.
The Law of Averages. What does the law of average say? We know that, from the definition of probability, in the long run the frequency of some event will.
Lesson 96 – Expected Value & Variance of Discrete Random Variables HL2 Math - Santowski.
Warm up How many ways can 8 children be placed on a 8- horse Merry-Go-Round? 7! = What if Simone insisted on riding the red horse? Here we are only.
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Probability of casino games
Simple Random Sample A simple random sample (SRS) of size n consists of n elements from the population chosen in such a way that every set of n elements.
Probability 14.1 Experimental Probability 14.2 Principles of Counting
Chapter 3.1 Probability Students will learn several ways to model situations involving probability, such as tree diagrams and area models. They will.
ROULETTE Yasmina, Phoebe, and Roshen.
Warm Up – 5/7 - Wednesday A single bag contains 4 red and 3 yellow discs. Two discs are pulled from the bag and not replaced. A) Draw a tree diagram modeling.
Presentation transcript:

The game of Barcelona databases, evolution, and reverse tessellation through the eyes of a gambler Keith Clay GRCC

First a word from… Excessive Gambling is not cool!

And now a word from… Excessive study of gambling is a time honored tradition. Laplace Poisson Cauchy Excessive study of gambling is a time honored tradition.

The game of Barcelona

According to legend… It was invented on a Mediterranean island when two brilliant mathematicians were shipwrecked. ( island )

The game of Barcelona Their names are lost to history. We know them only as Mr. Red and Mr. Blue.

The game of Barcelona They played a game using only blue and red seashells… … drawn blindly, one at a time.

The game of Barcelona Shells are drawn one at a time. Whichever color has more shells showing after a given draw wins that round. What was the score for this game? Let’s do it again.

The game of Barcelona Shells are drawn one at a time… … so we draw one. The score is: RED BLUE The first shell is red. There are more red shells than blue shells. Red wins round one. 10 The second shell is blue. There is one red shell and one blue shell. Round two is a tie. The score is unchanged. The third shell is blue. There is one red shell and two blue shells. N blue > N red. Blue scores one point. 1 The fourth shell is red. There are 2 red shells and 2 blue shells. N blue = N red. The score is unchanged. The fifth shell is blue. There are 2 red shells and 3 blue shells. N blue > N red. Blue scores one point. 2 The sixth shell is red. There are 3 red shells and 3 blue shells. N blue = N red. The score is unchanged. This could also be called a score of -1 for red or a score of +1 for blue This game can be played solitaire. Or against a casino.

The game of Barcelona In a casino: The game can be played with cards. Only the color matters. If you are betting in a casino… Do you want to be red or black? Does it matter? (If not why not?)

The game of Barcelona This game would not be very interesting... …if it were not for a seagull. Now would you want to be blue or red?

The game of Barcelona With n blue shells and n + 1 red shells, Mr. Red had an advantage. To even the odds, it was agreed that blue would score on turns when drawing a shell produced a tie.

The game of Barcelona Under the new rules, who has the advantage? The score is: RED BLUE This new game is called Barcelona. Would you rather be blue or red?

The game of Barcelona Casinos can play Barcelona with decks of 51 cards (26 red, 25 black) You get $1 for each round you win. You lose $1 for each round you lose. Do you want red? Black? What are your odds?

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game?

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game?

Red or Black? POSSIBLE SCORES: With 26 red cards and 25 black… You can win 51 rounds ( +$51 ahead) You can win 50 and lose 1 ( + $49 ) You can win 49 and lose 2 ( + $47 ) … You can lose 51 rounds ( - $51 ) Can BOTH COLORS win $51? Lose $51?

Red or Black? Observation: Given (n+1) red cards and (n) black cards, Red can win 2n+1 rounds. Black cannot. Red wins $5, loses $0. Score = +$5 for red. Now reverse the order. Red wins $1, loses $4. Score = - $3 for red. Red can win (2n+1) dollars but can only lose (2n-1) dollars. Both appear equally likely.

Red or Black? Remember these shells? Try reversing the order again. The score was: RED BLUE 32 The score is: RED BLUE 14

Red or Black? Conjecture (not a proof): Reversing the order of a set of cards turns a “good” hand into a “bad” hand. The midpoint of “good” and “bad” is: [ (2n+1) + (-(2n-1)) ] / 2 = 1 net win for red. “Forward” and “Reverse” orders of a set of cards are equally likely. So on average, red gains 1 win per hand. Does Barcelona favor Red?

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game?

Running the Table To win $51, red has to win every round. That means there will always be more red cards showing than black. How likely is that? One way to find an answer: Count the number of arrangements where there are always more red the black ( reading right to left) Divide by the number of possible arrangements.

Running the Table How many ways are there to arrange 51 cards? 51 choices for the first card, 50 choices for the second card, 49 choices for the third… 51  50  49  …  3  2  1 = 51!  But wait! Not all of those arrangements are different! We might not need to check arrangements.

Running the Table Rearranging the cards (or seashells) of one color does not change the score. All 3! arrangements of these shells produce the same score. All 2! arrangements of these shells produce the same score. So the number of distinct arrangements of these five shells is:

Running the Table The number of distinct arrangements of 26 red cards and 25 black cards is: Calculating the Barcelona score of each arrangement would take a very long time.

Running the Table CRUCIAL QUESTION: How many ways are there to run the table in a Barcelona game with (2n+1) cards? This is a question with many applications.

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game?

Barcelona-like problems: The parentheses problem: Given n left and n right parentheses, how many arrangements are possible that leave all parentheses closed? ( ( ) ) ( ) Good ( ) ) ( ) ( Bad

Barcelona-like problems: The parentheses problem: In information science: How many possible relationships are there for n categories & subcategories? ( a ( b ) ) ( c ) One relationship ( a ( b ( c ) ) ) Another The problem is crucial to allocation of memory in databases and networks.

Barcelona-like problems: The parentheses problem: Color coding shows this is the same as “running the table” in Barcelona

Barcelona-like problems: Evolution and Genetics: How are creatures (or people) related? What is the family tree of this group? Who branched off when? Dinosaur Reptile Amphibian Bird

Barcelona-like problems: Dinosaur ReptileAmphibian Bird Dinosaur Reptile Amphibian Bird A possible family treeAnother possibility How many possible trees are there?

Barcelona-like problems: “Planted binomial trees” Start at the bottom When you come to a node, turn left At the end of a branch, turn around Left branches are red, right branches are blue The number of family trees for (n+1) critters is the same as the number of ways to run the table with (2n+1) cards (or seashells).

Barcelona-like problems: Reverse tessellation: How many ways are there to dissect a polygon into triangles using only non- intersecting diagonals? Leonhard Euler Euler solved the problem by induction in a process he called “ quite laborious.” Eugene Catalan returned to the problem a century later. The answers to this day are called the “Catalan numbers.” Eugene Catalan

Barcelona-like problems: Reverse tessellation: The connection to Barcelona, databases, and trees?

Solving Barcelona Given (n+1) red shells, and (n) blue, “cut the deck” One of the new groups must have more red than blue. Call it group A. A B The other group cannot have more red than blue. Call it group B.

Solving Barcelona If A precedes B, the score (for red) must be higher… A B … than it would be if B preceded A. A B

Solving Barcelona For any arrangement of cards or shells, a “cut of the deck” will change the score. Math lingo: “cutting the deck” = “cyclic permutation” No arrangements connected by a cyclic permutation will have the same score.

Solving Barcelona The “Pigeonhole Principle” Snow White lived with little people. Name them: Happy, Dopey, Sleepy, Gumpy, Sneezy, Bashful, and Doc. Is that all of them? The “Pigeonhole Principle” Snow White lived with little people. Name them: Happy, Dopey, Sleepy, Gumpy, Sneezy, Bashful, and Doc.

Solving Barcelona

The “Pigeonhole Principle” If you need N answers, all different… And you find N answers, all different… You’re done.

Solving Barcelona Given (n+1) red cards and (n) black cards: There are (2n+1) possible scores for red: +(2n+1), +(2n-1), +(2n-3), … -(2n-3), -(2n-1) Every cyclic permutation (cut of the cards) produces a different score. There are (2n+1) cyclic permutations. Every possible score appears once. Each cyclic permutation is equally likely.

Solving Barcelona Every possible score is equally likely! Every score has a probability of 1/(2n+1).

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game? There are 51 possible scores. The probability is 1/51.

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game? There are 51 possible scores. The probability is 1/51.

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game? None. All scores are equally likely.

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game? Each score is equally likely. Add the scores and divide by (2n+1). The scores add up to (2n+1). On average, red wins a dollar.

The game of Barcelona With 26 red cards and 25 black… Do you want to be red or black? What is the probability of winning $51? What is the probability of winning $11? Which scores are most likely? What will be the average score? Who cares? Is this any more than a game? How many databases, family trees, reverse tessellations, and all that?

Acknowledgements: Probability Combinatorics Graph theory Group theory Information theory Formal logic Set theory Fun I’d like to thank the following branches of mathematics for appearing in this talk:

Acknowledgements: Martin Gardner Possibly the world’s best mathematical author. Read his books. Most of all I’d like to thank …

Questions?