Professional Documents
Culture Documents
Probability Theory
Random Variables and Their Properties
Distributions of Random Variables
• Suppose we have a sample space “S”. The function that assigns a
value between 0 and 1 to any event inside “S” is called a random
function and the events in S are called random variables or
Stochastic Variables
• If the random variable takes on only discrete values, then it is called
Discrete Random Variable “DRV”. Example: Number of Columns
complying with shear-ductility requirements, Number of Failure
Cases.
• If the random variable takes on continuous values, then it is called
Continuous Random Variable “CRV”. Example: The crushing force
for a specimens of concrete cylinders
2
Discrete Random Variables
• If X is a discrete random variables, then the function P(X = x) = f(x)
is called a probability density function “PDF” if:
• 1.0 ≥ f(x) ≥ 0
• for all X = x.
Example: A fair coin is tossed twice, this process is repeated many
times, Let X represent the possible values “x” for having Heads
Here, the possible sample space is S = { HH, HT, TH, TT}, for each
one, there is a value for each possible x as shown in the Table
P(X=0) = P(TT) = ¼, Sample Event HH HT TH TT
6
The Variance and Standard Deviation
• The variance for a random variable can defined as
{ DRV }
= E(X2) – { E(X) }2 { CRV }
• If the probabilities are all equal for all events of X then this definition
reduces to the known formula :
7
Properties of the Expectation and the Variance
• “c” and “b” are constants, then: E(c X + b) = cE(X) +b
If
• If X and Y are any random variables, then E(X+Y) = E(X)+E(Y)
• If X and Y are independent random variables, then E(XY) = E(X)E(Y)
or = +
8
Joint Probability Function
• Most of times, experiments or data concern many random variables at the same
time, and these may or maynot be independent of each other, e.g. dimensions of
specimen, damage energy and peak frequency of an EQ.
• The probability density function that describes the simultaneous probability of
each variable is called a Joint Probability Density {or Mass} Function
.0 {CRV}
{CRV}
• Of course as usual, the probabilities are simply the Areas (for CRV) or
the Sums (for DRV) resulting from the density functions
The Expected Value and Variance, DRV
The Expected Value and Variance, CRV
Example:
• joint probability density function of two discrete random variables X and Y is given by
The
f(x, y)=c(2x+y), where x and y can assume all integers such that 0≤ x ≤ 2, 0 ≤ y ≤ 3, and f (x, y)= 0
otherwise:
1. Find the value of constant c. 2. Find P(X=2,Y=1), 3.Find the P(1 ≤ X, Y ≤ 2), 4. Find the Marginal
Probability Function for X. , 5. Find the mean value of X
1. The constant c must satisfy the basic property of PDF, i.e.: , thus doing the sum, we have:
2. P(X=2,Y=1) = (1/42)*(2*2+1)=5/42
3. P(1 ≤ X, Y ≤ 2)= (1/42)*
4. P(X=x)=
Function of One Random Variable
• Most of the times, we use a function of parameters that are random,
e.g.: The pressure “p” behind a retaining wall is a function of soil density
“γ” and height of soil “h” and lateral pressure coefficient Ka . i.e. p = γ h
Ka
• Let’s say we have an invertible function W = G(x) , and let’s have the
function G(x) as monotonic
• Then logically, the probability of having a range of X is equivalent to
have a range of W. i.e. P(W=w) = P(X=x) = P(G –1(w))
• The probabilities are computed using the cumulative function as
For DRV :
For CRV:
, Hence:
Function of Two Random Variables
•
• If W is a function of two random variables {X and Y}.
• Assume we know the Joint PDF for X and Y : i.e. fXY is given.
1. W = X + Y , note: w – y is in fact x.
2. W = X - Y
3. W = X / Y
4. W = XY
Example
•
• The basic wind pressure is related to the wind velocity as p = cV 2 where
c is a constant. The PDF for the velocity V is fv = (a/v)*exp(-b/v), where a
and b are constant parameters. Find the PDF of the wind pressure p.
Here , and thus , and hence , by taking the positive derivative (because
the PDF must be positive)