IM1017 Topic 04 Disc Cont Dist
IM1017 Topic 04 Disc Cont Dist
▪ Random variable
3
RANDOM VARIABLE
▪ Random Variable
• A random variable is a numerical description of outcome
of an experiment.
4
RANDOM VARIABLE
2 3 4 5 6 7 8 X
X: height, in feet
5
Introduction to
Probability Distributions
▪ Random Variable
Represents a possible numerical value from a
random experiment
Random
Variables
Discrete Continuous
Random Variable Random Variable
6
Discrete Probability Distribution
7
Discrete Probability Distribution
probability
1/6
x 1 2 3 4 5 6
P (x) 1/6 1/6 1/6 1/6 1/6 1/6
1 2 3 4 5 6
8
Discrete Probability Distribution
Experiment: Toss 2 Coins. Let X = # heads.
Show P(x) , i.e., P(X = x) , for all values of x:
x Value Probability
0 1/4 = .25
Probability
0 1 2 x
9
Discrete Probability Distribution
10
Example
11
Cumulative Probability Function
▪ In other words,
F(x0) = P(x) with x ≤ x0
12
Example
13
Discrete Probability Distribution
f(x) = 1/n
14
EXPECTED VALUE and VARIANCE of
DISCRETE RANDOM VARIABLE
▪ Expected Value
E (x) = = x * P(x)
▪ Variance
Var (x) = 2 = (x - )2 * P(x)
or
2 = x2 * P(x) - 2
• Standard Deviation:
= 2
15
Example
16
Remember functions of random
variables
▪ If a, b are constants
• E(a) = a; Var (a) = 0
17
Example
18
THE BINOMIAL PROBABILITY
DISTRIBUTION
▪ A Binomial Experiment
A Binomial Experiment has 4 properties:
• The experimental consists of a sequence of n identical
trial.
• Two outcomes are possible of each trial: success and
failure.
• The probability of a success, p, does not change from
trial to trial. Consequently, the probability of a failure,
1-p, does not change from trial to trial.
• The trials are independent.
19
THE BINOMIAL PROBABILITY
DISTRIBUTION
▪ Example of a Binomial Experiment
- 15 tosses of a coin (head or tail)
=> What is the probability of having 5 heads? More than 6
tails?...
20
THE BINOMIAL PROBABILITY
DISTRIBUTION
21
Example
22
THE BINOMIAL PROBABILITY
DISTRIBUTION
23
POISSON DISTRIBUTION
24
TOPIC 4B
CONTINUOUS
PROBABILITY
DISTRIBUTION
Probability Distributions
Probability
Distributions
Discrete Continuous
Probability
Distributions
Probability
Distributions
Binomial Uniform
Poisson Normal
26
OUTLINE
▪ Introduction
27
INTRODUCTION
28
INTRODUCTION
The probability density function, f(x), of random variable X has the following
properties:
1. f(x) > 0 for all values of x
2. The area under the probability density function f(x) over all values of the
random variable X is equal to 1.0
3. The probability that X lies between two values is the area under the
density function graph between the two values
4. The cumulative density function F(x0) is the area under the probability
density function f(x) from the minimum x value up to x0
x0
F(x 0 ) = f(x)dx
xm
S
x
a b
b
P(a X b) = F (b) − F (a) = S = f ( x)dx
a 30
INTRODUCTION
31
THE UNIFORM PROBABILITY
DISTRIBUTION
▪ Uniform Probability Density Function
1
for a x b
f (x) = b − a
f(x)
0 elsewhere
h
Density
x
a b
32
THE UNIFORM PROBABILITY
DISTRIBUTION
▪ Expected Value and Variance for Uniform
Distribution
a+b
b
E( x ) = = x.f ( x )dx =
a
2
Var ( x ) = 2
b
= (x − ) f ( x )dx =
2 (b − a)
2
a
12
33
Example
34
The Normal Probability Distribution
X ~ N(μ,σ 2 )
35
The Normal Distribution
▪ ‘Bell Shaped’
▪ Symmetrical f(x)
▪ Mean, Median and Mode
are Equal
σ
Location is determined by the mean, μ
x
Spread is determined by the standard μ
deviation, σ
The random variable has an infinite Mean
theoretical range:
= Median
x from − to + = Mode
36
The Normal Probability Distribution
1 2 3
1 2 3
Same , different µ
37
The Normal Probability Distribution
1
1 < 2
2
X
µ
Same µ, different
38
The Normal Probability Distribution
f(x)
S
a b
x
Z N (0,12)
40
The Standard Normal Distribution
X −
Z= f(x)
S
a b
x
- 3 - 2 - + +2 +3
41
The Normal Distribution
Find the probability
X −
Z=
▪ X N(, 2) Z N (0, 12)
42
The Normal Distribution
Find the probability
▪ Using the Table of Areas for Normal Curve to find
the value of S (p.738 of textbook).
f(x)
S
z
-3 -2 -1 0 1 2 3
z S or S z
43
p.738 of textbook
44
Example
45
Excel formula
46
NORMAL APPROXIMATION of
BINOMIAL PROBABILITY
▪ When we encounter a binomial probability
distribution problem with a large number of trial,
we may want to approximate the binomial
probability. (or when np(1-p) ˃ 9)
47
NORMAL APPROXIMATION of
BINOMIAL PROBABILITY
▪ When using the normal approximation to binomial,
we set
= np
= np(1 − p)
48
Example
49
Differences Between Two
Random Variables
For two random variables, X and Y
▪ The mean of their difference is the difference of their
means; that is
E(X − Y) = μX − μY
▪ If the covariance between X and Y is 0, then the variance
of their difference is
Var(X − Y) = σ 2X + σ 2Y
▪ If the covariance between X and Y is not 0, then the
variance of their difference is
Var(X − Y) = σ 2X + σ 2Y − 2Cov(X, Y)
50
Linear Combinations of
Random Variables
▪ A linear combination of two random variables, X
and Y, (where a and b are constants) is
W = aX + bY
▪ The mean of W is
51
Linear Combinations of
Random Variables
▪ The variance of W is
52
Example