Stochastic Modeling
Lecture Notes
ZHAW School of Engineering
Basic Definitions¶
Random Events¶
Occurrence: The event A occurs if the outcome of the experiment belongs to A.
Examples of Sample Spaces
Experiment | Sample Space Ω |
|---|
Tossing a die | {1,2,3,4,5,6} |
Arrival time of a train | [0h00;24h00[ |
Special Events¶
A∩B: A and B (intersection)
A∪B: A or B (non-exclusive “or”)
B∖A: B without A (set difference)
Ac=Ω∖A: the complementary event “not A”
⋂i=1∞Ai: all Ai occur
⋃i=1∞Ai: at least one Ai occurs
Probability Measure¶
Conditional Probabilities¶
Independence¶
Informally, two events are independent if the occurrence of one does not influence the other.
Properties of Independence¶
E and F are independent if P(E∣F)=P(E) or P(F∣E)=P(F).
If E and F are independent, then their complements (Ec,Fc) are also independent.
Random Variables¶
A random variable (RV) X is a function that maps the sample space of a random experiment to the real numbers: X:Ω→R.
Classification of RVs¶
| Type | Definition | Key Characteristic |
|---|
| Discrete | Takes finite or countable values | Defined by Probability Mass Function (PMF) P(X=xi) |
| Continuous | Takes values in an uncountable set | Defined by Probability Density Function (PDF) fX(x) |
Moments and Functions¶
The following quantities describe the behavior of a random variable X:
Distribution Function (CDF): FX(t)=P(X≤t)
Expectation (Mean): E[X]=∫xfX(x)dx (or sum for discrete)
Variance: Var(X)=E[X2]−(E[X])2
Moment Generating Function (MGF): ϕX(t)=E[etX]
Discrete Probability Distributions¶
Bernoulli Distribution¶
Models a single trial with success probability p.
Binomial Distribution¶
Models the number of successes in n independent Bernoulli trials.
Notation: X∼Bin(n,p)
PMF: P(X=k)=(kn)pk(1−p)n−k
E[X]=np
Var(X)=np(1−p)