Heckmeck am Bratwurmeck or How to grill the maximum number of worms

Size: px
Start display at page:

Download "Heckmeck am Bratwurmeck or How to grill the maximum number of worms"

Transcription

1 Heckmeck am Bratwurmeck or How to grill the maximum number of worms Roland C. Seydel 24/05/22 (1) Heckmeck am Bratwurmeck 24/05/22 1 / 29

2 Overview 1 Introducing the dice game The basic rules Understanding the strategy 2 Computing the optimal strategy Value function and state space Computing the value function 3 The results (2) Heckmeck am Bratwurmeck 24/05/22 2 / 29

3 Overview Introducing the dice game 1 Introducing the dice game The basic rules Understanding the strategy 2 Computing the optimal strategy Value function and state space Computing the value function 3 The results (3) Heckmeck am Bratwurmeck 24/05/22 3 / 29

4 Introducing the dice game The basic rules The rules (I) Goal of the game: Get the most worms by throwing high (spot) numbers. 1 There are eight dice with six sides each, going from 1 to 6, where instead of a 6 a worm is shown. 2 You can throw the dice as often as you want; after each throw you choose a number which you haven t chosen yet and put aside all the dice showing this number. 3 The numbers of the dice put aside are added, where a worm (6) counts as a 5. No 6 put aside 0 points! You can take a piece from the shelf with number your points, and put it on top of your pile. (4) Heckmeck am Bratwurmeck 24/05/22 4 / 29

5 Introducing the dice game The basic rules The rules (II) The winner is the player with the most worms in his pile. Several additional rules which matter to us: Not able to put aside a new number? 0 points! You can also take a piece from the top of your coplayers piles, if you match the number exactly. If your points are not sufficient to pick a piece, you lose the piece on top of your own pile. Rules we ignore for now: Lost pieces are put back on the shelf; the piece with the largest available number is removed from the shelf. Your coplayers can also take pieces from you when it s their turn! The game is over when the shelf is empty. (5) Heckmeck am Bratwurmeck 24/05/22 5 / 29

6 Example game Introducing the dice game The basic rules (6) Heckmeck am Bratwurmeck 24/05/22 6 / 29

7 Introducing the dice game Understanding the strategy Optimal strategy: Easy to tell Is selecting four 1 a good idea? Are two 5 better, or two 6? Are two 4 better, or two 5? If I could lose four worms, should I bet or rather risk nothing? (7) Heckmeck am Bratwurmeck 24/05/22 7 / 29

8 Introducing the dice game Understanding the strategy Optimal strategy: Difficult to tell Are three 5 better, or two 6? And what about four 5? Could it be optimal to select one or more 3 in the first throw? Should I take the five 5, or is it too dangerous? What is the expected / most likely outcome in terms of worms? Should I stop with three 5 and two 6, or continue? (8) Heckmeck am Bratwurmeck 24/05/22 8 / 29

9 Introducing the dice game Understanding the strategy Parallels to option pricing Early exercise: The player can decide when to stop and exercise. American option Optimal control: At each point in time, a decision has to be taken. Swing option Knock out: If there is no 6, or you are not able to put aside a new number, our points are 0. Barrier option Conclusion Compute the optimal solution by option pricing methods? (9) Heckmeck am Bratwurmeck 24/05/22 9 / 29

10 Overview Computing the optimal strategy 1 Introducing the dice game The basic rules Understanding the strategy 2 Computing the optimal strategy Value function and state space Computing the value function 3 The results (10) Heckmeck am Bratwurmeck 24/05/22 10 / 29

11 Computing the optimal strategy Differences to option pricing Option pricing Continuous state space Continuous time Typically 1d state space Same state space in time Knockout happens at barrier line Random noise is added to process No decision needed Heckmeck Discrete state space Only up to 8 times Up to 8d state space Changing state space No clear line for knockout Random is not added to state Each throw needs a decision (control) (11) Heckmeck am Bratwurmeck 24/05/22 11 / 29

12 Assumptions Computing the optimal strategy 1 The player wants to maximize the expected number of worms in his turn 2 Reactions of other players are not anticipated (single-player optimization) 3 Not the total outcome of the game is optimized, but one single turn of up to 6 throws! (12) Heckmeck am Bratwurmeck 24/05/22 12 / 29

13 Computing the optimal strategy Value function and state space Value function Situation An array of pieces available on the shelf, on other players piles and on your own pile is called a situation. State space A vector x {1,..., 6} t of already selected dice at time t {0,..., 8} is called the state at time t. The state space for time t is the ensemble of all possible selections with x {1,..., 6} t. We consider only sorted states with notation x = {...}. Value function For a particular situation, the value function v(x) is the expected number of worms (on pieces), assuming that starting from a state of x the expectation-optimal decisions will be taken. Caveat: From now on, worms are only worms on pieces, not on dice! (13) Heckmeck am Bratwurmeck 24/05/22 13 / 29

14 Computing the optimal strategy Value function: payoff Value function and state space (Worm) payoff For a particular situation let w(n) be the number of worms you would get or lose for a sum of points n. Then the (worm) payoff p(x) of a state x is defined by the number of worms you would get or lose upon termination. In formulas, ({ ) i p(x) = w(n(x)) = w min(x i, 5) 6 x. 0 else Each situation has a worst payoff w(0), equal to the negative number of worms on top of your pile. Examples: p({5, 5, 5, 5, 5, 5, 5, 5}) = w(0) {...} sorted vector! p({1, 2, 3, 4, 5, 6, 6, 6}) = 3 p({1, 5, 5, 5, 6}) = 1 (14) Heckmeck am Bratwurmeck 24/05/22 14 / 29

15 Computing the optimal strategy Value function and state space Value function on intermediate states Intermediate state For a state x {1,..., 6} t and a throw y {1,..., 6} 8 t, the tuple (x, y) is called intermediate state, i.e., a state that still needs a decision. We can also define the value function of intermediate states (x, y): Either there is a valid best choice ỹ y (in particular ỹ x = ) such that v((x, y)) = v({x, ỹ}), or there is no valid choice, in which case v((x, y)) = w(0) (worst payoff). Conclusion: It is sufficient to compute only the value function on normal states! (15) Heckmeck am Bratwurmeck 24/05/22 15 / 29

16 Computing the optimal strategy Value function and state space Value function: optimal exercise For states in {1,..., 6} 8, the value function is equal to the payoff (assuming full shelf), e.g.: v({5, 5, 5, 5, 5, 5, 5, 5}) = p({5, 5, 5, 5, 5, 5, 5, 5}) = w(0) v({1, 2, 3, 4, 5, 6, 6, 6}) = p({1, 2, 3, 4, 5, 6, 6, 6}) = 3 We call this the terminal condition. There are other types of states for which the value function is determined by the payoff function: Optimal exercise It is optimal to exercise in a state x {1,..., 6} t if v(x) = p(x), i.e., the value function equals the payoff function. In this case the expected optimal number of worms can be obtained immediately. Yet we do not know the value function yet... (16) Heckmeck am Bratwurmeck 24/05/22 16 / 29

17 Computing the optimal strategy State space in time t: example Value function and state space Throw dice (random) Decide x = {5, 5, 5} x = {4, 5, 5, 5} x = {1, 5, 5, 5} y = {1, 3, 3, 4, 5} y = {5, 5, 5, 6, 6} y = {5, 5, 5, 5, 5} x = {3, 3, 5, 5, 5} x = {5, 5, 5, 6, 6} Exercise? Knock out! t=3 t=4 t=5 (17) Heckmeck am Bratwurmeck 24/05/22 17 / 29

18 Computing the optimal strategy Computing the value function Finding the value function: Possible approaches Monte Carlo simulation? This is the approach implicitly chosen by experienced players: Simulate dice throws on the computer Try different strategies in different (simulated) games. Problem: Causality difficult to establish because of multitude of possible strategies Need many simulations! Use recursion programming principle? Solution fastest to implement: Uses { max {p(x), E[max y Y v((x, y))]} x < 8 v(x) = (1) p(x) x = 8 where Y follows a multinominal (dice) distribution One command v({}) starts the whole calculation recursively Problem: Takes an eternity, because most states are computed multiple times Backward induction! Start at terminal time and compute p(x), then go backwards in time using (1). Compute each state only once (18) Heckmeck am Bratwurmeck 24/05/22 18 / 29

19 Computing the optimal strategy Computing the value function Needed: The multinomial distribution Q: If you toss a coin 5 times, what is the probability of getting 5 4 heads and 4 tails? A: Binomial distribution! 5! (5 4)! 4! (1 0.5) 4 Multinomial (dice) distribution If you throw a k-dimensional dice n times, then the probability of getting x i times the spot number i for i = 1,..., k is f M (x) = where k i=1 p i = 1 and n i=1 x i = n. n! x 1!... x k! px px k k (19) Heckmeck am Bratwurmeck 24/05/22 19 / 29

20 Backward induction Computing the optimal strategy Computing the value function The backward induction makes the implicit equation (1) explicit by making sure that the values on the right hand side are already computed: Algorithm: Backward induction 1 At time t = 8, determine terminal payoff p(x) for all possible states x {1,..., 6} 8 2 Go backwards in time t t 1, for each t-state x do: 1 Compute distribution of possible dice scenarios 2 Check for each scenario whether knocked out (no new spot numbers), or else to which future state the scenario could lead 3 Take the expectation E Y [max y Y v((x, y))] with v from future times 4 Take the maximum with p(x) (exercise instead of throwing dice) MATLAB implementation runs in just a few seconds on a normal PC! (20) Heckmeck am Bratwurmeck 24/05/22 20 / 29

21 Overview The results 1 Introducing the dice game The basic rules Understanding the strategy 2 Computing the optimal strategy Value function and state space Computing the value function 3 The results (21) Heckmeck am Bratwurmeck 24/05/22 21 / 29

22 Figure: Contour lines of value function in initial throw, if shelf starts at 21; dependent on the number of selected dice (vertical axis) of a particular spot (22) Heckmeck am Bratwurmeck 24/05/22 22 / 29 The results Contour lines of value function, full shelf, initial throw 8 Heckmeck initial throw #dice selected spot number 1.5

23 Explanation: Left almost no values in [5, 20] because for these dice sums knockout is very likely. (23) Heckmeck am Bratwurmeck 24/05/22 23 / 29 Distribution of points The results 0.5 Dice sum distribution for full shelf 0.5 Dice sum distribution for shelf starting at Probability Probability Dice sum Dice sum Figure: Distribution of dice sum under optimal strategy, from a Monte Carlo simulation with 1000 paths. Left: Full shelf, right: shelf starting at 30

24 Most likely selections The results What is the most likely initial selection of dice, assuming we act optimally? Answer: two 6 Number of dice Spots Table: Probability that a number of dice (horizontal axis) carrying a certain number of spots (vertical axis) is selected under the optimal strategy. (24) Heckmeck am Bratwurmeck 24/05/22 24 / 29

25 The results Optimal exercise decisions: Example Original question: Stop with three 5 and two 6? (25) Heckmeck am Bratwurmeck 24/05/22 25 / 29

26 The results Optimal exercise decisions: Example Original question: Stop with three 5 and two 6? >> [v,a,a_inv] = heckmeck_v4(21:36, [], []); >> heckmeck_value([5,5,5,6,6],a_inv,v) (25) Heckmeck am Bratwurmeck 24/05/22 25 / 29

27 The results Optimal exercise decisions: Example Original question: Stop with three 5 and two 6? >> [v,a,a_inv] = heckmeck_v4(21:36, [], []); >> heckmeck_value([5,5,5,6,6],a_inv,v) >> [v,a,a_inv] = heckmeck_v4([21:31,33:36], [], [32]); >> heckmeck_value([5,5,5,6,6],a_inv,v) (25) Heckmeck am Bratwurmeck 24/05/22 25 / 29

28 The results Optimal exercise decisions: Example Original question: Stop with three 5 and two 6? >> [v,a,a_inv] = heckmeck_v4(21:36, [], []); >> heckmeck_value([5,5,5,6,6],a_inv,v) >> [v,a,a_inv] = heckmeck_v4([21:31,33:36], [], [32]); >> heckmeck_value([5,5,5,6,6],a_inv,v) >> [v,a,a_inv] = heckmeck_v4([24,33,34], [21, 25,29], [32]); >> heckmeck_value([5,5,5,6,6],a_inv,v) 2 (25) Heckmeck am Bratwurmeck 24/05/22 25 / 29

29 Figure: Convergence of mean of Monte Carlo simulation depending on number of paths (blue line) in initial throw, if shelf starts at 21. Green: backward induction (26) Heckmeck am Bratwurmeck 24/05/22 26 / 29 The results Optimal strategy in Monte Carlo simulation MC simulation vs. backward induction for initial throw, full shelf Mean of MC sim Value function (backward induction) Value fct +/ stdev 1.8 Number of worms Number of paths

30 The results Optimal strategy in Monte Carlo simulation (2) In the whole game, what is our probability of winning if others pursue average strategies? Test: Optimal strategy vs. fuzzy strategy We test our results in a two-player game: Player 1 follows the optimal strategy (derived from the value function v) Player 2 derives his strategy from a value function misestimated by ±0.1 worms (by randomly perturbing v with stdev of 0.1) Result: Player 1 wins 17 out of 20 games! Conclusion: Even a slight difference in optimality makes us win most of the games (law of large numbers because of many rounds per game!) (27) Heckmeck am Bratwurmeck 24/05/22 27 / 29

31 The results Extensions / References Possible extensions: Incorporate risk in pricing? Utility functions Compute optimal strategies for the whole game Reference: Reiner Knizia: Heckmeck am Bratwurmeck (Pickomino), Zoch-Verlag 2005 (28) Heckmeck am Bratwurmeck 24/05/22 28 / 29

32 Value function dependent on shelf, initial throw Expected optimal worms Value depending on shelf die=4 #selected=1 die=4 #selected=2 die=4 #selected=3 die=4 #selected=4 die=4 #selected=5 die=5 #selected=1 die=5 #selected=2 die=5 #selected=3 die=5 #selected=4 die=5 #selected=5 die=6 #selected=1 die=6 #selected=2 die=6 #selected=3 die=6 #selected=4 die=6 #selected= Shelf starts at... Figure: Expected number of worms under optimal strategy for different initial dice choices, dependent on the minimal number available on the shelf. (29) Heckmeck am Bratwurmeck 24/05/22 29 / 29

Definition 4.1. In a stochastic process T is called a stopping time if you can tell when it happens.

Definition 4.1. In a stochastic process T is called a stopping time if you can tell when it happens. 102 OPTIMAL STOPPING TIME 4. Optimal Stopping Time 4.1. Definitions. On the first day I explained the basic problem using one example in the book. On the second day I explained how the solution to the

More information

Using the Maximin Principle

Using the Maximin Principle Using the Maximin Principle Under the maximin principle, it is easy to see that Rose should choose a, making her worst-case payoff 0. Colin s similar rationality as a player induces him to play (under

More information

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values.

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values. MA 5 Lecture 4 - Expected Values Wednesday, October 4, 27 Objectives: Introduce expected values.. Means, Variances, and Standard Deviations of Probability Distributions Two classes ago, we computed the

More information

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going?

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going? 1 The Law of Averages The Expected Value & The Standard Error Where Are We Going? Sums of random numbers The law of averages Box models for generating random numbers Sums of draws: the Expected Value Standard

More information

4.1 Probability Distributions

4.1 Probability Distributions Probability and Statistics Mrs. Leahy Chapter 4: Discrete Probability Distribution ALWAYS KEEP IN MIND: The Probability of an event is ALWAYS between: and!!!! 4.1 Probability Distributions Random Variables

More information

Math 180A. Lecture 5 Wednesday April 7 th. Geometric distribution. The geometric distribution function is

Math 180A. Lecture 5 Wednesday April 7 th. Geometric distribution. The geometric distribution function is Geometric distribution The geometric distribution function is x f ( x) p(1 p) 1 x {1,2,3,...}, 0 p 1 It is the pdf of the random variable X, which equals the smallest positive integer x such that in a

More information

Chapter 4 and 5 Note Guide: Probability Distributions

Chapter 4 and 5 Note Guide: Probability Distributions Chapter 4 and 5 Note Guide: Probability Distributions Probability Distributions for a Discrete Random Variable A discrete probability distribution function has two characteristics: Each probability is

More information

Lecture 17: More on Markov Decision Processes. Reinforcement learning

Lecture 17: More on Markov Decision Processes. Reinforcement learning Lecture 17: More on Markov Decision Processes. Reinforcement learning Learning a model: maximum likelihood Learning a value function directly Monte Carlo Temporal-difference (TD) learning COMP-424, Lecture

More information

Simple Random Sample

Simple Random Sample 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 has an equal chance to be the sample actually selected.

More information

Expectation Exercises.

Expectation Exercises. Expectation Exercises. Pages Problems 0 2,4,5,7 (you don t need to use trees, if you don t want to but they might help!), 9,-5 373 5 (you ll need to head to this page: http://phet.colorado.edu/sims/plinkoprobability/plinko-probability_en.html)

More information

Probability. An intro for calculus students P= Figure 1: A normal integral

Probability. An intro for calculus students P= Figure 1: A normal integral Probability An intro for calculus students.8.6.4.2 P=.87 2 3 4 Figure : A normal integral Suppose we flip a coin 2 times; what is the probability that we get more than 2 heads? Suppose we roll a six-sided

More information

What do you think "Binomial" involves?

What do you think Binomial involves? Learning Goals: * Define a binomial experiment (Bernoulli Trials). * Applying the binomial formula to solve problems. * Determine the expected value of a Binomial Distribution What do you think "Binomial"

More information

NMAI059 Probability and Statistics Exercise assignments and supplementary examples October 21, 2017

NMAI059 Probability and Statistics Exercise assignments and supplementary examples October 21, 2017 NMAI059 Probability and Statistics Exercise assignments and supplementary examples October 21, 2017 How to use this guide. This guide is a gradually produced text that will contain key exercises to practise

More information

Yao s Minimax Principle

Yao s Minimax Principle Complexity of algorithms The complexity of an algorithm is usually measured with respect to the size of the input, where size may for example refer to the length of a binary word describing the input,

More information

Binomial and multinomial distribution

Binomial and multinomial distribution 1-Binomial distribution Binomial and multinomial distribution The binomial probability refers to the probability that a binomial experiment results in exactly "x" successes. The probability of an event

More information

AP Statistics Section 6.1 Day 1 Multiple Choice Practice. a) a random variable. b) a parameter. c) biased. d) a random sample. e) a statistic.

AP Statistics Section 6.1 Day 1 Multiple Choice Practice. a) a random variable. b) a parameter. c) biased. d) a random sample. e) a statistic. A Statistics Section 6.1 Day 1 ultiple Choice ractice Name: 1. A variable whose value is a numerical outcome of a random phenomenon is called a) a random variable. b) a parameter. c) biased. d) a random

More information

Probability Distributions: Discrete

Probability Distributions: Discrete Probability Distributions: Discrete INFO-2301: Quantitative Reasoning 2 Michael Paul and Jordan Boyd-Graber FEBRUARY 19, 2017 INFO-2301: Quantitative Reasoning 2 Paul and Boyd-Graber Probability Distributions:

More information

MATH1215: Mathematical Thinking Sec. 08 Spring Worksheet 9: Solution. x P(x)

MATH1215: Mathematical Thinking Sec. 08 Spring Worksheet 9: Solution. x P(x) N. Name: MATH: Mathematical Thinking Sec. 08 Spring 0 Worksheet 9: Solution Problem Compute the expected value of this probability distribution: x 3 8 0 3 P(x) 0. 0.0 0.3 0. Clearly, a value is missing

More information

King s College London

King s College London King s College London University Of London This paper is part of an examination of the College counting towards the award of a degree. Examinations are governed by the College Regulations under the authority

More information

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables Chapter : Random Variables Ch. -3: Binomial and Geometric Random Variables X 0 2 3 4 5 7 8 9 0 0 P(X) 3???????? 4 4 When the same chance process is repeated several times, we are often interested in whether

More information

2 The binomial pricing model

2 The binomial pricing model 2 The binomial pricing model 2. Options and other derivatives A derivative security is a financial contract whose value depends on some underlying asset like stock, commodity (gold, oil) or currency. The

More information

The Binomial Lattice Model for Stocks: Introduction to Option Pricing

The Binomial Lattice Model for Stocks: Introduction to Option Pricing 1/33 The Binomial Lattice Model for Stocks: Introduction to Option Pricing Professor Karl Sigman Columbia University Dept. IEOR New York City USA 2/33 Outline The Binomial Lattice Model (BLM) as a Model

More information

1.1 Interest rates Time value of money

1.1 Interest rates Time value of money Lecture 1 Pre- Derivatives Basics Stocks and bonds are referred to as underlying basic assets in financial markets. Nowadays, more and more derivatives are constructed and traded whose payoffs depend on

More information

the number of correct answers on question i. (Note that the only possible values of X i

the number of correct answers on question i. (Note that the only possible values of X i 6851_ch08_137_153 16/9/02 19:48 Page 137 8 8.1 (a) No: There is no fixed n (i.e., there is no definite upper limit on the number of defects). (b) Yes: It is reasonable to believe that all responses are

More information

TRINITY COLLGE DUBLIN

TRINITY COLLGE DUBLIN TRINITY COLLGE DUBLIN School of Computer Science and Statistics Extra Questions ST3009: Statistical Methods for Computer Science NOTE: There are many more example questions in Chapter 4 of the course textbook

More information

OCR Statistics 1. Discrete random variables. Section 2: The binomial and geometric distributions. When to use the binomial distribution

OCR Statistics 1. Discrete random variables. Section 2: The binomial and geometric distributions. When to use the binomial distribution Discrete random variables Section 2: The binomial and geometric distributions Notes and Examples These notes contain subsections on: When to use the binomial distribution Binomial coefficients Worked examples

More information

Symmetric Game. In animal behaviour a typical realization involves two parents balancing their individual investment in the common

Symmetric Game. In animal behaviour a typical realization involves two parents balancing their individual investment in the common Symmetric Game Consider the following -person game. Each player has a strategy which is a number x (0 x 1), thought of as the player s contribution to the common good. The net payoff to a player playing

More information

CHAPTER 4 DISCRETE PROBABILITY DISTRIBUTIONS

CHAPTER 4 DISCRETE PROBABILITY DISTRIBUTIONS CHAPTER 4 DISCRETE PROBABILITY DISTRIBUTIONS A random variable is the description of the outcome of an experiment in words. The verbal description of a random variable tells you how to find or calculate

More information

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011 Reinforcement Learning Supervised Learning: Uses explicit supervision

More information

Chapter 4 Discrete Random variables

Chapter 4 Discrete Random variables Chapter 4 Discrete Random variables A is a variable that assumes numerical values associated with the random outcomes of an experiment, where only one numerical value is assigned to each sample point.

More information

Decision Trees: Booths

Decision Trees: Booths DECISION ANALYSIS Decision Trees: Booths Terri Donovan recorded: January, 2010 Hi. Tony has given you a challenge of setting up a spreadsheet, so you can really understand whether it s wiser to play in

More information

Experimental Probability - probability measured by performing an experiment for a number of n trials and recording the number of outcomes

Experimental Probability - probability measured by performing an experiment for a number of n trials and recording the number of outcomes MDM 4U Probability Review Properties of Probability Experimental Probability - probability measured by performing an experiment for a number of n trials and recording the number of outcomes Theoretical

More information

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration

Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011 Reinforcement Learning Supervised Learning: Uses explicit supervision

More information

Probability Distributions. Definitions Discrete vs. Continuous Mean and Standard Deviation TI 83/84 Calculator Binomial Distribution

Probability Distributions. Definitions Discrete vs. Continuous Mean and Standard Deviation TI 83/84 Calculator Binomial Distribution Probability Distributions Definitions Discrete vs. Continuous Mean and Standard Deviation TI 83/84 Calculator Binomial Distribution Definitions Random Variable: a variable that has a single numerical value

More information

Monte Carlo Methods in Structuring and Derivatives Pricing

Monte Carlo Methods in Structuring and Derivatives Pricing Monte Carlo Methods in Structuring and Derivatives Pricing Prof. Manuela Pedio (guest) 20263 Advanced Tools for Risk Management and Pricing Spring 2017 Outline and objectives The basic Monte Carlo algorithm

More information

TABLE OF CONTENTS - VOLUME 2

TABLE OF CONTENTS - VOLUME 2 TABLE OF CONTENTS - VOLUME 2 CREDIBILITY SECTION 1 - LIMITED FLUCTUATION CREDIBILITY PROBLEM SET 1 SECTION 2 - BAYESIAN ESTIMATION, DISCRETE PRIOR PROBLEM SET 2 SECTION 3 - BAYESIAN CREDIBILITY, DISCRETE

More information

STAT 3090 Test 2 - Version B Fall Student s Printed Name: PLEASE READ DIRECTIONS!!!!

STAT 3090 Test 2 - Version B Fall Student s Printed Name: PLEASE READ DIRECTIONS!!!! Student s Printed Name: Instructor: XID: Section #: Read each question very carefully. You are permitted to use a calculator on all portions of this exam. You are NOT allowed to use any textbook, notes,

More information

Random variables. Discrete random variables. Continuous random variables.

Random variables. Discrete random variables. Continuous random variables. Random variables Discrete random variables. Continuous random variables. Discrete random variables. Denote a discrete random variable with X: It is a variable that takes values with some probability. Examples:

More information

TUFTS UNIVERSITY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING ES 152 ENGINEERING SYSTEMS Spring Lesson 16 Introduction to Game Theory

TUFTS UNIVERSITY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING ES 152 ENGINEERING SYSTEMS Spring Lesson 16 Introduction to Game Theory TUFTS UNIVERSITY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING ES 52 ENGINEERING SYSTEMS Spring 20 Introduction: Lesson 6 Introduction to Game Theory We will look at the basic ideas of game theory.

More information

Numerical Methods in Option Pricing (Part III)

Numerical Methods in Option Pricing (Part III) Numerical Methods in Option Pricing (Part III) E. Explicit Finite Differences. Use of the Forward, Central, and Symmetric Central a. In order to obtain an explicit solution for the price of the derivative,

More information

Probability Distributions

Probability Distributions Chapter 6 Discrete Probability Distributions Section 6-2 Probability Distributions Definitions Let S be the sample space of a probability experiment. A random variable X is a function from the set S into

More information

King s College London

King s College London King s College London University Of London This paper is part of an examination of the College counting towards the award of a degree. Examinations are governed by the College Regulations under the authority

More information

additionalmathematicsadditionalmath ematicsadditionalmathematicsadditio nalmathematicsadditionalmathematic sadditionalmathematicsadditionalmat

additionalmathematicsadditionalmath ematicsadditionalmathematicsadditio nalmathematicsadditionalmathematic sadditionalmathematicsadditionalmat additionalmathematicsadditionalmath ematicsadditionalmathematicsadditio nalmathematicsadditionalmathematic sadditionalmathematicsadditionalmat PROBABILTY DISTRIBUTION hematicsadditionalmathematicsadditi

More information

Example Exam Wiskunde A

Example Exam Wiskunde A CENTRALE COMMISSIE VOORTENTAMEN WISKUNDE Date: Autumn 2018 Time: 3 Hours Questions: 6 Example Exam Wiskunde A Please read the instructions below carefully before answering the questions. Failing to comply

More information

Math 14 Lecture Notes Ch. 4.3

Math 14 Lecture Notes Ch. 4.3 4.3 The Binomial Distribution Example 1: The former Sacramento King's DeMarcus Cousins makes 77% of his free throws. If he shoots 3 times, what is the probability that he will make exactly 0, 1, 2, or

More information

Discrete Mathematics for CS Spring 2008 David Wagner Final Exam

Discrete Mathematics for CS Spring 2008 David Wagner Final Exam CS 70 Discrete Mathematics for CS Spring 2008 David Wagner Final Exam PRINT your name:, (last) SIGN your name: (first) PRINT your Unix account login: Your section time (e.g., Tue 3pm): Name of the person

More information

APPROXIMATING FREE EXERCISE BOUNDARIES FOR AMERICAN-STYLE OPTIONS USING SIMULATION AND OPTIMIZATION. Barry R. Cobb John M. Charnes

APPROXIMATING FREE EXERCISE BOUNDARIES FOR AMERICAN-STYLE OPTIONS USING SIMULATION AND OPTIMIZATION. Barry R. Cobb John M. Charnes Proceedings of the 2004 Winter Simulation Conference R. G. Ingalls, M. D. Rossetti, J. S. Smith, and B. A. Peters, eds. APPROXIMATING FREE EXERCISE BOUNDARIES FOR AMERICAN-STYLE OPTIONS USING SIMULATION

More information

VIDEO 1. A random variable is a quantity whose value depends on chance, for example, the outcome when a die is rolled.

VIDEO 1. A random variable is a quantity whose value depends on chance, for example, the outcome when a die is rolled. Part 1: Probability Distributions VIDEO 1 Name: 11-10 Probability and Binomial Distributions A random variable is a quantity whose value depends on chance, for example, the outcome when a die is rolled.

More information

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing Prof. Chuan-Ju Wang Department of Computer Science University of Taipei Joint work with Prof. Ming-Yang Kao March 28, 2014

More information

Binomial formulas: The binomial coefficient is the number of ways of arranging k successes among n observations.

Binomial formulas: The binomial coefficient is the number of ways of arranging k successes among n observations. Chapter 8 Notes Binomial and Geometric Distribution Often times we are interested in an event that has only two outcomes. For example, we may wish to know the outcome of a free throw shot (good or missed),

More information

Ex 1) Suppose a license plate can have any three letters followed by any four digits.

Ex 1) Suppose a license plate can have any three letters followed by any four digits. AFM Notes, Unit 1 Probability Name 1-1 FPC and Permutations Date Period ------------------------------------------------------------------------------------------------------- The Fundamental Principle

More information

Chaos and Game Theory:

Chaos and Game Theory: Chaos and Game Theory: Observations from Iterations of the Game, Rock-Paper-Scissors Thomas Moseder Statement of Problem: The goal of this project is to investigate the game, Rock-Paper- Scissors (RPS),

More information

Chapter 4 Discrete Random variables

Chapter 4 Discrete Random variables Chapter 4 Discrete Random variables A is a variable that assumes numerical values associated with the random outcomes of an experiment, where only one numerical value is assigned to each sample point.

More information

Introduction to Dynamic Programming

Introduction to Dynamic Programming Introduction to Dynamic Programming http://bicmr.pku.edu.cn/~wenzw/bigdata2018.html Acknowledgement: this slides is based on Prof. Mengdi Wang s and Prof. Dimitri Bertsekas lecture notes Outline 2/65 1

More information

12 Math Chapter Review April 16 th, Multiple Choice Identify the choice that best completes the statement or answers the question.

12 Math Chapter Review April 16 th, Multiple Choice Identify the choice that best completes the statement or answers the question. Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Which situation does not describe a discrete random variable? A The number of cell phones per household.

More information

Multinomial Coefficient : A Generalization of the Binomial Coefficient

Multinomial Coefficient : A Generalization of the Binomial Coefficient Multinomial Coefficient : A Generalization of the Binomial Coefficient Example: A team plays 16 games in a season. At the end of the season, the team has 8 wins, 3 ties and 5 losses. How many different

More information

We use probability distributions to represent the distribution of a discrete random variable.

We use probability distributions to represent the distribution of a discrete random variable. Now we focus on discrete random variables. We will look at these in general, including calculating the mean and standard deviation. Then we will look more in depth at binomial random variables which are

More information

A useful modeling tricks.

A useful modeling tricks. .7 Joint models for more than two outcomes We saw that we could write joint models for a pair of variables by specifying the joint probabilities over all pairs of outcomes. In principal, we could do this

More information

MAT 4250: Lecture 1 Eric Chung

MAT 4250: Lecture 1 Eric Chung 1 MAT 4250: Lecture 1 Eric Chung 2Chapter 1: Impartial Combinatorial Games 3 Combinatorial games Combinatorial games are two-person games with perfect information and no chance moves, and with a win-or-lose

More information

Problem Set 2: Answers

Problem Set 2: Answers Economics 623 J.R.Walker Page 1 Problem Set 2: Answers The problem set came from Michael A. Trick, Senior Associate Dean, Education and Professor Tepper School of Business, Carnegie Mellon University.

More information

Mean, Variance, and Expectation. Mean

Mean, Variance, and Expectation. Mean 3 Mean, Variance, and Expectation The mean, variance, and standard deviation for a probability distribution are computed differently from the mean, variance, and standard deviation for samples. This section

More information

Chapter 3 Discrete Random Variables and Probability Distributions

Chapter 3 Discrete Random Variables and Probability Distributions Chapter 3 Discrete Random Variables and Probability Distributions Part 2: Mean and Variance of a Discrete Random Variable Section 3.4 1 / 16 Discrete Random Variable - Expected Value In a random experiment,

More information

Binomial Distributions

Binomial Distributions Binomial Distributions (aka Bernouli s Trials) Chapter 8 Binomial Distribution an important class of probability distributions, which occur under the following Binomial Setting (1) There is a number n

More information

X i = 124 MARTINGALES

X i = 124 MARTINGALES 124 MARTINGALES 5.4. Optimal Sampling Theorem (OST). First I stated it a little vaguely: Theorem 5.12. Suppose that (1) T is a stopping time (2) M n is a martingale wrt the filtration F n (3) certain other

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Markov Decision Processes II Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC

More information

Chapter 5: Discrete Probability Distributions

Chapter 5: Discrete Probability Distributions Chapter 5: Discrete Probability Distributions Section 5.1: Basics of Probability Distributions As a reminder, a variable or what will be called the random variable from now on, is represented by the letter

More information

Learning Goals: * Determining the expected value from a probability distribution. * Applying the expected value formula to solve problems.

Learning Goals: * Determining the expected value from a probability distribution. * Applying the expected value formula to solve problems. Learning Goals: * Determining the expected value from a probability distribution. * Applying the expected value formula to solve problems. The following are marks from assignments and tests in a math class.

More information

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations.

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations. Binomial and Geometric Distributions - Terms and Formulas Binomial Experiments - experiments having all four conditions: 1. Each observation falls into one of two categories we call them success or failure.

More information

Assignment 3 - Statistics. n n! (n r)!r! n = 1,2,3,...

Assignment 3 - Statistics. n n! (n r)!r! n = 1,2,3,... Assignment 3 - Statistics Name: Permutation: Combination: n n! P r = (n r)! n n! C r = (n r)!r! n = 1,2,3,... n = 1,2,3,... The Fundamental Counting Principle: If two indepndent events A and B can happen

More information

Binomial Random Variables. Binomial Random Variables

Binomial Random Variables. Binomial Random Variables Bernoulli Trials Definition A Bernoulli trial is a random experiment in which there are only two possible outcomes - success and failure. 1 Tossing a coin and considering heads as success and tails as

More information

Review. What is the probability of throwing two 6s in a row with a fair die? a) b) c) d) 0.333

Review. What is the probability of throwing two 6s in a row with a fair die? a) b) c) d) 0.333 Review In most card games cards are dealt without replacement. What is the probability of being dealt an ace and then a 3? Choose the closest answer. a) 0.0045 b) 0.0059 c) 0.0060 d) 0.1553 Review What

More information

Strategy -1- Strategy

Strategy -1- Strategy Strategy -- Strategy A Duopoly, Cournot equilibrium 2 B Mixed strategies: Rock, Scissors, Paper, Nash equilibrium 5 C Games with private information 8 D Additional exercises 24 25 pages Strategy -2- A

More information

Binomal and Geometric Distributions

Binomal and Geometric Distributions Binomal and Geometric Distributions Sections 3.2 & 3.3 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Department of Mathematics University of Houston Lecture 7-2311 Cathy Poliak, Ph.D. cathy@math.uh.edu

More information

Probability and Statistics. Copyright Cengage Learning. All rights reserved.

Probability and Statistics. Copyright Cengage Learning. All rights reserved. Probability and Statistics Copyright Cengage Learning. All rights reserved. 14.3 Binomial Probability Copyright Cengage Learning. All rights reserved. Objectives Binomial Probability The Binomial Distribution

More information

2. Modeling Uncertainty

2. Modeling Uncertainty 2. Modeling Uncertainty Models for Uncertainty (Random Variables): Big Picture We now move from viewing the data to thinking about models that describe the data. Since the real world is uncertain, our

More information

Name: Show all your work! Mathematical Concepts Joysheet 1 MAT 117, Spring 2012 D. Ivanšić

Name: Show all your work! Mathematical Concepts Joysheet 1 MAT 117, Spring 2012 D. Ivanšić Mathematical Concepts Joysheet 1 Use your calculator to compute each expression to 6 significant digits accuracy. Write down thesequence of keys youentered inorder to compute each expression. Donot roundnumbers

More information

Computational Finance Least Squares Monte Carlo

Computational Finance Least Squares Monte Carlo Computational Finance Least Squares Monte Carlo School of Mathematics 2019 Monte Carlo and Binomial Methods In the last two lectures we discussed the binomial tree method and convergence problems. One

More information

SECTION 4.4: Expected Value

SECTION 4.4: Expected Value 15 SECTION 4.4: Expected Value This section tells you why most all gambling is a bad idea. And also why carnival or amusement park games are a bad idea. Random Variables Definition: Random Variable A random

More information

Chapter 7. Random Variables

Chapter 7. Random Variables Chapter 7 Random Variables Making quantifiable meaning out of categorical data Toss three coins. What does the sample space consist of? HHH, HHT, HTH, HTT, TTT, TTH, THT, THH In statistics, we are most

More information

5.2 Random Variables, Probability Histograms and Probability Distributions

5.2 Random Variables, Probability Histograms and Probability Distributions Chapter 5 5.2 Random Variables, Probability Histograms and Probability Distributions A random variable (r.v.) can be either continuous or discrete. It takes on the possible values of an experiment. It

More information

Lesson 97 - Binomial Distributions IBHL2 - SANTOWSKI

Lesson 97 - Binomial Distributions IBHL2 - SANTOWSKI Lesson 97 - Binomial Distributions IBHL2 - SANTOWSKI Opening Exercise: Example #: (a) Use a tree diagram to answer the following: You throwing a bent coin 3 times where P(H) = / (b) THUS, find the probability

More information

Opening Exercise: Lesson 91 - Binomial Distributions IBHL2 - SANTOWSKI

Opening Exercise: Lesson 91 - Binomial Distributions IBHL2 - SANTOWSKI 08-0- Lesson 9 - Binomial Distributions IBHL - SANTOWSKI Opening Exercise: Example #: (a) Use a tree diagram to answer the following: You throwing a bent coin times where P(H) = / (b) THUS, find the probability

More information

Statistical Methods in Practice STAT/MATH 3379

Statistical Methods in Practice STAT/MATH 3379 Statistical Methods in Practice STAT/MATH 3379 Dr. A. B. W. Manage Associate Professor of Mathematics & Statistics Department of Mathematics & Statistics Sam Houston State University Overview 6.1 Discrete

More information

Example 1: Identify the following random variables as discrete or continuous: a) Weight of a package. b) Number of students in a first-grade classroom

Example 1: Identify the following random variables as discrete or continuous: a) Weight of a package. b) Number of students in a first-grade classroom Section 5-1 Probability Distributions I. Random Variables A variable x is a if the value that it assumes, corresponding to the of an experiment, is a or event. A random variable is if it potentially can

More information

Homework #4. CMSC351 - Spring 2013 PRINT Name : Due: Thu Apr 16 th at the start of class

Homework #4. CMSC351 - Spring 2013 PRINT Name : Due: Thu Apr 16 th at the start of class Homework #4 CMSC351 - Spring 2013 PRINT Name : Due: Thu Apr 16 th at the start of class o Grades depend on neatness and clarity. o Write your answers with enough detail about your approach and concepts

More information

Theory of Consumer Behavior First, we need to define the agents' goals and limitations (if any) in their ability to achieve those goals.

Theory of Consumer Behavior First, we need to define the agents' goals and limitations (if any) in their ability to achieve those goals. Theory of Consumer Behavior First, we need to define the agents' goals and limitations (if any) in their ability to achieve those goals. We will deal with a particular set of assumptions, but we can modify

More information

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations.

3. The n observations are independent. Knowing the result of one observation tells you nothing about the other observations. Binomial and Geometric Distributions - Terms and Formulas Binomial Experiments - experiments having all four conditions: 1. Each observation falls into one of two categories we call them success or failure.

More information

Chapter 11. Data Descriptions and Probability Distributions. Section 4 Bernoulli Trials and Binomial Distribution

Chapter 11. Data Descriptions and Probability Distributions. Section 4 Bernoulli Trials and Binomial Distribution Chapter 11 Data Descriptions and Probability Distributions Section 4 Bernoulli Trials and Binomial Distribution 1 Learning Objectives for Section 11.4 Bernoulli Trials and Binomial Distributions The student

More information

Quantitative Trading System For The E-mini S&P

Quantitative Trading System For The E-mini S&P AURORA PRO Aurora Pro Automated Trading System Aurora Pro v1.11 For TradeStation 9.1 August 2015 Quantitative Trading System For The E-mini S&P By Capital Evolution LLC Aurora Pro is a quantitative trading

More information

STA 6166 Fall 2007 Web-based Course. Notes 10: Probability Models

STA 6166 Fall 2007 Web-based Course. Notes 10: Probability Models STA 6166 Fall 2007 Web-based Course 1 Notes 10: Probability Models We first saw the normal model as a useful model for the distribution of some quantitative variables. We ve also seen that if we make a

More information

STAT 201 Chapter 6. Distribution

STAT 201 Chapter 6. Distribution STAT 201 Chapter 6 Distribution 1 Random Variable We know variable Random Variable: a numerical measurement of the outcome of a random phenomena Capital letter refer to the random variable Lower case letters

More information

STA 220H1F LEC0201. Week 7: More Probability: Discrete Random Variables

STA 220H1F LEC0201. Week 7: More Probability: Discrete Random Variables STA 220H1F LEC0201 Week 7: More Probability: Discrete Random Variables Recall: A sample space for a random experiment is the set of all possible outcomes of the experiment. Random Variables A random variable

More information

- 1 - **** d(lns) = (µ (1/2)σ 2 )dt + σdw t

- 1 - **** d(lns) = (µ (1/2)σ 2 )dt + σdw t - 1 - **** These answers indicate the solutions to the 2014 exam questions. Obviously you should plot graphs where I have simply described the key features. It is important when plotting graphs to label

More information

(Practice Version) Midterm Exam 1

(Practice Version) Midterm Exam 1 EECS 126 Probability and Random Processes University of California, Berkeley: Fall 2014 Kannan Ramchandran September 19, 2014 (Practice Version) Midterm Exam 1 Last name First name SID Rules. DO NOT open

More information

A hybrid approach to valuing American barrier and Parisian options

A hybrid approach to valuing American barrier and Parisian options A hybrid approach to valuing American barrier and Parisian options M. Gustafson & G. Jetley Analysis Group, USA Abstract Simulation is a powerful tool for pricing path-dependent options. However, the possibility

More information

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2017

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2017 ECON 459 Game Theory Lecture Notes Auctions Luca Anderlini Spring 2017 These notes have been used and commented on before. If you can still spot any errors or have any suggestions for improvement, please

More information

Chapter 8 Additional Probability Topics

Chapter 8 Additional Probability Topics Chapter 8 Additional Probability Topics 8.6 The Binomial Probability Model Sometimes experiments are simulated using a random number function instead of actually performing the experiment. In Problems

More information

Name: Show all your work! Mathematical Concepts Joysheet 1 MAT 117, Spring 2013 D. Ivanšić

Name: Show all your work! Mathematical Concepts Joysheet 1 MAT 117, Spring 2013 D. Ivanšić Mathematical Concepts Joysheet 1 Use your calculator to compute each expression to 6 significant digits accuracy or six decimal places, whichever is more accurate. Write down the sequence of keys you entered

More information

Unit 04 Review. Probability Rules

Unit 04 Review. Probability Rules Unit 04 Review Probability Rules A sample space contains all the possible outcomes observed in a trial of an experiment, a survey, or some random phenomenon. The sum of the probabilities for all possible

More information

Chapter Chapter 6. Modeling Random Events: The Normal and Binomial Models

Chapter Chapter 6. Modeling Random Events: The Normal and Binomial Models Chapter 6 107 Chapter 6 Modeling Random Events: The Normal and Binomial Models Chapter 6 108 Chapter 6 109 Table Number: Group Name: Group Members: Discrete Probability Distribution: Ichiro s Hit Parade

More information