Top Banner
Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15
70

Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Jun 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Lecture 5:Chapter 5

C C Moxley

UAB Mathematics

24 September 15

Page 2: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.1 Differences Between Statistics and Probability

In Chapters 2 and 3, we collected sample data and summarizedthe data to approximate certain probabilities/chances that certainoutcomes would be observed. This is a statistical approach.

In Chapter 4, we determined expected chances of certain outcomesusing a probabilistic approach.

In this chapter, we combine the two methods! We use a statisticalapproach to estimate parameters used in a probabilistic approach.

Page 3: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.1 Differences Between Statistics and Probability

In Chapters 2 and 3, we collected sample data and summarizedthe data to approximate certain probabilities/chances that certainoutcomes would be observed. This is a statistical approach.

In Chapter 4, we determined expected chances of certain outcomesusing a probabilistic approach.

In this chapter, we combine the two methods! We use a statisticalapproach to estimate parameters used in a probabilistic approach.

Page 4: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.1 Differences Between Statistics and Probability

In Chapters 2 and 3, we collected sample data and summarizedthe data to approximate certain probabilities/chances that certainoutcomes would be observed. This is a statistical approach.

In Chapter 4, we determined expected chances of certain outcomesusing a probabilistic approach.

In this chapter, we combine the two methods! We use a statisticalapproach to estimate parameters used in a probabilistic approach.

Page 5: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distributions

Definition (Random Variable)

A random variable is a variable (usually represented by x) that hasa single numerical value, determined by chance, for each outcomeof a procedure.

Definition (Probability Distribution)

A probability distribution is a function that gives the probabilityfor each value of the random variable. It is often described in atable, formula, or graph.

Definition (Continuous vs. Discrete Random Variables)

A discrete random variable can take on a value from a finite orcountably infinite collection of values whereas a continuous ran-dom variable can take on a value from a collection of uncountablyinfinite values.

Page 6: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distributions

Definition (Random Variable)

A random variable is a variable (usually represented by x) that hasa single numerical value, determined by chance, for each outcomeof a procedure.

Definition (Probability Distribution)

A probability distribution is a function that gives the probabilityfor each value of the random variable. It is often described in atable, formula, or graph.

Definition (Continuous vs. Discrete Random Variables)

A discrete random variable can take on a value from a finite orcountably infinite collection of values whereas a continuous ran-dom variable can take on a value from a collection of uncountablyinfinite values.

Page 7: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distributions

Definition (Random Variable)

A random variable is a variable (usually represented by x) that hasa single numerical value, determined by chance, for each outcomeof a procedure.

Definition (Probability Distribution)

A probability distribution is a function that gives the probabilityfor each value of the random variable. It is often described in atable, formula, or graph.

Definition (Continuous vs. Discrete Random Variables)

A discrete random variable can take on a value from a finite orcountably infinite collection of values whereas a continuous ran-dom variable can take on a value from a collection of uncountablyinfinite values.

Page 8: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distribution Requirements

A function P must satisfy the following conditions to be a probabilitydistribution:

P must map the random variable into probabilities, i.e. P(x)should be a number between 0 and 1.

∑P(x) = 1, where we sum over all possible values of x . Some-

times rounding errors will cause these sums to be slightly aboveor below 1. In the continuous case, this summation becomesan integral.

Page 9: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distribution Requirements

A function P must satisfy the following conditions to be a probabilitydistribution:

P must map the random variable into probabilities, i.e. P(x)should be a number between 0 and 1.∑

P(x) = 1, where we sum over all possible values of x . Some-times rounding errors will cause these sums to be slightly aboveor below 1.

In the continuous case, this summation becomesan integral.

Page 10: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

§5.2 Probability Distribution Requirements

A function P must satisfy the following conditions to be a probabilitydistribution:

P must map the random variable into probabilities, i.e. P(x)should be a number between 0 and 1.∑

P(x) = 1, where we sum over all possible values of x . Some-times rounding errors will cause these sums to be slightly aboveor below 1. In the continuous case, this summation becomesan integral.

Page 11: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

Example (Probability of Having x Females in a Biological Familywith Three Children)

Note: The following distribution is not realistic. Why?

Number of Females (x) P(x)

0 16

1 13

2 13

3 16

You can graph a probability distribution of a discrete random variableas a histogram. What would the probability histogram look like forthis distribution?

Page 12: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

Example (Probability of Having x Females in a Biological Familywith Three Children)

Note: The following distribution is not realistic. Why?

Number of Females (x) P(x)

0 16

1 13

2 13

3 16

You can graph a probability distribution of a discrete random variableas a histogram. What would the probability histogram look like forthis distribution?

Page 13: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation

Definition (Mean)

µ =n∑

i=1

[xi · P(xi )]

The mean is the “expected value” of the random variable x . Wewrite this as E = µ.

Page 14: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation

Definition (Mean)

µ =n∑

i=1

[xi · P(xi )]

The mean is the “expected value” of the random variable x . Wewrite this as E = µ.

Page 15: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation

Definition (Variance)

σ2 =n∑

i=1

[(xi − µ)2 · P(xi )] =n∑

i=1

[x2i · P(xi )]− µ2

Definition (Standard Deviation)

σ =

√√√√ n∑i=1

[x2i · P(xi )]− µ2

Page 16: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation

Definition (Variance)

σ2 =n∑

i=1

[(xi − µ)2 · P(xi )] =n∑

i=1

[x2i · P(xi )]− µ2

Definition (Standard Deviation)

σ =

√√√√ n∑i=1

[x2i · P(xi )]− µ2

Page 17: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

Number of Females (x) P(x) x · P(x)

0 16 0

1 13 0.333

2 13 0.666

3 16 0.5∑

xi · P(xi )

Page 18: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

Number of Females (x) P(x) x · P(x)

0 16 0

1 13 0.333

2 13 0.666

3 16 0.5∑

xi · P(xi )

Page 19: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

Number of Females (x) P(x) x · P(x)

0 16 0

1 13 0.333

2 13 0.666

3 16 0.5∑

xi · P(xi ) = 1.5 = µ

Page 20: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

# of Females (x) P(x) x2i x2i · P(xi )

0 16 0 0

1 13 1 0.333

2 13 4 1.333

3 16 9 1.5∑

x2i · P(xi )− µ2

Page 21: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

# of Females (x) P(x) x2i x2i · P(xi )

0 16 0 0

1 13 1 0.333

2 13 4 1.333

3 16 9 1.5∑

x2i · P(xi )− µ2

Page 22: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

# of Females (x) P(x) x2i x2i · P(xi )

0 16 0 0

1 13 1 0.333

2 13 4 1.333

3 16 9 1.5∑

x2i · P(xi )− µ2 = 0.9166 = σ2

Thus, σ = 0.9574.

Page 23: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Mean, Variance, and Standard Deviation: Example

Let’s calculate µ, σ2, and σ for our previous example.

# of Females (x) P(x) x2i x2i · P(xi )

0 16 0 0

1 13 1 0.333

2 13 4 1.333

3 16 9 1.5∑

x2i · P(xi )− µ2 = 0.9166 = σ2

Thus, σ = 0.9574.

Page 24: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Unusual Values

We can construct ranges for usual values using these calculatedmeans and standard deviations as well.

We use the same range rulefor usual values as before: [µ− 2σ, µ+ 2σ].

We may also determine if a value is unusually high or low by usingthe 5% rule:

A value X is unusually low if P(x ≤ X ) ≤ 0.05.

A value X is unusually high if P(x ≥ X ) ≤ 0.05.

Page 25: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Unusual Values

We can construct ranges for usual values using these calculatedmeans and standard deviations as well. We use the same range rulefor usual values as before: [µ− 2σ, µ+ 2σ].

We may also determine if a value is unusually high or low by usingthe 5% rule:

A value X is unusually low if P(x ≤ X ) ≤ 0.05.

A value X is unusually high if P(x ≥ X ) ≤ 0.05.

Page 26: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Unusual Values

We can construct ranges for usual values using these calculatedmeans and standard deviations as well. We use the same range rulefor usual values as before: [µ− 2σ, µ+ 2σ].

We may also determine if a value is unusually high or low by usingthe 5% rule:

A value X is unusually low if P(x ≤ X ) ≤ 0.05.

A value X is unusually high if P(x ≥ X ) ≤ 0.05.

Page 27: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Unusual Values

We can construct ranges for usual values using these calculatedmeans and standard deviations as well. We use the same range rulefor usual values as before: [µ− 2σ, µ+ 2σ].

We may also determine if a value is unusually high or low by usingthe 5% rule:

A value X is unusually low if P(x ≤ X ) ≤ 0.05.

A value X is unusually high if P(x ≥ X ) ≤ 0.05.

Page 28: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Unusual Values

We can construct ranges for usual values using these calculatedmeans and standard deviations as well. We use the same range rulefor usual values as before: [µ− 2σ, µ+ 2σ].

We may also determine if a value is unusually high or low by usingthe 5% rule:

A value X is unusually low if P(x ≤ X ) ≤ 0.05.

A value X is unusually high if P(x ≥ X ) ≤ 0.05.

Page 29: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution

Definition (Binomial Probability Distribution)

A probability distribution is a binomial probability distribution ifthe following criteria are met:

The procedure has a fixed number of trials n.

The trials are independent.

The results of the trial must have only two possible outcomes- often called “success” and “failure”.

The probability for success must remain the same throughoutall trials.

Page 30: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution

Definition (Binomial Probability Distribution)

A probability distribution is a binomial probability distribution ifthe following criteria are met:

The procedure has a fixed number of trials n.

The trials are independent.

The results of the trial must have only two possible outcomes- often called “success” and “failure”.

The probability for success must remain the same throughoutall trials.

Page 31: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution

Definition (Binomial Probability Distribution)

A probability distribution is a binomial probability distribution ifthe following criteria are met:

The procedure has a fixed number of trials n.

The trials are independent.

The results of the trial must have only two possible outcomes- often called “success” and “failure”.

The probability for success must remain the same throughoutall trials.

Page 32: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution

Definition (Binomial Probability Distribution)

A probability distribution is a binomial probability distribution ifthe following criteria are met:

The procedure has a fixed number of trials n.

The trials are independent.

The results of the trial must have only two possible outcomes- often called “success” and “failure”.

The probability for success must remain the same throughoutall trials.

Page 33: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

Let’s investigate our example of the number of females in a 3-children family.

First, note that all the requirements to be a bi-nomial probability distribution are met! There are successes (havinga female) and failures (having a non-female) as the only outcomes.We let x be our number of successes in n trails (which is fixed atthree). The trials are independent. And the probability (p = 0.5)of success is the same throughout the whole set of trails.

Page 34: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

Let’s investigate our example of the number of females in a 3-children family. First, note that all the requirements to be a bi-nomial probability distribution are met! There are successes (havinga female) and failures (having a non-female) as the only outcomes.

We let x be our number of successes in n trails (which is fixed atthree). The trials are independent. And the probability (p = 0.5)of success is the same throughout the whole set of trails.

Page 35: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

Let’s investigate our example of the number of females in a 3-children family. First, note that all the requirements to be a bi-nomial probability distribution are met! There are successes (havinga female) and failures (having a non-female) as the only outcomes.We let x be our number of successes in n trails (which is fixed atthree).

The trials are independent. And the probability (p = 0.5)of success is the same throughout the whole set of trails.

Page 36: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

Let’s investigate our example of the number of females in a 3-children family. First, note that all the requirements to be a bi-nomial probability distribution are met! There are successes (havinga female) and failures (having a non-female) as the only outcomes.We let x be our number of successes in n trails (which is fixed atthree). The trials are independent.

And the probability (p = 0.5)of success is the same throughout the whole set of trails.

Page 37: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

Let’s investigate our example of the number of females in a 3-children family. First, note that all the requirements to be a bi-nomial probability distribution are met! There are successes (havinga female) and failures (having a non-female) as the only outcomes.We let x be our number of successes in n trails (which is fixed atthree). The trials are independent. And the probability (p = 0.5)of success is the same throughout the whole set of trails.

Page 38: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

What’s the probability P(x = 0)? That would be the probability ofhaving no females: MMM.

What’s the probability P(x = 1)? That would be the probability ofhaving one female: FMM, MFM, MMF.

What’s the probability P(x = 2)? That would be the probability ofhaving two females: FFM, FMF, MFF.

What’s the probability P(x = 3)? That would be the probability ofhaving two females: FFF.

So P(x = 0) = 18 , P(x = 1) = 3

8 , P(x = 2) = 38 , P(x = 3) = 1

8 .

Page 39: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

What’s the probability P(x = 0)? That would be the probability ofhaving no females: MMM.

What’s the probability P(x = 1)? That would be the probability ofhaving one female: FMM, MFM, MMF.

What’s the probability P(x = 2)? That would be the probability ofhaving two females: FFM, FMF, MFF.

What’s the probability P(x = 3)? That would be the probability ofhaving two females: FFF.

So P(x = 0) = 18 , P(x = 1) = 3

8 , P(x = 2) = 38 , P(x = 3) = 1

8 .

Page 40: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

What’s the probability P(x = 0)? That would be the probability ofhaving no females: MMM.

What’s the probability P(x = 1)? That would be the probability ofhaving one female: FMM, MFM, MMF.

What’s the probability P(x = 2)? That would be the probability ofhaving two females: FFM, FMF, MFF.

What’s the probability P(x = 3)? That would be the probability ofhaving two females: FFF.

So P(x = 0) = 18 , P(x = 1) = 3

8 , P(x = 2) = 38 , P(x = 3) = 1

8 .

Page 41: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

What’s the probability P(x = 0)? That would be the probability ofhaving no females: MMM.

What’s the probability P(x = 1)? That would be the probability ofhaving one female: FMM, MFM, MMF.

What’s the probability P(x = 2)? That would be the probability ofhaving two females: FFM, FMF, MFF.

What’s the probability P(x = 3)? That would be the probability ofhaving two females: FFF.

So P(x = 0) = 18 , P(x = 1) = 3

8 , P(x = 2) = 38 , P(x = 3) = 1

8 .

Page 42: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Example

What’s the probability P(x = 0)? That would be the probability ofhaving no females: MMM.

What’s the probability P(x = 1)? That would be the probability ofhaving one female: FMM, MFM, MMF.

What’s the probability P(x = 2)? That would be the probability ofhaving two females: FFM, FMF, MFF.

What’s the probability P(x = 3)? That would be the probability ofhaving two females: FFF.

So P(x = 0) = 18 , P(x = 1) = 3

8 , P(x = 2) = 38 , P(x = 3) = 1

8 .

Page 43: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Calculating Probabilities

In a binomial distribution with n trails and probability of success pand failure q, where p = 1− q, you can calculate P(x = K ), whereK is a whole number less than n in the following way:

(n

K

)pKqn−K .

Here,(nK

)(read n choose K ) simply denotes

n!

(n − K )!K !.

Page 44: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Calculating Probabilities

In a binomial distribution with n trails and probability of success pand failure q, where p = 1− q, you can calculate P(x = K ), whereK is a whole number less than n in the following way:(

n

K

)pKqn−K .

Here,(nK

)(read n choose K ) simply denotes

n!

(n − K )!K !.

Page 45: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Binomial Probability Distribution: Calculating Probabilities

In a binomial distribution with n trails and probability of success pand failure q, where p = 1− q, you can calculate P(x = K ), whereK is a whole number less than n in the following way:(

n

K

)pKqn−K .

Here,(nK

)(read n choose K ) simply denotes

n!

(n − K )!K !.

Page 46: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. If you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 5 of them will live in walking distance to school?

Can this even be modeled by a binomial distribution? Strictly speak-ing, it can’t. Why? But we can approximate a selection of 20 stu-dents without replacement as independent because the 20 studentsselected represent less than 5% of the population under considera-tion. So,

P(x = 5) =

(20

5

)(0.2)5(0.8)20−5 = 15504(0.2)5(0.8)15 ≈ 0.175.

Page 47: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. If you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 5 of them will live in walking distance to school?

Can this even be modeled by a binomial distribution?

Strictly speak-ing, it can’t. Why? But we can approximate a selection of 20 stu-dents without replacement as independent because the 20 studentsselected represent less than 5% of the population under considera-tion. So,

P(x = 5) =

(20

5

)(0.2)5(0.8)20−5 = 15504(0.2)5(0.8)15 ≈ 0.175.

Page 48: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. If you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 5 of them will live in walking distance to school?

Can this even be modeled by a binomial distribution? Strictly speak-ing, it can’t. Why?

But we can approximate a selection of 20 stu-dents without replacement as independent because the 20 studentsselected represent less than 5% of the population under considera-tion. So,

P(x = 5) =

(20

5

)(0.2)5(0.8)20−5 = 15504(0.2)5(0.8)15 ≈ 0.175.

Page 49: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. If you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 5 of them will live in walking distance to school?

Can this even be modeled by a binomial distribution? Strictly speak-ing, it can’t. Why? But we can approximate a selection of 20 stu-dents without replacement as independent because the 20 studentsselected represent less than 5% of the population under considera-tion.

So,

P(x = 5) =

(20

5

)(0.2)5(0.8)20−5 = 15504(0.2)5(0.8)15 ≈ 0.175.

Page 50: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. If you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 5 of them will live in walking distance to school?

Can this even be modeled by a binomial distribution? Strictly speak-ing, it can’t. Why? But we can approximate a selection of 20 stu-dents without replacement as independent because the 20 studentsselected represent less than 5% of the population under considera-tion. So,

P(x = 5) =

(20

5

)(0.2)5(0.8)20−5 = 15504(0.2)5(0.8)15 ≈ 0.175.

Page 51: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. We you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 10 or more of them will live in walking distance to school?

This is

P(x ≥ 10) =20∑

i=10

(20

i

)(0.2)i (0.8)20−i ≈ 0.0026.

In this case, we would say that 10 is an unusually high number ofsuccesses.

Page 52: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. We you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 10 or more of them will live in walking distance to school?

This is

P(x ≥ 10) =20∑

i=10

(20

i

)(0.2)i (0.8)20−i ≈ 0.0026.

In this case, we would say that 10 is an unusually high number ofsuccesses.

Page 53: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example

At Arlington High School, 20% of the student body of 1200 studentsis in walking distance to class. We you randomly select 20 students(without replacement) from the 1200, what is the probability thatexactly 10 or more of them will live in walking distance to school?

This is

P(x ≥ 10) =20∑

i=10

(20

i

)(0.2)i (0.8)20−i ≈ 0.0026.

In this case, we would say that 10 is an unusually high number ofsuccesses.

Page 54: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4)

≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 55: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 56: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2)

≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 57: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 58: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7)

≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 59: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 60: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0)

≈ 0.013.

Page 61: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Use StatCrunch to determine

P(x > 4) ≈ 0.314.

P(x = 2) ≈ 0.156.

P(x ≥ 7) ≈ 0.057.

P(x ≤ 0) ≈ 0.013.

Page 62: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Parameters for Binomial Distributions

If X is a binomial random variable with n trials and p successes(often written X ∼Binomial(n, p)), then you can calculate mean,variance, and mode using simply n and p.

µ = np.

σ2 = npq.

σ =√npq

With this information, we could use the range rule of thumb ratherthan the 5% rule of thumb to determine if a value is typical or not.

Page 63: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Parameters for Binomial Distributions

If X is a binomial random variable with n trials and p successes(often written X ∼Binomial(n, p)), then you can calculate mean,variance, and mode using simply n and p.

µ = np.

σ2 = npq.

σ =√npq

With this information, we could use the range rule of thumb ratherthan the 5% rule of thumb to determine if a value is typical or not.

Page 64: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Parameters for Binomial Distributions

If X is a binomial random variable with n trials and p successes(often written X ∼Binomial(n, p)), then you can calculate mean,variance, and mode using simply n and p.

µ = np.

σ2 = npq.

σ =√npq

With this information, we could use the range rule of thumb ratherthan the 5% rule of thumb to determine if a value is typical or not.

Page 65: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Parameters for Binomial Distributions

If X is a binomial random variable with n trials and p successes(often written X ∼Binomial(n, p)), then you can calculate mean,variance, and mode using simply n and p.

µ = np.

σ2 = npq.

σ =√npq

With this information, we could use the range rule of thumb ratherthan the 5% rule of thumb to determine if a value is typical or not.

Page 66: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Parameters for Binomial Distributions

If X is a binomial random variable with n trials and p successes(often written X ∼Binomial(n, p)), then you can calculate mean,variance, and mode using simply n and p.

µ = np.

σ2 = npq.

σ =√npq

With this information, we could use the range rule of thumb ratherthan the 5% rule of thumb to determine if a value is typical or not.

Page 67: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Using the range rule of thumb, determine if the value x = 1 istypical.

Well, µ = 15(0.25) = 3.75 and σ =√

15(0.25)(0.75) ≈ 1.677. Soour typical range of values is

[3.75− 2(1.667), 3.75 + 2(1.667)] = [0.396, 7.104].

Because we know the values only take whole numbers, we say thatthe range of typical values are the whole numbers from 1 to 7.

Page 68: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Using the range rule of thumb, determine if the value x = 1 istypical.

Well, µ = 15(0.25) = 3.75 and σ =√

15(0.25)(0.75) ≈ 1.677.

Soour typical range of values is

[3.75− 2(1.667), 3.75 + 2(1.667)] = [0.396, 7.104].

Because we know the values only take whole numbers, we say thatthe range of typical values are the whole numbers from 1 to 7.

Page 69: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Using the range rule of thumb, determine if the value x = 1 istypical.

Well, µ = 15(0.25) = 3.75 and σ =√

15(0.25)(0.75) ≈ 1.677. Soour typical range of values is

[3.75− 2(1.667), 3.75 + 2(1.667)] = [0.396, 7.104].

Because we know the values only take whole numbers, we say thatthe range of typical values are the whole numbers from 1 to 7.

Page 70: Lecture 5: Chapter 5 - people.cas.uab.educcmoxley/MA180S16/MA180S16_L5.pdf · Lecture 5: Chapter 5 C C Moxley UAB Mathematics 24 September 15. x5.1 Di erences Between Statistics and

Example: Binomial(15,0.25)

Using the range rule of thumb, determine if the value x = 1 istypical.

Well, µ = 15(0.25) = 3.75 and σ =√

15(0.25)(0.75) ≈ 1.677. Soour typical range of values is

[3.75− 2(1.667), 3.75 + 2(1.667)] = [0.396, 7.104].

Because we know the values only take whole numbers, we say thatthe range of typical values are the whole numbers from 1 to 7.