Professional Documents
Culture Documents
(Chapters 5 & 6)
Random Variables
Discrete vs Continuous Probability Distribution
• Properties
• Expected Value and Variance
• Cumulative Distribution Function
The Uniform & Normal Distribution
Discrete Continuous
The probability distribution is It is not possible to talk about the
defined by a probability function, probability for each value of the
denoted by f(x), which provides the random variable. Instead, we
probability for each value of the calculate the probability for
random variable. intervals.
The required conditions for a A probability distribution or
discrete probability function are: probability density function (pdf)
of r.v.X is a function f (x) such that
for any two numbers a and b,
f(x) > 0
𝑏
f(x) = 1 𝑃 𝑎≤𝑥≤𝑏 = 𝑓 𝑥 𝑑𝑥 ≤ 1
𝑎
Number 80/200
Units Sold of Days x f(x)
0 80 0 .40
1 50 1 .25
2 40 2 .20
3 10 3 .05
4 20 4 .10
200 1.00
Normal
f (x)
𝑃 𝑥1 ≤ 𝑥 ≤ 𝑥2 = 𝑃 𝑥1 < 𝑥 ≤ 𝑥2
= 𝑃 𝑥1 ≤ 𝑥 < 𝑥2
= 𝑃(𝑥1 < 𝑥 < 𝑥2 )
x
x1 x2
Discrete Continuous
Expected value, or mean: Expected value, or mean:
+∞
=E(x) = xf(x) 𝐸 𝑥 = 𝑥𝑓 𝑥 𝑑𝑥
−∞
Variance Variance
+∞
= E (x -
2 )2 = (x - )2f(x) 𝜎2 = 𝑥 − 𝜇 2 𝑓 𝑥 𝑑𝑥
−∞
𝜎= 𝜎2 𝜎= 𝜎2
CUMULATIVE DISTRIBUTIONS
FUNCTIONS
𝐹 𝑥 = 𝑃(𝑋 ≤ 𝑥)
e.g.
𝐹 3 =𝑃 𝑋≤3
𝐹 −1 = 𝑃(𝑋 ≤ −1)
and so on…
x
𝐹 x =𝑃 𝑋≤x = 𝑓 𝑥 𝑑𝑥
−∞
For a continuous random variable, the CDF, F(x), can also be used as
follows:
𝑃 𝑎 ≤ 𝑥 ≤ 𝑏 = 𝐹 𝑏 − 𝐹(𝑎)
Expected Value of x
E(x) = (a + b)/2
Variance of x
Var(x) = (b - a)2/12
where:
x = salad plate filling weight
Expected Value of x
E(x) = (a + b)/2
= (5 + 15)/2
= 10
Variance of x
Var(x) = (b - a)2/12
= (15 – 5)2/12
= 8.33
f(x)
1/10
x
5 10 15
Salad Weight (oz.)
f(x)
x
5 10 12 15
Salad Weight (oz.)
Heights
of people
Scientific
measurements
Test
scores
Amounts
of rainfall
1 2 2
f (x) e ( x ) /2
2
where:
= mean
= standard deviation
= 3.14159
e = 2.71828
Characteristics
Characteristics
Standard Deviation
x
Mean
Characteristics
Characteristics
x
-10 0 20
Characteristics
= 15
= 25
Characteristics
Probabilities for the normal random variable are
given by areas under the curve. The total area
under the curve is 1 (.5 to the left of the mean and
.5 to the right).
.5 .5
x
Characteristics
Characteristics
99.72%
95.44%
68.26%
x
– 3 – 1 + 1 + 3
– 2 + 2
1
z
0
x
z
z = (x - )/
= (20 - 15)/6
= .83
Probability
of a stockout P(x > 20)
Area = 1 - .7967
Area = .7967
= .2033
z
0 .83
Area = .9500
Area = .0500
z
0 z.05
x = + z.05
= 15 + 1.645(6)
= 24.87 or 25
Student’s t
• Hypothesis testing, confidence intervals, prediction intervals,
modelling errors that have “heavier” tails than normal.
F
• ANOVA (Analysis of Variance), multiple hypothesis testing
Chi-square
• Hypothesis testing and ANOVA (variance estimation)
Logistic distributions
• Logistic regression
Lognormal Distribution
• Describing prices (economics) and stock market prices
Exponential Probability Distribution
• Describing the time it takes to complete a task