DISC: 203 - Probability & Statistics: Lecture 7 - 9 Probability Distributions - I
DISC: 203 - Probability & Statistics: Lecture 7 - 9 Probability Distributions - I
Statistics
Lecture 7 - 9
Probability Distributions - I
1
Outline
• Random sampling
• Random variable
• Probability distribution (discrete random variables)
• Expected value and variance
• Binomial distribution
• Poisson distribution
2
RANDOM SAMPLING
• Examples:
• Number of Heads in two tosses of a coin: x = 0,1,2
• Sum of numbers when you roll a dice twice: x= 2,
…,12
• The number of sales made by a salesperson in a
given week: x = 0,1,2,…
• The temperature (in degrees Celsius) of a cup of
coffee at PDC
4
Two Types of Random Variables
x 0 1 2
P(x) 1/4 1/2 1/4
6
Probability Distributions for Discrete
Random Variables
• Requirements for a discrete probability distribution
• p(x) ≥ 0 for all values of x
• ∑ p(x)=1
7
Expected value and variance
8
Expected value and variance
10
Expected value and variance
12
Chebyshev’s rule and empirical rule
Using μ and σ with Chebyshev’s or Empirical rule (likelihood that values of x will
fall within interval ….
13
Some important
probability distributions
1. Binomial
14
Binomial Random Variable
15
• Consider an experiment trial with only two
outcomes (e.g. True/False).
• Independently repeated trials of such an
experiment are called Bernoulli trials.
• A Binomial Experiment consists of a fixed number of
Bernoulli trials.
• Denoted as B(n, p) where n is the number of trials and
p is the probability of success.
• Example: Toss a fair coin 5 times and call Heads a
success. The random variable in this case is the number
of Heads we observe in the five tosses
• This is a Binomial Experiment: B(5, 0.5)
16
Examples
• You randomly select three bonds out of possible ten for
an investment portfolio. Unknown to you, eight out of
ten shall maintain their present value and the other two
will lose value. Let x be the number of three bonds you
select that lose value.
17
Examples
• Before marketing a new product, a consumer survey is
usually conducted to determine whether the product is
likely to be successful. Suppose a company develops a
diet soda and conducts a taste preference survey in which
100 randomly selected customers state their preferences
among the new soda and existing leading sellers. Let x be
the number of the 100 who choose the new soda over
the others.
19
Binomial Probability Distribution Example
20
Binomial Distribution - Exercise
22
Binomial Distribution Solution
n = 12, p = .20
A. p(0) = .0687
B. p(2) = .2835
C. p(at most 2) = p(0) + p(1) + p(2)
= .0687 + .2062 + .2835
= .5584
D. p(at least 2) = p(2) + p(3)...+ p(12)
= 1 – [p(0) + p(1)]
= 1 – .0687 – .2062
= .7251
23
Practice
24
Binomial Probabilities in R
• Probability function:
dbinom(x, size=n, prob=p)
25
Some important
probability distributions
2. POISSON
26
The Poisson Distribution
27
The Poisson Distribution
28
Poisson Probability Distribution Function
x –
e
p (x ) (x = 0, 1, 2, 3, . . .)
x!
= Mean (expected) number of events in unit
e = 2.71828 . . . (base of natural logarithm)
x = Number of events per unit
29
The Poisson Distribution - example
Example:
Customers arrive at a rate of 72 per hour on
average. What is the probability of 4 customers
arriving in 3 minutes?
30
The Poisson Distribution - example
31
Example
33
Poisson Probabilities R
• Probability function:
dpois(x,lambda = λ)
34
PRACTICE EXERCISES
35
Reference: chapter 4
discrete random variables & probability
distributions
36