219323 Probability and Statistics for Software and Knowledge Engineers
Lecture 2: Random Variables
Monchai Sopitkamon, Ph.D.
219323 Probability and Statistics for Software and Knowledge - - PowerPoint PPT Presentation
219323 Probability and Statistics for Software and Knowledge Engineers Lecture 2: Random Variables Monchai Sopitkamon, Ph.D. Outline Discrete Random Variables (2.1) Continuous Random Variables (2.2) Expectation of a Random
Monchai Sopitkamon, Ph.D.
Discrete Random Variables (2.1) Continuous Random Variables (2.2) Expectation of a Random Variable
The Variance of a Random Variable
Jointly Distributed Random Variables
Functions and Combinations of
Definition (2.1.1) Probability Mass Function (2.1.2) Cumulative Distribution Function
Random variable: a numerical value
E.g.1, If sample space S = {electrical,
– Each outcome (cause) may be assigned a repair cost (random variable) of $50, $200, and $350, respectively.
E.g.2, Using the 3 power-plant
(0, 0, 0) (0, 0, 1) (0, 1, 0) (1, 0, 0) (0, 1, 1) (1, 0, 1) (1, 1, 0) (1, 1, 1)
These pi must satisfy
i
E.g.3, From the machine breakdown
xi
$50 $200 $350
pi
0.3 0.2 0.5
0.3 0.2 0.5 $50 $200 $350 Repair Cost Probability
E.g.4, From e.g.2,
0.07 0.23 0.57 0.13 Number of power plants P(X=xi) 0.07 0.23 0.57 0.13 1 2 3
Cdf of a RV X is the function
F(x) = P(X ≤ x) = F(x) = sum of probabilities P(X = y) for all y ≤ x
y≤x
x→∞
Discrete Random Variables (2.1) Continuous Random Variables (2.2) Expectation of a Random Variable
The Variance of a Random Variable
Jointly Distributed Random Variables
Functions and Combinations of
Examples of Continuous Random
Probability Density Function (2.2.2) Cumulative Distribution Function
Continuous RVs can take any value within
E.g., a RV X that represents the diameter
E.g., a RV X representing the time to
E.g., a RV X measuring the actual amount
A pdf f(x) defines the probabilistic
f(x) ≥ 0 and P(a ≤ X ≤ b) = Note that the prob. that a continuous RV X
statespace
a b
a a
Difference between discrete and
The cdf. of a continuous RV X is,
F(x) is a continuous nondecreasing
1 F(x) x State space
We can compute cdf. F(x) from the
Do example 14 on pg.87
−∞ x
Discrete Random Variables (2.1) Continuous Random Variables (2.2) Expectation of a Random Variable
The Variance of a Random Variable
Jointly Distributed Random Variables
Functions and Combinations of
An expectation or mean of a RV gives an
However, two RVs with the same
Expectation of Discrete Random Variables
Expectation of Continuous Random
The expected value of a discrete RV with
E.g.1: The expected machine repair cost
E(cost) = ($50x0.3) + ($200x0.2) + ($350x0.5) = $230 Over a long time period, the repairs will cost an average of $230 each.
i
= mean of the RV (weighted average)
E.g. 4: The expected number of
The expected value of a continuous
E.g. 14: The expected diameter of a
statespace
= mean of the RV
E(X) = x(1.5 − 6(x − 50.0)2)dx
49.5 50.5
= 50.0
E.g. 13: The expected battery failure
The batteries fail on average after one hour
∞