Professional Documents
Culture Documents
Aim: To review
Definitions Definitions
An experiment (trial) is any process that generates well- Finite and infinite sample space
defined outcomes. Example A sample
p space
p is called ffinite if the number of ppossible
- Tossing a coin once or several times outcomes in the sample space is finite, otherwise it is called
- Rolling a six-sided die (sides numbered 1, 2, …, 6 ) infinite
e.g rolling a die S=(1,2,3,4,5,6) or selection once card from
The sample space for an experiment is the set of all
a standard deck s= (1,2,3,…52)
outcomes
Discrete and continuous sample spaces
An event is a subset of the sample space
A sample space is called discrete if it contains only finite but
Probability is a numerical measure of the likelihood that an countable number of possible outcomes, otherwise it is
event will occur. continuous
3 4
1
Definitions Some Properties of Probability
Let S be a sample space and A be an event. The probability Let S be a sample space and A ,B S.
of occurrence of A, Pr(A), is determined by one of the following:
g 0 ≤ Pr(A) ≤ 1; Pr(Ø) =0;
0; Pr(S) = 1.
1) If the number of elements of S, n(S) , and that of A, n(A), are
known: A probability near 0 indicates an event is very unlikely to occur.
n( A)
Pr( A )
n(S ) A probability near 1 indicates an event is almost certain to occur.
2) If the number of elements of S and/or that of A are unknown: A probability of 0.5 indicates the occurrence of the event is just
as likely as it is unlikely.
n( A)
Pr( A )
N 1. Complementary events
where N is a sufficiently large number of trials and n(A) is the
number of times that event A occurred in the N trials. Pr(A' ) = 1 – Pr(A) where A' is complement of A
5 6
2
Law of conditional Probability Conditional probabilty
Given that event A has occurred, find the probability that B Determine the prob. that the outcome is a 6 in a die game,
also occurs. The event B is dependent on A and occurs only if being told that the roll has turned up an even number.
A has
h occurred. d (Conditional
d l Probability)
b bl A = {2,4,6} and B = {6}
P(B/A) = P(A B)/P(A) P(B/A) = P(A B)/P(A) = P(B)/P(A)
If A and B are independent P(A B) =P(A)*P(B) = (1/6)/1/2 = 1/3
If B is the subset of A P(A B) = P(B) Bayes’ theorem (Rule)
Examples: Reading g Assignment
g
Given a red card drawn, the prob. that it is a king heart
Randomly selected person has a history hypertension, the
probability that this person has hypertension
9 10
3
Random Variables and Distributions Exercise-1
The cumulative distribution function (cdf) of a discrete A pair of fair dice is rolled once. Let x be the random
random variable X with a pdf f(xi) is denoted by F(x) and variable whose value for any outcome is the sum of the two
defined by F(x) := Pr( xi ≤ x ) = ∑ f (xi ) numbers on the dice.
(i) Find the probability function x . Construct the probability
f(x) F(x)
table and a probability chart
2p 1 F(1) = 0.5p (ii) Find the probability that x is an odd number (ans. ½)
1.5p F(2) = 2p
p
(iii) Find P(3 xi 9) and P(0 xi 4) (ans. 29/36 and 1/6)
F(3) = 3p
0 5p
0.5p (iv) Find the CDF and represent it graphically
F(4) = 5p
1 2 3 4 5 1 2 3 4 5
F(5) = 6p
(a) (b)
4
Expected values and variances Example
Let X be a random variable and let f(x) be its pdf. Suppose a biased die has probabilities p/2, p, p, p, p, 2p, of showing 1, 2, 3, 4,
5, 6, respectively. Find the mean and variance of this distribution.
The expected value (or mean ) of X is defined by
We require p = 2/13 (so that the sum of the distribution is 1 )
i x i f ( xi ) , for a discrete distributi on
E[ X ] E[X] = ∑i xif(xi) = 1p/2 + 2p + 3p + 4p + 5p + 6 2p = 53p/2 =
R X xf ( x ) dx , for a continuous distributi on
53/13 . = 53/13,
The variance of a distribution, Var(X), also written as 2
Var(X) = ∑i ( xi – )2 f(xi)
i ( xi ) 2 f ( xi ) , for a discrete distribution = (1- )2p/2 + (2- )2p + (3- )2p + (4- )2p + (5- )2p +
Var(X) E[( X ) 2 ] (6 )22p
(6- 2 = 3120
3120p/169
/169 = 480/169
RX ( x ) f ( x)dx , for a continuous distribution
2
ab (b a) 2
E[ X ] , and Var[ X ]
2 12
The cdf of the uniform distribution is 1/(b-a)
x x 1 xa a b a b
F ( x) f (t )dt dt .
a a ba ba
19 20
5
Probability Distributions Probability Distributions
2. Normal (Gaussian) distribution: A continuous random The cdf F(x) of the normal distribution
variable X is called a normal distribution (Gaussian distribution)
with mean, E[x] = and variance, Var[x] = 2 if its pdf is given f(x)
F ( x) Pr( X x)
x
f (t )dt
1 x
2
2
f ( x) 1
2
e , x F(x)
x
f(x) Note that:
b
Pr(a X b) f (t )dt F (b) F (a )
a
f(x)
Pr( a≤ X ≤ b )
x= - x= x= +
6
Example Probability Distributions
Let X be a normally distributed random variable with 3. Poisson distribution: - a discrete distribution with indefinite
mean = –1.2 and variance 2 = 4.6. Find Pr( 2 ≤ X ≤ 4 ) or undetermined number of outcomes
If we wish to use a table of normal distribution: Poisson distribution is used to describe events that occur in a
“totally random” fashion, meaning there is no way to predict
2 (1.2) X 4 (1.2) when the event will occur. Such events include, for instance,
Pr(2 X 4) Pr
4.6 4.6 • number of customers arrive at a service facility during a specific
Pr1.492 Z 2.145
(2.145) (1.492) time interval
0.9838 0.9320
9320 ( from table )
0.5818 • number of accidents in a city on a day
The pdf for describing the number of occurrence of such events
during a specified time period follows the Poisson distribution –
defined below.
25 26
7
Probability Distributions Example
4. Exponential distribution : Cars arrive at a gas station randomly every 2 minutes, on
Note: If events occur per unit time
time, the average time interval the average. Determine the probability that the inter-arrival
between successive events is 1/ time of cars does not exceed 1 minute.
• If is the average number of occurrence (arrival) of Poisson events, Let X= inter-arrival time of cars
then the distribution of time between successive arrivals, X, is given
by the exponential pdf x
• The desired probability is Pr( X ≤ 1) = 1 – e–(1)
f ( x) e , x 0.
The mean and variance of the exponential distribution are : • Given: average inter-arrival of cars 1/ = 2 minutes =
1 1 0 5 arrivals
0.5 i l per minute
i
E[ X ] , Var [ X ]
2
Note that the cdf of the exponential distribution is given by
• Therefore,
12 (1)
Pr( X 1) 1 e 0.3935
x x
Pr( X x) f (t )dt e t dt 1 e x
0 0
29 30
p
mean
pq Optimistic Pessimistic
p ( p 1)
var iance
p q p q 1
Time
0 a m b
31 32
8
Probability Distributions
6. Gamma Distribution
A random variable x is said to have a ggamma distribution if it
assumes only non-negative values . The pdf is given by;
( x) n 1 e x
f ( x) , if 0 x
(n 1)!
f(x) = 0 otherwise f(x)
Pdf if n=1 and m =0.5
m and n are non-negative
g 0.5
33 0 2 4 6 8 10