Probability in Games. What is Probability? Probability is a branch of mathematics that deals with...

45
Probability in Games

Transcript of Probability in Games. What is Probability? Probability is a branch of mathematics that deals with...

Page 1: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability in Games

Page 2: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

What is Probability?Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is usually expressed as a percentage or number between 1 and 0.

Page 3: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability

• Game designers try to provide players with a new experience each time a game is played.

• Randomness is built into the mechanics of a game, and varies the number and location of obstacles that a player may encounter.

• Randomness, probability, likelihood and chance are all terms that describe how variety and unexpected outcomes are created in games.

Page 4: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Non-electronic game probability

• Board games use dice, spinners and sand-timers, etc. to add a level of randomness and conflict to games.

• When players must carry out a move within a limited amount of time, or when a player’s move is calculated by the roll of dice, the game experience is made unpredictable.

Page 5: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Non-electronic game probability

• Game designers use their knowledge of probability to plan the randomness that occurs in their game.

• The probability of rolling any number with a pair of dice helps the game designer plan where to put large payoffs or huge danger zones.

• In most games, large payouts or huge dangers should occur infrequently.

Page 6: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Types of Probability in Games

• Dice

• Spinner

• Number of objects

• Size of objects

• Speed of objects

Page 7: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Dice

• The use of dice goes back thousands of years.

• Dice were probably originally made from joint bones of animals.

• Later dice were made from bone, metal, or pottery.

Old Dice make from knucklebones from sheep

or goats.

Page 8: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Dice• In ancient times, the outcome of a dice

throw was not considered luck, but believed to be controlled by the gods.

• For this reason, casting dice was a way of dividing inheritances.

• In ancient Rome, the goddess Fortuna, the daughter of Zeus (Lady Luck), was believed to determine the outcome of a throw.

Page 9: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Kinds of Dice

Page 10: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability Using 2 Dice

• First, assume each die is a cube with 6 equal sides.

• Second, assume each die has numbers 1-6. Opposite numbers on the die always equal 7.

Page 11: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Dice in Games

• Dice can come in many shapes and sizes besides the typical 6 sided types. The number of choices changes with the number of sides on a dice. Let’s look at a few of the different types of dice.

Page 12: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Spinner use in Games

• When a game designer decides to include a spinner in a game, the design and layout of the spinner will affect the frequency of outcomes.

• Spinners created for small children may use pictures, colors, or symbols instead of numbers.

• Spinners are frequently chosen to be used in games for young children rather than dice because the small, hard dice pose a choking hazard.

Page 13: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Spinner use in Games

• Poor spinner construction and the way a player interacts with a spinner can significantly change the outcome.

• The number of choices on the wheel changes the percentage of outcomes. spin and change the outcomes.

Page 14: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Spinner Probability

– The size and number of individual choices on the wheel will change the percentage of outcomes.

– Thus the probability of an event is the total number of ways an event can occur divided by the total number of outcomes.

Page 15: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Spinner

Click image to visit Java Activity

Page 16: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Types of Probability

• Empirical Probability: The estimated number of times an event will occur.

• Theoretical Probability: The actual number of times an event does occur.

Page 17: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 18: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 19: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Randomness in card games

• Occurs when players “shuffle” the cards, or when the designer chooses how many suits are within the deck.

• The more frequently a card is turned up or played affects the outcome of the game.

• Players use their knowledge of probability to calculate the likelihood that a certain event will

occur to plan their next move.

Page 20: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Randomness in card games

• In poker, the value of the various hands increases as the probability of the hand occurring goes down. It is very rare for a player to get a Royal Flush (Ace, King, Queen, Jack, 10 all in the same suit).

Page 21: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability of Being Dealt a Poker Hand5 card deal

5/52 X 4/51 X 3/50 X 2/49 X 1/48 = 1/2,598,960• The first fraction is the chance of getting any one of 5 particular cards in the deck (5 in 52, since there are 52 cards in the poker deck). • The second fraction is your chance of getting any one of 4 particular cards in the deck on your second card, and so on through the fifth fraction or the fifth card. • By multiplying them together you find out what the chances are of coming up with any hand of unique cards. • The numerator of our fraction in this case represents our royal flush in spades, while the denominator represents all the combinations possible.

Page 22: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability of Being Dealt a Poker Hand5 card deal

Poker Hand      Number of Combinations   Probability--------------------------------------------------------Royal Straight Flush                 4        .0000015391Other Straight Flush               36        .0000138517Four of a kind                    624        .0002400960Full House                      3,744        .0014405762Flush                           5,108        .0019654015Straight                       10,200        .0039246468Three of a kind               54,912        .0211284514Two Pairs                     123,552        .0475390156One Pair                    1,098,240        .4225690276High card only           1,302,540        .5011773940

Total                        2,598,960       1.0000000000

5/52 X 4/51 X 3/50 X 2/49 X 1/48 = 1/2,598,960

Page 23: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability of Multiple Choice

• There was a TV game called “Lets Make a Deal”.

• Contestants had to chose between 3 different doors.

• Behind one of the doors was a great prize.

• Usually, there was a “clunker” behind one of the doors.

Page 24: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Number of Doors

Click image to visit Java Activity

Page 25: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 26: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Coin Toss Probability

Probability of heads or tails when Flipping 1 coin.

Probability of unordered pairs when flipping 2 coins.

Probability of ordered pairs when flipping 2 coins.

Page 27: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Coin Flip Probability

Page 28: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Coin Toss

Click image to visit Java Activity

Page 29: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Crazy Choice

Click image to visit Java Activity

Page 30: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Experimental Probability

Click image to visit Java Activity

Page 31: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability of Pulling Marbles Out of a Bag

Click image to visit Java Activity

Page 32: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 33: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Two Colors

Click image to visit Java Activity

Page 34: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Probability in Monopoly

The probability of landing on a

specific property in Monopoly is a factor of the

probability of the dice, the location of the property on the

board, the randomness of

Community Chest and Chance cards,

and if players pay to get out of jail.

Page 35: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Name Probability Rank

In Jail 3.9499 1

Illinois Avenue 3.1858 2

Go 3.0961 3

New York Avenue 3.0852 4

B & O Railroad 3.0659 5

Reading Railroad 2.9631 6

Tennessee Avenue 2.9356 7

Pennsylvania Railroad 2.92 8

Free Parking 2.8836 9

Kentucky Avenue 2.8358 10

Water Works 2.8074 11

St. James Place 2.7924 12

Indiana Avenue 2.7357 13

Atlantic Avenue 2.7072 14

St. Charles Place 2.7017 15

Ventnor Avenue 2.6789 16

Pacific Avenue 2.6774 17

Boardwalk 2.626 18

North Carolina Avenue 2.6252 19

Electric Company 2.604 20

Community Chest 2.5945 21

Marvin Gardens 2.5861 22

Pennsylvania Avenue 2.5006 23

Virginia Avenue 2.4649 24

Short Line 2.4326 25

States Avenue 2.3721 26

Community Chest 2.3661 27

Income Tax 2.3285 28

Vermont Avenue 2.321 29

Connecticut Avenue 2.3003 30

Visiting Jail 2.2695 31

Oriental Avenue 2.2621 32

Park Place 2.1864 33

Luxury Tax 2.1799 34

Baltic Avenue 2.1624 35

Mediterranean Avenue 2.1314 36

Community Chest 1.8849 37

Chance 1.048 38

Chance 0.8669 39

Chance 0.865 40

Go To Jail 0 41

Page 36: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Players tend to pay to get out of jail early in the game when there is property to buy. This increases their

chances of purchasing property.

Page 37: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Players tend to stay in jail longer after much of the property has been developed to avoid landing on opponents’

property. It’s safe in jail. This changes the probability dynamics of the game.

Page 38: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 39: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

These numbers represent the amount of money you will earn or pay out every time you roll. For example: There are 40 squares on the Monopoly board and the average amount on a typical roll of the dice is “7”. If

you divide 40 by 7 you will get about 6. Take the $200 for passing Go and divide by 6 turns and you will get $33.78 for every roll taken in the game.

Taking into account the amount you pay on taxes, you will earn $29.81 for every turn you take throughout

the game.

Page 40: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Conclusions on Monopoly• Railroads are excellent investments, particularly when owned

together.• The best return on investment is from putting a third house on

New York Avenue. It has the fastest payoff of any building on almost all of the properties.

• The square most landed on other than Jail is Illinois Avenue, a hotel there will bring the most income other than a hotel on Boardwalk.

• The worst investment is to buy Mediterranean Avenue without first owning Baltic Avenue.

• The properties between the Jail square and the Go To Jail square are landed on the most, because of the jump caused by landing on Go To Jail.

• The Orange ones have the biggest bang for the buck as far as building goes.

Page 41: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.
Page 42: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Be sure to draw the right conclusion!

Page 43: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Batting Averages

Your favorite baseball player is batting 300. What does this mean?

A batting average involves calculating the probability of a player's getting a hit. The sample space is the total number of at-bats a player has had, not including walks. A hit is a favorable outcome. Thus if in 10 at-bats a player gets 3 hits, his or her batting average is 3/10 or 30%. For baseball stats we multiply all the percentages by 10, so a 30% probability translates to a 300 batting average.

Page 44: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

Batting Averages

Career Records

Career Leaders & Records for Batting Average

Page 45: Probability in Games. What is Probability? Probability is a branch of mathematics that deals with calculating the likelihood an event will occur and is.

THE END