28
HW adjustment Q70 solve only parts a, b, and d. Q76 is moved to the next homework and added-Q2 is moved to the next homework as well.

HW adjustment

  • Upload
    kaden

  • View
    43

  • Download
    0

Embed Size (px)

DESCRIPTION

HW adjustment. Q70 solve only parts a, b, and d. Q76 is moved to the next homework and added-Q2 is moved to the next homework as well. The Binomial Distribution. Section 3.4. An experiment is called a binomial experiment if it satisfies the following conditions:. - PowerPoint PPT Presentation

Citation preview

Page 1: HW adjustment

HW adjustment

Q70 solve only parts a, b, and d.

Q76 is moved to the next homework and added-Q2 is moved to the next homework as well.

Page 2: HW adjustment

The Binomial DistributionAn experiment is called a binomial experiment if it satisfies the following conditions:

1. The experiment of interest here consists of a sequence of n sub-experiments called trials, where n is fixed in advance of the experiment.

2. Each trial can result in one of two outcomes usually denoted by success (S) or failure (F).

3. These trials are independent (outcome of one trial doesn’t affect any of the others).

4. The probability of success, p, is constant from trial to trial

Section 3.4

Page 3: HW adjustment

The Binomial DistributionWhat the above is saying:

The experiment consists of a group of n independent Bernoulli sub-experiments, where n is fixed in advance of the experiment and the probability of a success is p.

Section 3.4

What we are interested in studying is the number of successes that we may observe in any run of such an experiment.

Page 4: HW adjustment

The Binomial Distribution Section 3.4

The binomial random variable X = the number of successes (S’s) among n Bernoulli trials or sub-experiments.

We say X is distributed Binomial with parameters n and p,

The pmf can become (depending on the book),

The CDF can become (also depending on the book),

Page 5: HW adjustment

The Binomial Distribution Section 3.4

The mean, the variance and the standard deviation:

Page 6: HW adjustment

The Binomial Distribution Section 3.4

When to use the binomial distribution?

1. When we have n independent Bernoulli trials

2. When each Bernoulli trial is formed from a sample n of individuals (parts, animals, …) from a population with replacement.

3. When each Bernoulli trial is formed from a sample of n individuals (parts, animals, …) from a population of size N without replacement if n/N < 5%.

Page 7: HW adjustment

The Binomial Distribution Section 3.4

Example: Ten light bulbs were chosen at random from a batch of 10000 produced by GE. If we know that 100 of these light bulbs are defective, what is the chance that we will observe 2 or more defectives in this sample?

If we sample with replacement.

Page 8: HW adjustment

The Binomial Distribution Section 3.4

Example: Ten light bulbs were chosen at random from a batch of 10000 produced by GE. If we know that 100 of these light bulbs are defective, what is the chance that we will observe 2 or more defectives in this sample?

If we sample without replacement.

Page 9: HW adjustment

The Binomial DistributionAn experiment is called a binomial experiment if it satisfies the following conditions:

1. The experiment of interest here consists of a sequence of n sub-experiments called trials, where n is fixed in advance of the experiment.

2. Each trial can result in one of two outcomes usually denoted by success (S) or failure (F).

Section 3.4

Page 10: HW adjustment

2) Identify the sample space (all possible outcomes)The Binomial Distribution

S = {SSSSSSSSSS, SSSSSSSSSF, …, , SSSSSSSSSFF, …., FFFFFFFFFF}

How many possible outcomes?

Section 3.4

Page 11: HW adjustment

3) Identify an appropriate random variable that reflects what you are studying (and simple events based on this random variable)

The Binomial Distribution Section 3.4

Snew = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

Page 12: HW adjustment

4) Construct the probability distribution associated with the simple events based on the random variable

The Binomial Distribution Section 3.4

X = 2 => two success! One of those is {SSFFFFFFFF}

Page 13: HW adjustment

The Hypergeometric Section 3.5

The exact distribution of the above example is called the hypergeometric.

The hypergeometric random variable X = the number of successes (S’s) among n trials or sub-experiments.

We say X is distributed Hypergeometric with parameters N, M and n

Page 14: HW adjustment

The pmf can become (depending on the book),

The Hypergeometric Section 3.5

The CDF

Page 15: HW adjustment

The Hypergeometric Section 3.5

Page 16: HW adjustment

The Binomial Distribution

0.1

0.1

0.1

0.1

0.1

Section 3.4

Example: Each component of the following system (machines in a factory) has a 0.1 chance of breaking down. Assuming that none of these components affect the performance of any of the others, construct the associated probability distribution.

Page 17: HW adjustment

0 1 2 3 4 5

0.0

0.1

0.2

0.3

0.4

0.5

0.6

x

P(X

=x)

x 0 1 2 3 4 5 Sum

P(x) 0.59049 0.32805 0.0729 0.0081 0.00045 0.00001 1

F(x) 0.59049 0.91854 0.99144 0.99954 0.99999 1.00000

The Binomial Distribution Section 3.4

The resulting distribution in table format:

0 1 2 3 4 5

0.6

0.7

0.8

0.9

1.0

x

P(X

<=

x)

Page 18: HW adjustment

x 0 1 2 3 4 5 Sum

P(x) 0.59049 0.32805 0.0729 0.0081 0.00045 0.00001 1

F(x) 0.59049 0.91854 0.99144 0.99954 0.99999 1.00000

The Binomial Distribution Section 3.4

The resulting distribution in table format:

0 1 2 3 4 5

0.0

0.1

0.2

0.3

0.4

0.5

0.6

x

P(X

=x)

Page 19: HW adjustment

The Binomial Distribution Section 3.4

Mean:

Variance:

Standard deviation:

Page 20: HW adjustment

The Binomial Distribution Section 3.4

What is the chance that if you go in at any day and observing these components you will find 0.5+/-2*0.67 of them not working?

Approximately using Chebyshev’s rule:

Exactly from table:

Page 21: HW adjustment

x 0 1 2 3 4 5 Sum

P(x) 0.59049 0.32805 0.0729 0.0081 0.00045 0.00001 1

F(x) 0.59049 0.91854 0.99144 0.99954 0.99999 1.00000

The Binomial Distribution Section 3.4

The resulting distribution in table format:

Page 22: HW adjustment

The Binomial Distribution Section 3.4

A touch on inference:

Say that one day we passed by this factory and found that 4 machines (out of the 5) are not working. Should we be alarmed? Or not?

Why? Or why not?

Can you find a better model (i.e. a better value of the parameters) that fits this observed data?

Do you think that the model (governed by the parameters n = 5 and p = 0.1) is appropriate to describe this system?

Page 23: HW adjustment

p

0.00.2

0.4

0.6

0.8

1.0

x

01

2

3

4

5

y

0.0

0.2

0.4

0.6

0.8

1.0

The Binomial Distribution Section 3.4

Page 24: HW adjustment

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.1

0.2

0.3

0.4

p

pmf

The Binomial Distribution Section 3.4

Page 25: HW adjustment

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.1

0.2

0.3

0.4

p

pmf

The Binomial Distribution Section 3.4

Page 26: HW adjustment

So this sample either happened by chance with probability 0.00045, if the model we are using is true, or is best described by a model with p = 0.8.

The Binomial Distribution Section 3.4

The likelihood of this data under the current model is 0.00045 and under the new model is 0.4096

So, if the p = 0.1 is not known for sure (it usually is not) then, based on our observation, we favor a model with p = 0.8.

What kind of implications does this have for the factory?

Page 27: HW adjustment

The Negative Binomial DistributionAn experiment is called a negative binomial experiment if it satisfies the following conditions:

1. The experiment of interest consists of a sequence of sub-experiments (can be infinite) called trials.

2. Each trial can result in one of two outcomes usually denoted by success (S) or failure (F).

3. These trials are independent.

4. The probability of success, p, is constant from trial to trial

Section 3.5

5. We stop this experiment when a fixed number, r, of successes occur.

Page 28: HW adjustment

What the above is saying:

The experiment consists of a group of independent Bernoulli sub-experiments, where r (not n), the number of successes we are looking to observe, is fixed in advance of the experiment and the probability of a success is p.

What we are interested in studying is the number of failures that precede the rth success.

Called negative binomial because instead of fixing the number of trials n we fix the number of successes r.

The Negative Binomial Distribution Section 3.5