AP Statistics Understanding Randomness Chapter 11.

Slides:



Advertisements
Similar presentations
Copyright © 2010 Pearson Education, Inc. Slide A small town employs 34 salaried, nonunion employees. Each employee receives an annual salary increase.
Advertisements

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 11 Understanding Randomness.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
AP STATISTICS Simulation “Statistics means never having to say you're certain.”
Chapter 5.3: Simulation. Random  We call a phenomenon RANDOM if individual outcomes are uncertain but there is nonetheless a regular distribution of.
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
Mathematics in Today's World
Chapter 5 Understanding Randomness
3.6: Probabilities Through Simulations Objective: To simulate probabilities using random number tables and random number generators CHS Statistics.
Understanding Randomness
Chapter XI Rory Nimmons Venkat Reddy UnderstandingRandomnessUnderstandingRandomness.
Understanding Randomness
Chapter 11: understanding randomness (Simulations)
+ AP Statistics: Chapter 11 Pages Rohan Parikh Azhar Kassam Period 2.
Copyright © 2010 Pearson Education, Inc. Unit 3: Gathering Data Chapter 11 Understanding Randomness.
Unit 5: Probability Sample Space.
Chapter 11 Randomness. Randomness Random outcomes –Tossing coins –Rolling dice –Spinning spinners They must be fair.
Chapter 11 – Understanding Randomness 1. What is a random event? Nobody can guess the outcome before it happens. Let’s try an experiment. On the next page.
11/18/ Randomness, Probability, and Simulation.
Slide 11-1 Copyright © 2004 Pearson Education, Inc.
Randomness Has structure in the long run Randomness seems “Fair” 1) Nobody can predict the outcome ahead of time. 2) Some underlying set of outcomes are.
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: –
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Understanding Randomness.
AP STATISTICS LESSON SIMULATING EXPERIMENTS.
AP STATISTICS LESSON 6-1 Simulation. ESSENTIAL QUESTION: How can simulation be used to solve problems involving chance? Objectives: To simulate problems.
Understanding Randomness
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 11 Understanding Randomness.
AP STATISTICS Objective: Understanding Randomness Do Now: Take out any completed contracts, personal profiles, as well as your written design study. HW:
Chapter 11 Understanding Randomness. What is Randomness? Some things that are random: Rolling dice Shuffling cards Lotteries Bingo Flipping a coin.
Slide Understanding Randomness.  What is it about chance outcomes being random that makes random selection seem fair? Two things:  Nobody can.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Simulating Experiments on the TI Section Starter Use the random integer generator in your calculator to choose an SRS of 5 students from.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 5: Probability: What are the Chances? Section 5.1 Randomness, Probability,
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 5: Probability: What are the Chances? Section 5.1 Randomness, Probability,
Understanding Randomness.  Many phenomena in the world are random: ◦ Nobody can guess the outcome before it happens. ◦ When we want things to be fair,
Simulating Experiments Introduction to Random Variable.
Simulation. Simulation  Simulation imitation of chance behavior based on a model that accurately reflects the phenomenon under consideration  By observing.
Unit 5: Probability: What are the Chances?
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 10 Understanding Randomness. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
Unit III Notes Gathering Data AP Statistics Chapter 11 Notes Understanding Random Numbers Objective: Students will learn how to simulate a real world situation.
Section 5.3 – basics of simulation Simulation – the imitation of chance behavior, based on a model that accurately reflects the experiment under consideration.
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:
1 Chapter 11 Understanding Randomness. 2 Why Random? What is it about chance outcomes being random that makes random selection seem fair? Two things:
Introduction Imagine the process for testing a new design for a propulsion system on the International Space Station. The project engineers wouldn’t perform.
Stats3 Day 1 Chapter 11- using random # table. Do Now Read Handout
The Practice of Statistics Third Edition Chapter 6: Probability and Simulation: The Study of Randomness 6.1 Simulation Copyright © 2008 by W. H. Freeman.
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.
1 Copyright © 2014, 2012, 2009 Pearson Education, Inc. Chapter 9 Understanding Randomness.
Chapter 11 Understanding Randomness. Practical Randomness Suppose a cereal company puts pictures of athletes on cards in boxes of cereal in hopes to boost.
Chapter 11 Understanding Randomness. What is the most important aspect of randomness? It must be fair. How is this possible? 1) Nobody can guess the outcome.
Slope (b) = Correlation (r) = Slope (b) = Correlation (r) = WARM UP 1.Perform a Linear Regression on the following points and.
Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: Nobody can guess the outcome before it.
Understanding Randomness
Friday, October 7, 2016 Write a random number between 1 and 10 on a post- it note on your desk Warm-up Discuss with your group & make a list What games.
Understanding Randomness
Understanding Randomness
Understanding Randomness
Understanding Randomness
Chapter 5: Probability: What are the Chances?
CHAPTER 5 Probability: What Are the Chances?
Probability using Simulations
CHAPTER 5 Probability: What Are the Chances?
Understanding Randomness
Understanding Randomness
5.1: Randomness, Probability and Simulation
Presentation transcript:

AP Statistics Understanding Randomness Chapter 11

Objectives Random Generating random numbers Simulation Simulation component Trial Response variable

Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –Nobody can guess the outcome before it happens. –When we want things to be fair, usually some underlying set of outcomes will be equally likely (although in many games some combinations of outcomes are more likely than others).

Why Be Random? Example: –Pick “heads” or “tails.” –Flip a fair coin. Does the outcome match your choice? Did you know before flipping the coin whether or not it would match? You can’t predict how a fair coin will land on any single toss, but you’re pretty confident that if you flipped it a thousands of times you’d see about 50% heads.

Why Be Random? Randomness is not always what we might think of as “at random.” An outcome is random if we know the possible values it can have, but not which particular value it takes. Random outcomes have a lot of structure, especially when viewed in the long run. Truly random values are surprisingly hard to get.

Why Be Random? Statisticians don’t think of randomness as the annoying tendency of things to be unpredictable or haphazard. Statisticians use randomness as a tool. But, truly random values are surprisingly hard to get…

It’s Not Easy Being Random

It’s surprisingly difficult to generate random values even when they’re equally likely. Computers have become a popular way to generate random numbers. –Even though they often do much better than humans, computers can’t generate truly random numbers either. –Since computers follow programs, the “random” numbers we get from computers are really pseudorandom. –Fortunately, pseudorandom values are good enough for most purposes.

Does shuffling cards make the deck random? It depends on the number of shuffles. How many times should you shuffle cards to make the deck random? A surprising fact was discovered by statisticians Persi Diaconis, Ronald Graham, and W.M. Kantor. It takes seven shuffles. Fewer than seven leaves order in the deck, but after that, more shuffling does little good.

It’s Not Easy Being Random There are ways to generate random numbers so that they are both equally likely and truly random. The best ways we know to generate data that give a fair and accurate picture of the world rely on randomness, and the ways in which we draw conclusions from those data depend on the randomness, too.

Three Methods of Determining the Chance of an Event Occurring 1.Try to estimate the likelihood of a result of interest by actually carrying out the experiment many times and calculating the result’s relative frequency. –Drawbacks – slow, costly, often impractical or logistically difficult. 2.Develop a probability model and use it to calculate a theoretical answer. (Later Chapters) 3.Start with a model that, in some fashion, reflects the truth about the experiment, and then develop a procedure for imitating-or simulating-a number of repetitions of the experiment.

Practical Randomness Suppose a cereal manufacturer puts pictures of athletes on cards in boxes of cereal to boost sales. The manufacturer announces that 20% of the boxes contain a picture of Tiger Woods, 30% a picture of David Beckham, and the rest a picture of Serena Williams. You want all three pictures. How many boxes of cereal do you expect to have to buy in order to get the complete set? How can we answer questions like this? We need an imitation of a real process so we can manipulate and control it. In short, we are going to simulate reality.

Simulation Definition – The imitation of chance behavior, based on a model that accurately reflects the experiment under consideration. Simulation is a powerful tool for gaining insight into events whose outcomes are random.

A Simulation The sequence of events we want to investigate is called a trial. The basic building block of a simulation is called a component. –Trials usually involve several components. After the trial, we record what happened—our response variable. Use random digits from a table, graphing calculator or computer software to simulate many repetitions.

Simulation Modeling the Outcomes –Assign digits to represent outcomes so the digits will occur with the same long-term relative frequency as the actual outcomes. Examples: –Choose a person at random from a group of which 70% are employed. One digit simulates one person 0,1,2,3,4,5,6 – employed 7,8,9 - unemployed

Simulation Examples: –Choose one person at random from a group of which 73% are employed. Now two digits simulate one person 00,01,02,03,…,72 – employed 73,74,75,78,…,99 - unemployed –Choose one person at random from a group of which 50% are employed, 20% are unemployed, and 30% are not in the labor force. One digit simulates one person 0,1,2,3,4 – employed 5,6 – unemployed 7,8,9 – not in labor force

Simulation Your Turn: –Choose a frozen yogurt flavor. Orders of frozen yogurt flavors (based on sales) have the following relative frequencies: 38% chocolate, 42% vanilla, and 20% strawberry. Model the outcomes.

18 Random Digits Table There many different random number tables. One example is given to the right. Random Digits Table Line

19 How to use a Random Digit Table? Decide on the minimum number of digits. Start on any line in the table or the assigned line. The sequence of reading the numbers (the number of digits, (group of digits – 1 digit, 2 digits, 3 digits …) should be maintained until the desired number of random numbers is attained. If a particular number is not included in your range of number values being used, skip it and go the next group of digits. Keep selecting the numbers, if you get to the end of a line just continue on the next line, until you have the required number of random numbers.

20 Example Suppose we want to select 5 random numbers from 1 to Using the random number table given below We will start at the top left hand corner and read across. We need to use four digit groups at a time as there is a minimum of four digits in our number range 1 – 8000.

21 Example (continued) Let us start. The first group of 4 digits is not in our range-ignore 5653-use ignore 1891-use -2

22 Example (continued) use use ignore 6941-use -5

23 Example (continued) So our 5 random numbers from 1 to 8000 consists of; 5653,1891,6483,7666, and 6941.

Simulation Step-By-Step 1.Identify the component to be repeated. 2.Explain how you will model the outcome (assign digits). 3.Explain how you will simulate the trial. 4.State clearly what the response variable is. 5.Run several trials. 6.Analyze the response variable. 7.State your conclusion (in the context of the problem, as always).

Simulation Example Suppose a cereal manufacturer puts pictures of famous athletes on cards in boxes of cereal in the hope of boosting sales. The manufacturer announces that 20% of the boxes contain a picture of Tiger woods, 30% a picture of Lance Armstrong, and the rest a picture of Serena Williams. You want all three pictures. How many boxes of cereal do you expect to have to buy in order to get the complete set?

Simulation Example 1.Identify the component to be repeated. –The selection of a cereal box. 2.Explain how you will model the outcome (assign digits). –0,1 – Woods –2,3,4 – Armstrong –5,6,7,8,9 – Williams

Simulation Example 3.Explain how you will simulate the trial. –A trial is the sequence of events that we are pretending will take place. –In this case we want to pretend to open cereal boxes until we have one of each picture. –So one trial of the simulation is the number of boxes opened until we’ve gotten all three pictures.

Simulation Example 4.State clearly what the response variable is. –What are we interested in? –We want to know how many boxes it takes to get all three pictures. –This is the response variable. 5.Run several trials. –The more trails you run the more accurate your result.

Simulation Example Running Trials (start line 130 on Random Digit Table) Trial #Outcomes# Boxes Williams, Williams, Woods, Williams, 7 Woods, Williams, Armstrong Williams, Woods, Williams, Williams, 8 Williams, Woods, Williams, Armstrong Woods, Williams, Williams, Woods, 7 Williams, Williams, Armstrong

Simulation Example Trial #Outcomes# Boxes Williams, Armstrong, Armstrong, Woods Williams, Armstrong, Williams, Williams 8 Williams, Williams, Armstrong, Woods Woods, Williams, Williams, Armstrong 4 Create a chart to keep track of the results.

Simulation Example 6.Analyze the response variable. –We wanted to know how many boxes we might expect to buy, so we calculate the average number of boxes per trail. –Average ( )/6 = State your conclusion (in the context of the problem, as always). –Based on our simulation, we estimate that customers who want the complete set of sports star pictures will buy an average of 6.3 boxes.

Simulation Problem 57 students participated in a lottery for a particularly desirable dorm room – a triple with a fireplace and private bath in the tower. 20 of the participants were members of the same varsity sports team. When all 3 winners were members of the team, the other students cried foul. Use a simulation to determine whether an all-team outcome could reasonably be expected to happen if everyone had a fair shot at the room.

Simulation Problem 1.Identify the component to be repeated. –Selection of a student 2.Explain how you will model the outcome (assign digits). –Look at two digit random numbers –00-19 represent the 20 varsity team members –20-56 represent the other 37 students –57-99 skip as unused numbers

Simulation Problem 3.Explain how you will simulate the trial. –Each trial consists of picking pairs of random digits as V (varsity) or N (non-varsity) until 3 people are chosen, ignoring out-of-range or repeated numbers (X). 4.State clearly what the response variable is. –Whether are not all the selected students are on the varsity team.

Simulation Problem 5.Run several trials. (use line 101) Trial #OutcomesAll Varsity 119V,22N,39Nno 250N,34N,05Vno 375X,62X,87X,13V,96Xno 40N, 91X,25N 431N,42N,54Nno 548N,28N,53Nno

Continued Trials Trial #OutcomesAll Varsity 673X,67X,64X,71X,50Nno 99X,40N,00V 719V,27N,27X,75X,44Nno 826N,48N,82X,42Nno 953N,62X,90X,45N,46Nno 1077X,17V,09V,77X,55Nno 1180X,00V,95X,32N,86X,no 32N

Continued Trials Trial #OutcomesAll Varsity 1294X,85X,82X,22N,69Xno 00V,56N 1352N,71X,13V,88X,89Xno 93X,07V 1446N,02V,27Nno 1540N,01V,18Vno 1658X,48N,48N,76X,75Xno 25N

Continued Trials Trial #OutcomesAll Varsity 1773X,95X,59X,29N,40N no 07V 1869X,97X,19V,14V,81Xno 60X,77X,95X,37N 1991X,17V,29N,75X,93Xno 35N 2068X,41N,73X,50N,13Vno

Simulation Problem 6.Analyze the response variable. –“all varsity” occurred zero times out of 20 trials or 0% of the time. 7.State your conclusion (in the context of the problem, as always). –In our simulation of “fair” room draws the three people chosen were all varsity team members 0% of the time (for 20 draws). It is not particularly likely a fair draw would pick all varsity team members and we should be suspicious of the stated outcome.

Calculator Simulation Instead of using coins, dice, cards, or tables of random numbers, you can use the TI-83/84 calculator for simulations. There are several random number generators offered in the MATH PRB menu. –randInt(0,1) randomly chooses a 0 or a 1. Effective simulation of a coin toss. –randInt(1,6) produces a random integer from 1 to 6, a good way to simulate rolling a die. –randInt(1,6,2) simulates rolling 2 dice. To do several rolls in a row, just hit ENTER repeatedly. –randInt(0,56,3) produces 3 random integers between 0 & 56, a good way to simulate the dorm room lottery.

Calculator Simulation To set up the calculator so everyone gets the same random digits (like using the same line on a random digit table), you must store the same value in the rand function as shown below. To access rand function; MATH/PRB/rand To input; type 124, then “STO” key, “rand”, and ENTER. (124→rand)

Calculator Simulation Problem A basketball player makes 70% of her free throws in a long season. In a tournament game she shoots 5 free throws late in the game and misses 3 of them. The fans think she was nervous, but the misses may be due to chance. Simulate an experiment to determine which it is?

Calculator Simulation Problem 1.Identify the component to be repeated. –Shooting free throws 2.Explain how you will model the outcome (assign digits). –Each single digit represents a free throw –0 – 6 represents a made free throw –7-9 represents a missed free throw 3.Explain how you will simulate the trial. –Each trial will consist of 5 shots ( 5 random numbers from 0 to 9) to determine if she has 3 or more misses.

Calculator Simulation Problem 4.State clearly what the response variable is. –Whether she has 3 or more misses. 5.Run several trials. (124 rand) –Run 50 trials and count the number of times she has 3 or more misses. –randInt(0,9,5) – 50 times 6.Analyze the response variable. –3 or more misses occurred 11 times out of 50 trials.

Calculator Simulation Problem 7.State your conclusion (in the context of the problem, as always). –In our simulation she missed 3 or more free throws only 11 out of 50 times or 22%. –We therefore conclude she choked.

Simulation Cautions 1.Don’t overstate your case. –In some sense a simulation is always wrong. After all, it’s not the real thing. We didn’t buy any cereal, or run a room draw. So beware of confusing what really happens with what a simulation suggests might happen. Always be sure to indicate that future results will not match your simulated results exactly.

Simulation Cautions 2.Model the outcome chances accurately. A common mistake in constructing a simulation is to adopt a strategy that may appear to produce the right kind of results, but that does not accurately model the situation. If your simulation overlooks important aspects of the real situation, your model will not be accurate.

Simulation Cautions 3.Run enough trials. Simulation is cheap and fairly easy to do. Don’t try to draw conclusions based on 5 or 10 trials (even though we did for illustration purposes here). The larger the number of trials the better.

What have we learned? How to harness the power of randomness. A simulation model can help us investigate a question when we can’t (or don’t want to) collect data, and a mathematical answer is hard to calculate. How to base our simulation on random values generated by a computer, generated by a randomizing device, or found on the Internet. Simulations can provide us with useful insights about the real world.