Lecture_06
Lecture_06
Random variables
HTT,THT,TTH
HHH
Tossing a fair coin four times
No Head
One Head
Two Heads
Three Heads
Four Heads
Then, what is a probability distribution?
A statistical function that can be depicted using
graphs or probability tables.
Then X = 0, 1, 2, 3, 4, or 5.
Bernoulli Experiments
Random
Variables
Discrete Continuous
Random Variable Random Variable
Discrete Probability Distributions
Discrete Probability Density Function
Discrete Cumulative Distribution Function
Expected value and Variance
Expected Value
Tossing a fair coin four times
Possible events X = Heads
No Head 0 0
Discrete Continuous
Probability Distributions Probability Distributions
Uniform
Binomial
Hypergeometric
Geometric
Poisson
Uniform Distributions
PDF CDF
Possible events Sample Random Probability
space variable
Head H
T
Rolling a dice. X = the possible outcomes.
Then X has a uniform distribution as follows.
Uniform Distribution Characteristics
Example
In a large sample of three-digit lottery numbers, you would expect the
sample mean and standard deviation to be very close to 499.5 and
288.67, respectively.
Lotteries are frequently studied to make sure they are truly random.
Binomial Distributions
Binomial Probability Distribution
Example. On average, 20 percent of the
emergency room patients at Greenwood
General Hospital lack health insurance.
In a random sample of four patients, what is
the probability that two will be uninsured?
Answer. How many ways are there to select 2
uninsured patients from a group of 4 patients? = 4C2
n! X n X
P(X) p (1- p)
X ! (n X)!
X = 1, n = 5, and p = 0.1
n!
P(X 1) p X (1 p ) n X
X!(n X)!
5!
(0.1)1 (1 0.1)51
1!(5 1)!
(5)(0.1)(0.9) 4
0.32805
Binomial Distribution Characteristics
Example 1. an P(X) n = 5 p = 0.1
μ np (5)(0.1) 0.5 .6
.4
σ np (1 - p ) (5)(0.1)(1 0.1) .2
0 X
0.6708 0 1 2 3 4 5
Example 2. an
μ np (5)(0.5) 2.5
P(X) n = 5 p = 0.5
.6
σ np (1 - p ) (5)(0.5)(1 0.5) .4
.2
1.118 0 X
0 1 2 3 4 5
Using Excel For The Binomial Distribution (n = 4, p = 0.1)
Hypergeometric Distributions
Let approach Hypergeometric Dist. by this example
Hypergeometric Probability Distribution
X = the number of successes in n dependent
Bernoulli trials.
where
N = population size
s = number of items of interest in the population
N – s = number of events not of interest in the population
n = sample size
x = number of items of interest in the sample
n – x = number of events not of interest in the sample
Hypergeometric Distribution Characteristics
How to Calculate a Hypergeometric Probability?
The three different computers are selected from 10 in the
department. 4 of the 10 computers have illegal software
loaded. What is the probability that 2 of the 3 selected
computers have illegal software loaded?
N = 10 n=3
s=4 x=2
( 4 C2 )(6 C1 )
P(X 2 | 3,10,4) 0.3
(10 C3 )
The probability that 2 of the 3 selected computers have
illegal software loaded is 0.30, or 30%.
Using Excel for Hypergeometric Distribution (n = 8, N = 30, s = 10)
Geometric Distributions
Let approach Geometric Distribution by this example
Geometric Probability Distribution
Geometric Distribution Formula
Poisson Distributions
Poisson Probability Distribution
Please skip this page if you have not studied about series expansions.
Settings
You wish to count the number of times an event occurs
in a given area of opportunity (time, space, volume…)
2
e λ x
e (2) 3
P(X 3 | 2)
x! 3!
(2.71828 2 )(2)3
0.18
3!
Graph of Poisson Probabilities
Graphically:
= 0.50
=
X 0.50
0 0.6065
1 0.3033
2 0.0758
3 0.0126
4 0.0016
5 0.0002
6 0.0000
P(X = 2 | =0.50) = 0.0758
7 0.0000
Poisson Distribution Shape
= 0.50 = 3.00
Example [events in an interval of time]
At an outpatient mental health clinic, appointment
cancellations occur at a mean rate of 1.5 per day
on a typical Wednesday.