Engineering Probability: Random Variables and Probability Distributions
Course Information and Core Topics
Required course materials for IE3301 Engineering Probability Chapter 3 (Department of Industrial, Manufacturing & Systems Engineering at The University of Texas at Arlington):
Hard copy of the Chapter 3 lecture notes
Hard copy of the Chapter 3 Handout
Core topics covered in Chapter 3:
Random Variables
Probability Distributions
Joint Probability Distributions
Random Variables Definition and Classification
Definition of a Random Variable: A random variable X is a function or mapping that assigns a real number to each simple event in a sample space S.
Discrete Random Variable:
Definition: A random variable that takes on only a finite or countable set of distinct values.
Examples of discrete random variables:
Flipping two coins where X is the number of heads:
Outcome HH→X=2
Outcome HT→X=1
Outcome TH→X=1
Outcome TT→X=0
Rolling a standard six-sided die: X∈{1,2,3,4,5,6}
Color classifications mapped to discrete numerical codes
Number of people waiting in line at a post office: X∈{0,1,2,3,…}
Continuous Random Variable:
Definition: A random variable that takes on any value within a continuous range or interval, representing an uncountable set of infinitely many values.
Examples of continuous random variables:
X=the lifetime (in hours) of a light bulb
X=the weight of the next package taken to the post office
X=the length of time required to play 18 holes of golf
X=the annual income of Texas residents
Event Representation Using Random Variables
Discrete Events Notation:
Flipping two coins (X=number of heads):
Event of getting exactly one head: [X=1]
Event of getting no more than one head: [X≤1]
Post office line (X=number of people in line):
Event of having at least 3 and fewer than 10 people in line: [3≤X<10]
Event of having more than 3 and at most 10 people in line: [3<X≤10]
Continuous Events Notation:
Light bulb lifetime (X=lifetime in hours):
Event that the bulb lasts more than 50 hours: [X>50]
Event that the bulb never turns on: [X=0]
Probability Distributions for Single Random Variables
Definition: A probability distribution defines the assignment of probabilities to the possible values that a random variable X can assume.
Probability Mass Function (p.m.f.)
Definition: For a discrete random variable X, the probability mass function fX(x) maps each possible value x from a finite or countable set to a probability on the interval [0,1].
Formula: fX(x)=P[X=x]
PMF values represent exact probabilities.
Fundamental properties of a valid p.m.f.:
0≤fX(x)≤1 for all x
∑xfX(x)=1
Example — Flipping Two Fair Coins:
Sample space: S={HH,HT,TH,TT}
Let X=number of heads
fX(0)=P[X=0]=P(TT)=41=0.25
fX(1)=P[X=1]=P(HT or TH)=42=0.50
fX(2)=P[X=2]=P(HH)=41=0.25
Verification: 0<fX(x)<1 for x∈{0,1,2}; otherwise fX(x)=0.
Definition: For a continuous random variable X, the probability density function fX(x) describes the distribution of values over a continuous range.
Critical distinction: Individual p.d.f. values fX(x) are not probabilities.
Probability calculation: Probabilities are determined by calculating the definite integral (area under the fX(x) curve) between two bounds a and b:
P[a<X<b]=∫abfX(x)dx
Fundamental properties of a valid p.d.f.:
fX(x)≥0 for all x
∫−∞∞fX(x)dx=1
Single Point Probability Property: The probability that a continuous random variable takes on any exact single value a is always zero:
P[X=a]=∫aafX(x)dx=0
Boundary Invariance: Because P[X=a]=0, inclusion or exclusion of endpoints does not change the probability:
P[a≤X≤b]=P[a<X≤b]=P[a≤X<b]=P[a<X<b]
Example — Lifetime of a Radio Tube:
Let X=lifetime (in hours) of a radio tube.
Probability density function:
fX(x)={x21000for x>100otherwise
Calculation of P[X<150]:
P[X<150]=∫100150x2100dx=[−x100]100150=−150100−(−100100)=−32+1=31≈0.3333
Cumulative Distribution Function (c.d.f.)
Definition: The cumulative distribution function FX(x) measures the probability that the random variable X takes on a value less than or equal to x:
FX(x)=P[X≤x]for −∞<x<∞
Mathematical formulations:
For a discrete random variable X:
FX(x)=∑t≤xfX(t)
For a continuous random variable X:
FX(x)=∫−∞xfX(t)dt
CDF values are always actual probabilities.
Fundamental properties of a c.d.f.:
0≤FX(x)≤1 for all x
Monotonically non-decreasing: If x≤y, then FX(x)≤FX(y)
Right-continuous step function for discrete RVs; continuous smooth curve for continuous RVs
Asymptotic limits: limx→−∞FX(x)=0 and limx→∞FX(x)=1
Bivariate distributions involve two random variables, X and Y, simultaneously.
The joint distribution function is denoted by fX,Y(x,y).
Joint Probability Mass Function (Discrete Case)
Definition: fX,Y(x,y)=P[X=x,Y=y]
Properties:
0≤fX,Y(x,y)≤1 for all (x,y)
∑x∑yfX,Y(x,y)=1
Joint Probability Density Function (Continuous Case)
Properties:
fX,Y(x,y)≥0 for all (x,y)
∫−∞∞∫−∞∞fX,Y(x,y)dxdy=1
Probability over a two-dimensional region A:
P[(X,Y)∈A]=∬AfX,Y(x,y)dxdy
Marginal Probability Distributions
Marginal distributions isolate the probability distribution of a single random variable from a joint distribution by summing or integrating out the other variable.
Formulations for Discrete Random Variables:
Marginal PMF of X: fX(x)=∑yfX,Y(x,y)
Marginal PMF of Y: fY(y)=∑xfX,Y(x,y)
Formulations for Continuous Random Variables:
Marginal PDF of X: fX(x)=∫−∞∞fX,Y(x,y)dy
Marginal PDF of Y: fY(y)=∫−∞∞fX,Y(x,y)dx
Discrete Marginal Distribution Example
Joint probability mass distribution table for X∈{0,1,2} and Y∈{5,10}:
Detailed table entries:
fX,Y(0,5)=0.2, fX,Y(1,5)=0.1, fX,Y(2,5)=0.1
fX,Y(0,10)=0.1, fX,Y(1,10)=0.2, fX,Y(2,10)=0.3
Derived marginal probabilities for Y (fY(y)):
fY(5)=0.2+0.1+0.1=0.4
fY(10)=0.1+0.2+0.3=0.6
Derived marginal probabilities for X (fX(x)):
fX(0)=0.2+0.1=0.3
fX(1)=0.1+0.2=0.3
fX(2)=0.1+0.3=0.4
Sum of all probabilities: ∑xfX(x)=∑yfY(y)=1.0
Continuous Marginal Distribution Example
Given joint PDF: fX,Y(x,y)=2e−x−2y for x>0,y>0; otherwise fX,Y(x,y)=0
Calculation of marginal PDF fX(x) for x>0:
fX(x)=∫0∞2e−x−2ydy=2e−x∫0∞e−2ydy=2e−x[−21e−2y]0∞=2e−x(0−(−21))=e−x
Calculation of marginal PDF fY(y) for y>0:
fY(y)=∫0∞2e−x−2ydx=2e−2y∫0∞e−xdx=2e−2y[−e−x]0∞=2e−2y(0−(−1))=2e−2y
Conditional Probability Distributions
Given joint distribution fX,Y(x,y) with fX(x)>0 and fY(y)>0:
Conditional distribution of X given Y=y:
fX∣Y(x∣y)=fY(y)fX,Y(x,y)
Conditional distribution of Y given X=x:
fY∣X(y∣x)=fX(x)fX,Y(x,y)
Given joint PDF for 0<x<1 and 0<y<1:
fX,Y(x,y)=512x(2−x−y)
Step 1: Find marginal PDF fY(y) for 0<y<1:
fY(y)=∫01512x(2−x−y)dx=512∫01(2x−x2−xy)dxfY(y)=512[x2−3x3−2x2y]01=512(1−31−2y)=512(32−2y)=52(4−3y)
Step 2: Determine general conditional PDF fX∣Y(x∣y):
fX∣Y(x∣y)=fY(y)fX,Y(x,y)=52(4−3y)512x(2−x−y)=4−3y6x(2−x−y)
Step 3: Evaluate conditional density at Y=0.5:
fY(0.5)=52(4−3(0.5))=52(2.5)=1.0fX∣Y(x∣0.5)=512x(2−x−0.5)=512x(1.5−x)=512(23x−x2)
Step 4: Calculate probability P[X<0.25∣Y=0.5]:
P[X<0.25∣Y=0.5]=∫00.25512(23x−x2)dx=512[43x2−3x3]00.25P[X<0.25∣Y=0.5]=512[43(161)−31(641)]=512[643−1921]=512[1929−1]=512×1928=512×241=101=0.10
Independence of Random Variables
Definition: Two random variables X and Y are independent if and only if:
fX∣Y(x∣y)=fX(x)orfY∣X(y∣x)=fY(y)
Factorization Property: When random variables X and Y are independent, their joint probability function equals the product of their marginal distributions:
fX,Y(x,y)=fX(x)fY(y)
Discrete Independence Test Example
Comparing marginal fX(x) and conditional fX∣Y(x∣5)
Values from discrete table:
fX(0)=0.3, whereas fX∣Y(0∣5)=0.5
fX(1)=0.3, whereas fX∣Y(1∣5)=0.25
fX(2)=0.4, whereas fX∣Y(2∣5)=0.25
Conclusion: Since fX∣Y(x∣5)=fX(x), random variables X and Y are dependent.
Continuous Independence Test Example
Given joint PDF for x>0,y>0:
fX,Y(x,y)=2e−x−2y
Derived marginal distributions:
fY(y)=2e−2y
fX(x)=e−x
Calculation of conditional PDF:
fX∣Y(x∣y)=fY(y)fX,Y(x,y)=2e−2y2e−x−2y=e−x
Conclusion: Since fX∣Y(x∣y)=fX(x)=e−x, random variables X and Y are independent.