41
Section 7.1 Discrete and Continuous Random Variables AP Statistics NPHS Miss Rose

Section 7.1 Discrete and Continuous Random Variables

  • Upload
    lyle

  • View
    50

  • Download
    0

Embed Size (px)

DESCRIPTION

Section 7.1 Discrete and Continuous Random Variables. AP Statistics NPHS Miss Rose. Some Review:. In order to be a VALID probability distribution, the probabilities of each event must add up to ____. Every probability is a number between __ and ___. - PowerPoint PPT Presentation

Citation preview

Page 1: Section  7.1 Discrete and Continuous Random  Variables

Section 7.1Discrete and Continuous Random Variables

AP StatisticsNPHSMiss Rose

Page 2: Section  7.1 Discrete and Continuous Random  Variables

2

Some Review:

In order to be a VALID probability distribution, the probabilities of each event must add up to ____.

Every probability is a number between __ and ___.

How many possible outcomes are there for rolling two dice and finding the sum?

AP Statistics, Section 7.1, Part 1

Page 3: Section  7.1 Discrete and Continuous Random  Variables

3

Random Variables

A random variable is a variable whose value is a numerical outcome of a random phenomenon.

For example: Flip three coins and let X represent the number of heads. X is a random variable.

We usually use capital letters to denotes random variables.

Page 4: Section  7.1 Discrete and Continuous Random  Variables

4

Random Variables

A random variable is a variable whose value is a numerical outcome of a random phenomenon.

For example: Flip three coins and let X represent the number of heads. X is a random variable.

The sample space S lists the possible values of the random variable X

Page 5: Section  7.1 Discrete and Continuous Random  Variables

5

Discrete Random Variable

A discrete random variable X has a countable number of possible values.

For example: Flip three coins and let X represent the number of heads. X is a discrete random variable.

We can use a table to show the probability distribution of a discrete random variable.

Page 6: Section  7.1 Discrete and Continuous Random  Variables

6

Discrete Probability Distribution Table

Value of X: x1 x2 x3 … xn

Probability:p1 p2 p3 … pn

Page 7: Section  7.1 Discrete and Continuous Random  Variables

7

Probability Distribution Table: Number of Heads Flipping 4 Coins

TTTT

TTTHTTHTTHTTHTTT

TTHHTHTHHTTHHTHTTHHTHHTT

THHHHTHHHHTHHHHT

HHHH

X 0 1 2 3 4

P(X) 1/16 4/16 6/16 4/16 1/16

Page 8: Section  7.1 Discrete and Continuous Random  Variables

AP Statistics, Section 7.1, Part 1 8

Discrete Probability Distributions Can also be shown using a histogram

Page 9: Section  7.1 Discrete and Continuous Random  Variables

AP Statistics, Section 7.1, Part 1 9

Page 10: Section  7.1 Discrete and Continuous Random  Variables

AP Statistics, Section 7.1, Part 1 10

What is…

X 0 1 2 3 4

P(X) 0.0625 0.25 0.375 0.25 0.0625

The probability of at most 2 heads? P(X≤3) = P(X=0) + P(X=1) + P(X=2) + P(X=3)

= 0.0625 + 0.25 + 0.375 + 0.25 = 0.9375

OR you could use the complement rule P(X≤3) =1- P(4)

Page 11: Section  7.1 Discrete and Continuous Random  Variables

Example: Maturation of College Students

AP Statistics, Section 7.1, Part 1 11

In an article in the journal Developmental Psychology (March 1986), a probability distribution for the age X (in years) when male college students begin to shave regularly is shown:

X 11 12 13 14 15 16 17 18 19 ≥20

P(X) 0.013 0 0.027 0.067 0.213 0.267 0.240 0.093 0.067 0.013

Is this a valid probability distribution? How do you know? What is the random variable of interest?

X= the age in years when male college student begin shaving Is the random variable discrete?

Yes

Page 12: Section  7.1 Discrete and Continuous Random  Variables

Example: Maturation of College Students

AP Statistics, Section 7.1, Part 1 12

In an article in the journal Developmental Psychology (March 1986), a probability distribution for the age X (in years) when male college students begin to shave regularly is shown:

X 11 12 13 14 15 16 17 18 19 ≥20

P(X) 0.013 0 0.027 0.067 0.213 0.267 0.240 0.093 0.067 0.013

What is the most common age at which a randomly selected male college student began shaving?

What is the probability that a randomly selected male college student began shaving at age 16? P(X=16) = 0.267

What is the probability that a randomly selected male college student was at least 13 before he started shaving? P(X≥13) = 1 – P(X=11) = 1 – 0.013 = 0.987

Page 13: Section  7.1 Discrete and Continuous Random  Variables

13

Continuous Random Variable

A continuous random variable X takes all values in an interval of numbers.

Page 14: Section  7.1 Discrete and Continuous Random  Variables

14

Page 15: Section  7.1 Discrete and Continuous Random  Variables

15

Distribution of Continuous Random Variable

Page 16: Section  7.1 Discrete and Continuous Random  Variables

16

Distribution of Continuous Random Variable

The probability distribution of X is described by a density curve.

The probability of any event is the area under the density curve and above the values of X that make up that event.

The probability that X = a particular value is 0

Page 17: Section  7.1 Discrete and Continuous Random  Variables

Distribution of a Continuous Random Variable

17

There are two ways to find the given probability.

(1) Find the area less than 0.5 and greater than 0.8, then add them

(2) Find the area between 0.5 and 0.8 and subtract that answer from 1.

Page 18: Section  7.1 Discrete and Continuous Random  Variables

18AP Statistics, Section 7.1, Part 1

Page 19: Section  7.1 Discrete and Continuous Random  Variables

Density Curves

What density curve have you already learned about?

The Normal distribution!

19

Page 20: Section  7.1 Discrete and Continuous Random  Variables

20

Normal distributions as probability distributions Suppose X has N(μ,σ) then we can use

our tools to calculate probabilities. One tool we will need is our formula for

standardizing variables:Z = X – μ

σ

Page 21: Section  7.1 Discrete and Continuous Random  Variables

21

Do you remember?--p.141 The annual rate of return on stock indexes

is approximately Normal. Since 1945, the Standard & Poors index has had a mean yearly return of 12%, with a standard deviation of 16.5%. In what proportion of years does the index gain 25% or more?

AP Statistics, Section 7.1, Part 1

Page 22: Section  7.1 Discrete and Continuous Random  Variables

22

Do you remember? --p.143 The annual rate of return on stock indexes

is approximately Normal. Since 1945, the Standard & Poors index has had a mean yearly return of 12%, with a standard deviation of 16.5%. In what proportion of years does the index gain between 15% and 22%?

AP Statistics, Section 7.1, Part 1

Page 23: Section  7.1 Discrete and Continuous Random  Variables

Cheating in School A sample survey puts this question to an SRS of 400

undergraduates: “You witness two students cheating on a quiz. Do you do to the professor?” Suppose if we could ask all undergraduates, 12% would answer “Yes”

We will learn in Chapter 9 that the proportion p=0.12 is a population parameter and that the proportion ô of the sample who answer “yes” is a statistic used to estimate p.

We will see in Chapter 9 that ô is a random variable that has approximately the N(0.12, 0.016) distribution. The mean 0.12 of the distribution is the same as the population

parameter. The standard deviation is controlled mainly by the sample size.

23

Page 24: Section  7.1 Discrete and Continuous Random  Variables

Continuous Random Variable P-hat (proportion of the sample who answered drugs) is

a random variable that has approximately the N(0.12, 0.016) distribution.

What is the probability that the poll result differs from the truth about the population by more than two percentage points? (p=0.12) P(p-hat<0.10 or p-hat>0.14)

24

Page 25: Section  7.1 Discrete and Continuous Random  Variables
Page 26: Section  7.1 Discrete and Continuous Random  Variables

P(p-hat<0.10 or p-hat>0.14) Let’s start with the complement rule

P(p-hat<0.10 or p-hat>0.14) = 1 – (0.10≤p-hat≤0.14)

26

= 1 – (0.10 – 0.12 ≤ p-hat-0.12 ≤ 0.14-0.12) 0.016 0.016 0.016

= 1 – (-1.25 ≤ Z ≤ 1.25)

= 1 – (0.8944 – 0.1056)

= 1 – (0.7888)

= 0.2112

Page 27: Section  7.1 Discrete and Continuous Random  Variables

27

Check Point

Discrete (a) vs. Continuous (b) You flip a coin and count the number of

tails you get in 30 trials. You have each student in Stats run a mile

and calculate the time in seconds. You count the number of cookies an SRS

of 30 students can eat in one minute.

AP Statistics, Section 7.1, Part 1

Page 28: Section  7.1 Discrete and Continuous Random  Variables

28

Check Point

P-hat (proportion of the sample who answered drugs) is a random variable that has approximately the N(0.12, 0.016) distribution.

What is the probability that the poll result is greater than 13%?

What is the probability that the poll result is less than 10%?

AP Statistics, Section 7.1, Part 1

Page 29: Section  7.1 Discrete and Continuous Random  Variables

29

Random Variables: MEAN The Michigan Daily Game you pick a 3 digit number and win

$500 if your number matches the number drawn. There are 1000 three-digit numbers, so you have a

probability of 1/1000 of winning Taking X to be the amount of money your ticket pays you,

the probability distribution is:

Payoff X: $0 $500Probability: 0.999 0.001

We want to know your average payoff if you were to buy many tickets.

Why can’t we just find the average of the two outcomes (0+500/2 = $250?

Page 30: Section  7.1 Discrete and Continuous Random  Variables

30

Random Variables: Mean .001(500) .999 0

.50 0

.50

X

So…what is the average winnings? (Expected long-run payoff)

Payoff X: $0 $500Probability: 0.999 0.001

Page 31: Section  7.1 Discrete and Continuous Random  Variables

31

Random Variables: Mean

1 1 2 2 3 3X n n

X i i

p x p x p x p x

p x

The mean of a probability distribution

Page 32: Section  7.1 Discrete and Continuous Random  Variables

32

Random Variables: Example The Michigan Daily Game

you pick a 3 digit number and win $500 if your number matches the number drawn.

You have to pay $1 to play

What is the average PROFIT?

Mean = Expected Value

.001(499) .999 1

.499 .999.50

X

Payoff X: -$1 $499Probability: 0.999 0.001

Page 33: Section  7.1 Discrete and Continuous Random  Variables

33

Random Variables: Variance (the average of the squared deviation from the mean)

2 2 221 1 2 2

22

X x x n n x

X i i x

p x p x p x

p x

The standard deviation σ of X is the square root of the variance

Page 34: Section  7.1 Discrete and Continuous Random  Variables

34

Random Variables: Example The Michigan Daily

Game you pick a 3 digit number and win $500 if your number matches the number drawn.

The probability of winning is .001

What is the variance and standard deviation of X?

2 2

2

(500 .5) .001

0 .5 .999

249.50025 .24975249.7515.8

X

2 2 221 1 2 2

22

X x x n n x

X i i x

p x p x p x

p x

Page 35: Section  7.1 Discrete and Continuous Random  Variables

Technology When you work with a larger data set, it may be a good idea to use your

calculator to calculate the standard deviation and mean. Enter the X values into List1 and the probabilities into List 2. Then 1-Var

Stats L1, L2 will give you μx (as x-bar) and σx (to find the variance, you will have to square σx)

EX: find μx and σ2x for the data in example 7.7 (p.485)

35

Page 36: Section  7.1 Discrete and Continuous Random  Variables

36

Exercise…

Pretend to “simulate” tossing a fair coin 10 times and write down the results.

AP Statistics, Section 7.2, Part 1

Page 37: Section  7.1 Discrete and Continuous Random  Variables

37

Law of Large Numbers Draw independent observations at random from

any population with finite mean μ. Decide how accurately you would like to

estimate μ. As the number of observations drawn increases,

the mean x-bar of the observed values eventually approaches the mean μ of the population as closely as you specified and then stays that close.

Page 38: Section  7.1 Discrete and Continuous Random  Variables

38

Example

The distribution of the heights of all young women is close to the normal distribution with mean 64.5 inches and standard deviation 2.5 inches.

What happens if you make larger and larger samples…

Page 39: Section  7.1 Discrete and Continuous Random  Variables

39

Page 40: Section  7.1 Discrete and Continuous Random  Variables

40

Law of Small Numbers

Most people incorrectly believe in the law of small numbers.

“Runs” of numbers, etc.

Page 41: Section  7.1 Discrete and Continuous Random  Variables

Assignment:

Exercises: 7.3, 7.7, 7.9, 7.12-7.15, 7.24, 7.27, 7.32-7.34

41