ECOR 1606 Copyright © 2002, Department of Systems and Computer Engineering, Carleton University 1 Exercise 7 The following is excerpted from Richard Epstein’s.

Slides:



Advertisements
Similar presentations
YOU DONT KNOW CRAPS!!. An Investigation Using Probability, the Geometric Distribution, and Expected Returns for the Game of Craps By Otto Magdanz and.
Advertisements

Sta220 - Statistics Mr. Smith Room 310 Class #14.
EGR 141 Computer Problem Solving in Engineering and Computer Science
Introduction to Philosophy Lecture 6 Pascal’s wager
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Expected Value, the Law of Averages, and the Central Limit Theorem
Games of probability What are my chances?. Roll a single die (6 faces). –What is the probability of each number showing on top? Activity 1: Simple probability:
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
VK Dice By: Kenny Gutierrez, Vyvy Pham Mentors: Sarah Eichhorn, Robert Campbell.
A Collaboration between: Los Angeles USD University of California, San Diego San Diego State University University of California, Irvine Preparing for.
Making decisions using mathematics What are the chances of choosing the winning set of numbers for the National Lottery? How many possible combinations.
Craps (!!) Casino Craps: Strategies for Reducing the Odds Against You - by Robert Roto. June 2014 Get this deck at: tinyurl.com/ovnjy7d.
Matlab tutorial course Exercises 4:. Exercises – for loops Download the scripts loops_example.m and if_else_example.m, run the code Download the function,
Monopoly Game Example Mutually Exclusive.
An application of the Probability Theory
Introduction to Probability and Risk in Financial Investment
What are my Odds? Historical and Modern Efforts to Win at Games of Chance.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 12 – Craps Game Application: Introducing Random.
CHAPTER 6: RANDOM VARIABLES AND EXPECTATION
 The Law of Large Numbers – Read the preface to Chapter 7 on page 388 and be prepared to summarize the Law of Large Numbers.
Using Tinkerplots Ruth Kaniuk Endeavour Teacher Fellow, 2013.
Craps Table Odds: Comparing Player’s Edges For Selected Table Odds
Review of Probability and Binomial Distributions
Black Jack Dr. Bernard Chen University of Central Arkansas Spring 2012.
Chapter 11: understanding randomness (Simulations)
Probabilities of common Games How do I avoid bad bets?
My game… You pay £1 to play I roll a dice If it lands on 1 or 2 you win £1.50 If it lands on 3, 4, 5, 6 you lose Will this game make me a profit if 10.
Check it out! : Simple Random Sampling. Players of a dice game roll five dice and earn points according to the combinations of numbers they roll.
Random Variables A random variable A variable (usually x ) that has a single numerical value (determined by chance) for each outcome of an experiment A.
Probability Part 1 – Fundamental and Factorial Counting Rules.
Application of Random Variables
The game of Craps Rules of play: 1. Played with two dice (six faces to a die – numbers 1-6 per face) 2. Sequence of betting rounds (or just rounds) 3.
Copyright © 2010 Pearson Education, Inc. Unit 3: Gathering Data Chapter 11 Understanding Randomness.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
Section 11.6 Odds and Expectation Math in Our World.
Casinos There’s a reason they are big and extravagant!
1 Introduction to Discrete Probability Rosen, Section 6.1 Based on slides by Aaron Bloomfield and …
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
1 M14 Expected Value, Discrete  Department of ISM, University of Alabama, ’95,2002 Lesson Objectives  Understand the meaning of “expected value.” (Know.
Outline Random processes Random variables Probability histograms
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds Discussion Paragraph 7B 1 web 59. Lottery Chances 60. HIV Probabilities 1 world.
Casino Craps by Vera Sanchez
1 Psych 5500/6500 Standard Deviations, Standard Scores, and Areas Under the Normal Curve Fall, 2008.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
What is Probability?. The Mathematics of Chance How many possible outcomes are there with a single 6-sided die? What are your “chances” of rolling a 6?
MM1D2d: Use expected value to predict outcomes
Probability Evaluation 11/12 th Grade Statistics Fair Games Random Number Generator Probable Outcomes Resources Why Fair Games? Probable Outcome Examples.
Not So Great Expectations! Which game do you think has the highest return per dollar?
Chapter 6 Methods: A Deeper Look. Objectives In this chapter you will learn: How static methods and fields are associated with an entire class rather.
Warm Up If Babe Ruth has a 57% chance of hitting a home run every time he is at bat, run a simulation to find out his chances of hitting a homerun at least.
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
Copyright © 2002, Department of Systems and Computer Engineering, Carleton University 1 Exercise 6 This assignment is probably best started by running.
GamblingGambling What are the odds? Jessica Judd.
MATH 256 Probability and Random Processes Yrd. Doç. Dr. Didem Kivanc Tureli 14/10/2011Lecture 3 OKAN UNIVERSITY.
Probability Class Causation and Probability We are interested in finding the effect of Dr. Wong’s exploring teaching methodology on the statistics.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds Discussion Paragraph 7B 1 web 59. Lottery Chances 60. HIV Probabilities 1 world.
The expected value The value of a variable one would “expect” to get. It is also called the (mathematical) expectation, or the mean.
The normal approximation for probability histograms.
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.
1 Copyright © 2014, 2012, 2009 Pearson Education, Inc. Chapter 9 Understanding Randomness.
Stats 8/26/13 1. Check homework C11 #2-9 Ch 11 Practice
In games of chance the expectations can be thought of as the average outcome if the game was repeated multiple times. Expectation These calculated expectations.
Lesson 96 – Expected Value & Variance of Discrete Random Variables HL2 Math - Santowski.
You Bet Your Life - So to Speak
Probability Distributions; Expected Value
The Fair Unfair Polarization
Probability: Living with the Odds
The Law of Large Numbers
Probability 14.1 Experimental Probability 14.2 Principles of Counting
Matlab tutorial course
Presentation transcript:

ECOR 1606 Copyright © 2002, Department of Systems and Computer Engineering, Carleton University 1 Exercise 7 The following is excerpted from Richard Epstein’s “The Theory of Gambling and Statistical Logic”. Years ago, this was the textbook for a first year math course on gambling, sadly no longer offered. “Of the various dice games adopted by the gambling casinos, the most prevalent, by far, is Craps. The direct ancestor of Craps is the game of Hazard, reputedly (according to William of Tyre, died 1190) invented by twelfth-century English Crusaders during the siege of an Arabian castle, Montmort established formal rules for Hazard and it subsequently became highly popular in early nineteenth-century England and France. In the British clubs the casts of 2, 3, or 12 were referred to as “Crabs”. Presumably the French adaptation involved a Gaelic mispronunciation, which contributed the word “Craps”, and since the game immigrated to America with the French colony of New Orleans, its currency became firmly established. Craps is played with two dice. A player throws both dice, winning unconditionally if he produces the outcomes 7 or 11 (as the sum of the numbers showing on the two dice), which are designated as “naturals”. If a player casts the outcomes 2, 3, or 12 – referred to as “craps” – he loses unconditionally. If he produces the outcomes 4, 5, 6, 8, 9, or 10, each of these outcomes being known as a “point”, he continues the sequence of throws until either the same outcome (point) is repeated or the outcome 7 occurs. Repetition of the particular “point” is a win, while the appearance of a 7 now signifies a loss.”. In casino, one can bet the “pass line”. This bet wins if the player wins (“makes a pass”) and loses if the player loses. One can also bet on “don’t pass bar 6-6”. This is basically betting against the player. In general, the bet wins if the player loses (and vice versa). If the player first roll is 6-6, however, the better neither wins nor loses, but simply gets his money back. Both the “pass line” and “don’t pass bar 6-6” pay out at two to one: if one bets $1, and the bet wins, one gets $2 back. For this assignment, you are to write a program which uses simulation to determine 1/. the percentage of the time that a “pass line” bet will win, 2/. the percentage of the time that a “don’t pass bar 6-6” bet will win (ignoring ties) and 3/. and the average number of die rolls per game. Simulation is, it must be admitted, not really very appropriate here, as all of the required quantities can easily be computed analytically. The problem works well as an exercise in simulation, however, and knowing the exact answers allows one to easily see how good (or bad) the simulation results are.

ECOR 1606 Copyright © 2002, Department of Systems and Computer Engineering, Carleton University 2 Your program must include a “die rolling” function and a function which simulates a single game of craps. The second of these functions must somehow “return” whether the player won, whether his first roll was a 12, and the number of die rolls it took to produce an outcome. Since the normal return mechanism can return only one value, you will need to use call by reference for at least two of these quantities. Your program should ask the user for the number of games to be simulated, and should loop so as to allow the effects of different values to be easily investigated (see the sample program). Food for thought (optional): Suppose you were to discover that one of the dice in use at a Craps table in the Hull casino was biased, and that a 3 came up 40% of the time (with each of the other values appearing 12% of the time). Would this represent a money-making opportunity and, if so, which bet should be chosen?