Gambles in Your Life Andre Dabrowski Mathematics and Statistics.

Slides:



Advertisements
Similar presentations
Probability Unit 3.
Advertisements

AP STATISTICS Simulating Experiments. Steps for simulation Simulation: The imitation of chance behavior, based on a model that accurately reflects the.
D1: 5.1 The Study of Randomness h.w: p 293: 1–11 odd, 15,17
Ch. 17 The Expected Value & Standard Error Review of box models 1.Pigs – suppose there is a 40% chance of getting a “trotter”. Toss a pig 20 times. –What.
Mathematics in Today's World
When Intuition Differs from Relative Frequency
Chapter 5 Understanding Randomness
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:
Lesson  In this investigation you will explore the predictability of random outcomes. You will use a familiar random process, the flip of a coin.
1 Discrete Structures & Algorithms Discrete Probability.
Probability.
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 6.2 and 6.3. Expressing Probability The probability of an event is always between 0 and 1, inclusive. A fair coin is tossed.
Chapter XI Rory Nimmons Venkat Reddy UnderstandingRandomnessUnderstandingRandomness.
Ch. 17 The Expected Value & Standard Error Review box models –Examples 1.Pigs – assume 40% chance of getting a “trotter” -20 tosses 2.Coin toss – 20 times.
Great Theoretical Ideas in Computer Science.
Chapter 11: understanding randomness (Simulations)
A multiple-choice test consists of 8 questions
Copyright © 2010 Pearson Education, Inc. Unit 3: Gathering Data Chapter 11 Understanding Randomness.
Unit 5: Probability Sample Space.
C4, L1, S1 Probabilities and Proportions. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take.
Section Using Simulation to Estimate Probabilities
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 5 Section 1 – Slide 1 of 33 Chapter 5 Section 1 Probability Rules.
Write down your choice of 5 different numbers between 1 and 36 Three ways to win. –In any order match: All 5 4 out of 5 3 out of 5 –Prize: Giant Book.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 10, Slide 1 Chapter 10 Understanding Randomness.
Understanding Randomness Chapter 11. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
STA Lecture 61 STA 291 Lecture 6 Randomness and Probability.
Copyright © 2014 Pearson Education, Inc. All rights reserved Chapter 5 Modeling Variation with Probability.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
Expected Value. Expected Value - Definition The mean (average) of a random variable.
Playing the Lottery 6/4/2016Copyright © 2010… REMTECH, inc … All Rights Reserved1 Probability Theory and the Lottery ● The Lottery picks numbers at random.
C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that.
AP STATISTICS Objective: Understanding Randomness Do Now: Take out any completed contracts, personal profiles, as well as your written design study. HW:
EXAMPLE 1 Independent and Dependent Events Tell whether the events are independent or dependent. SOLUTION You randomly draw a number from a bag. Then you.
M ONTE C ARLO SIMULATION Modeling and Simulation CS
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
QR 32 Section #6 November 03, 2008 TA: Victoria Liublinska
MAT 1000 Mathematics in Today's World. Last Time.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 5: Probability: What are the Chances? Section 5.1 Randomness, Probability,
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
Chapter 10 Understanding Randomness. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
If you toss a coin ten times, what is the probability of getting three or more “heads” in a row? If an airline overbooks a certain flight, what is the.
Great Theoretical Ideas in Computer Science for Some.
FORMAL STUDY OF UNCERTAINTY THE ENGINE THAT DRIVES STATISTICS Probability.
Chapter 4 Probability 4-1 Review and Preview 4-2 Basic Concepts of Probability 4-3 Addition Rule 4-4 Multiplication Rule: Basics 4-5 Multiplication Rule:
1 Chapter 11 Understanding Randomness. 2 Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things:
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.
Copyright © 2009 Pearson Education, Inc. Chapter 11 Understanding Randomness.
Statistics 11 Understanding Randomness. Example If you had a coin from someone, that they said ended up heads more often than tails, how would you test.
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.
AP STATISTICS LESSON AP STATISTICS LESSON PROBABILITY MODELS.
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.
Chapter 8: The Binomial and Geometric Distributions 8.2 – The Geometric Distributions.
STAT 1301 Introduction to Probability. Statistics: The Science of Decision Making in the Face of Uncertainty l Uncertainty makes life challenging and.
Unit 7: Chance Variation
Section 2 Probability William Christensen, Ph.D..
Probability Axioms and Formulas
Probability Fun For Grade 4, 5 and 6.
Determining the theoretical probability of an event
Minds on! If you choose an answer to this question at random, what is the probability you will be correct? A) 25% B) 50% C) 100% D) 25%
4.5 – Finding Probability Using Tree Diagrams and Outcome Tables
Warmup The “experts” think the Braves are still rebuilding and will only win 46% of their games this season. Using a standard deck of cards (52 cards,
Combining Probabilities
Understanding Randomness
Unit 6 Probability.
Course Probability Students will learn to find the probability of an event by using the definition of probability.
Understanding Randomness
Probabilities and Proportions
Presentation transcript:

Gambles in Your Life Andre Dabrowski Mathematics and Statistics

Pick the Prize!

One Chance in Three Prob[Winner] =#(winning choices) / #(all possible choices) = / #( ) = 1 / 3

Prob[event]

Gambles in your Life P[winner] =#(winning choices)/#(all choices) =1/#(all choices)

“Lottery 216” 1.Everyone has a sample ticket. 2.Every ticket has 3 numbers, each number chosen from {1,2,3,4,5,6}. E.G. 136 or 524 or 652, but not Is 222 more or less likely to win than 452? 4.What is your chance of winning?

Is 222 more or less likely to win than 452? Put one marker in the box for each ticket. Mix them up. Draw one out. All tickets have the same chance at winning! So 222 has the same chance as 452 of winning.

What is your chance of winning? P[winner]=1/#(all possible choices) #(all possible choices) = #(choices for first digit) X #(choices for second digit) X #(choices for third digit) = 6 X 6 X 6 = 216 P[winner]=1/216.

Lotto 6/49 P[win by matching all 6 numbers] =1/#(all possible choices) #(all possible choices) = 49 x 48 x 47 x 46 x 45 x 44 / in 13,983,816 chances!

Which is more likely? Matching all 6 numbers in a 6/49 lottery Being struck by lightning sometime during the year. 1/ 13,983,816About 1/ 1,000,000

UO Xmas Lottery! 1.Everyone has a ticket. 2.We will draw from a box to choose the winner. 3.P[winning]=1/216.

Now that we know HOW to calculate probabilities, we can look for interesting ones to compute.

The Birthday Problem There are 365 days in the year. The chance that any one person shares your birthday is 1/365. Pretty small! What is the chance at least two people in this room share birthdays?

P[no matching birthdays] P[no match for 2 people] = = 365 X 364 / 365 X 365 = 364/365. #(ways of choosing 2 without matching) #(ways of choosing 2 birthdays)

P[no match in 5 people]= 365 X 364 X 363 X 362 X X 365 X 365 X 365 X 365 =.97 approximately = #(ways of choosing 5 without matching) #(ways of choosing 5 birthdays) =

P[no match in 25 people]= #(ways of choosing 25 without matching) #(ways of choosing 25 birthdays) = 365 X 364 X … X 342 X X 365 X … X 365 X 365 = = 0.43 approximately There is about a 57% chance a class of 25 will have at least two sharing a birthday.

P[birthday match in k people]

Gambles in your Life Small probabilities can become large if we do many simultaneous experiments. Coincidences are not really coincidences in large groups. Yell “Hey Pete” in a crowd and someone will answer! How reliable are complex systems? A system can survive one component failing, but what is the chance two fail at once?

UO Xmas Birthday Giveaway! First two birthdays to match win!

We know How to compute probabilities for simple games How do we compute probabilities for more complicated problems?

Simple --8 Heads in a Row in 8 tosses Chance of 8 heads in a row = ½  ½  …  ½  ½  ½ =1/256 Pretty small!

Harder -- 8 Heads in a Row somewhere in 100 tosses Toss a fair coin 100 times. What is the chance of at least 8 heads in a row somewhere in the string of 100? HHTHTTHTTTHTHHTHTHTH TTTHTHTHTHHTHHHHHHHH TTHHHTHTHTHHHTTHTHTH HHTHTHHTHTHTTTHTTTTHT THTTHTHTHHHTHTHTHTHTT

Monte Carlo Methods “Toss” a coin 100 times Find the longest string of H’s Repeat this 100,000 times ,000,000 tosses! P[at least 8 H’s in a row] is approximately #( at least 8 H’s in a row)/100,000

Monte Carlo Methods “Toss” a coin 100 times using a computer Find the longest string of H’s Repeat this 100,000 times ,000,000 tosses! using a computer P[at least 8 H’s in a row] is approximately #(at least 8 H’s in a row)/100,000

Monte Carlo Methods libname here 'h:/XmasLecture'; libname there 'c:/tmp'; %macro dupit; %do ii=1 %to 100; x_&ii=(ranuni(0)<.5); %end; %mend; data there.runs; do i=1 to by 1; output; end; data there.runs; set there.runs; %dupit; run; %macro runs; %do ii=2 %to 100; %let iii=%eval(&ii-1); a=0+run_&iii; b=0+x_&ii; run_&ii=a*(a>0)*(b=1)+(b=1); runmax=max(runmax,run_&ii); %end; %mend; data there.runs; set there.runs; run_1=0+(x_1=1); runmax=0; %runs; data here.runs; set there.runs; keep runmax; run; data there.runs; run; proc gchart data=here.runs; axis1 value=(height=10); vbar runmax / midpoints = 1 to 15 by 1 type=percent caxis=axis1; run; proc freq data=here.runs; table runmax / nofreq nocumulative; run; quit;

100,000 Simulations

The FREQ Procedure runmax Frequency Percent ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ > All P[ run of 8 H or more ] =.17 approx., = 1/6 >> 1/256. The chance of 4 or more heads in a row is about 97%. We can use this to pick out which sequences on the sheet are unlikely to really have been generated at random.

Gambles in your Life “good” days and “bad” days. Long lineups for no reason. Design of bridges, power plants. Weather prediction. Biological evolution.

Thanks for coming!