Probability distributions

Binomial Distribution

A coin is tossed 10 number of times. Each toss results in one of two outcomes: head or tail. We are interested in the number of heads observed. The probability of observing each of these two outcomes is the same for all tosses.

find the following probabilities:

a) The result of all 10 tosses is heads

b) The result is exactly 2 heads from the 10 tosses

c) The result is at least 4 heads from the 10 tosses

Solution

a) We can calculate the probability using the following code:

b) In this case again we put the proper values in code:

c) In this case we are interested in all probabilities equal or greater than 4.

We use the CDF, instead of PDF:

Poisson Distribution

In factory fabric defects occur randomly at an average rate of 1.8 defects per day. What is the probability of observing:

a) 4 defects in a given day?

b) 2 or more defects in a given day?

Solution

a) We can calculate the probability using the following code:

b) We calculate this probability using CDF

Normal Distribution

a) A normal distribution has mean = 50 and standard deviation = 10. What is the area between 50 and 70?

b) For a normal distribution with mean 0 and standard deviation 1, approximately what is the area between -2 and -1?

c) The average time of making jeans in an jeans factory is normally distributed with a mean time 15 minutes and standard deviation of 0.5 minutes. What is the proportion of jeans which are made between 15.6 and 16.1 minutes?

Solution

a) We can calculate the probability using the following code:

b) We can calculate the probability using the following code:

c) We can calculate the probability using the following code: