SlideShare a Scribd company logo
1 of 59
Download to read offline
Review of probability calculus
June 11, 2017
Andreas Scheidegger
Eawag: Swiss Federal Institute of Aquatic Science and Technology
Random variables (RV)
“Mathematical machines that generate numbers”
Completely described by the cumulative probability distribution
function (cdf) or the probability distribution/density function
(pdf).
Some properties can be described by measures such as mean,
variance, mode, . . .
Andreas Scheidegger Univariate Random Variables 1
Probability Distribution/Density Function (pdf)
PA fB
z1 z2 zn zzrzl
Discrete RV Probability to obtain a certain output.
Continuous RV Proportional to the probability to obtain an output
close to a certain value.
Andreas Scheidegger Univariate Random Variables 2
Cumulative Distribution Function (cdf)
FA FB
z1 z2 zn zzrzl
0
1
0
1
Discrete and continous RV Probability to obtain an output equal
or smaller than a certain value.
Andreas Scheidegger Univariate Random Variables 3
cdf and pdf
Discrete RVs
Distribution function:
FA(z) = P(A ≤ z)
Probability distribution:
PA(zi ) for zi ∈ ΩA
Continous RVs
Distribution function:
FB(z) = P(B ≤ z)
Probability density:
fB(z) =
d
dz
FB(z)
P(B ∈ [z1, z2]) =
z2
z1
fB(z) dz
P(B ∈ [z, z + ∆]) ≈ ∆ · fB(z)
Andreas Scheidegger Univariate Random Variables 4
Characteristics of Random Variables
Measures of Location
Expected value:
E[A] =
z∈ΩA
z PA(z) , E[B] =
ΩB
z fB(z) dz
Median:
Med[Z] : P(Z ≤ Med[Z]) = P(Z  Med[Z]) = Q0.5[Z]
Quantiles:
Qp[Z] : P(Z ≤ Qp[Z]) = p and P(Z  Qp[Z]) = 1 − p
Mode:
Mode[A] = arg max
zi ∈ΩA
PA(zi ) , Mode[B] = arg max
z∈ΩB
fB(z)
Andreas Scheidegger Univariate Random Variables 5
Characteristics of Random Variables
Measures of Location
Expected value of a function of a RV:
E[g(A)] =
z∈ΩA
g(z)PA(z)
E[g(B)] =
ΩB
g(z)fB(z) dz
Andreas Scheidegger Univariate Random Variables 6
Characteristics of Random Variables
Measures of Location
Expected value of a function of a RV:
E[g(A)] =
z∈ΩA
g(z)PA(z)
E[g(B)] =
ΩB
g(z)fB(z) dz
Attention!
E[g(X)] = g (E[X])
Andreas Scheidegger Univariate Random Variables 6
Characteristics of Random Variables
Measures of Extension
Variance:
Var[Z] = E Z − E[Z]
2
Standard Deviation:
SD[Z] = Var[Z]
Inter-Quantile Range:
QRp[Z] = Q(1+p)/2[Z] − Q(1−p)/2[Z]
Andreas Scheidegger Univariate Random Variables 7
Characteristics of Random Variables
E[aZ + b] = a E[Z] + b
E[Z1 ± Z2] = E[Z1] ± E[Z2]
Var[Z] = E[Z2
] − E[Z]2
Var[aZ + b] = a2
Var[Z]
Only if Z1 and Z2 are independent:
Var[Z1 ± Z2] = Var[Z1] + Var[Z2]
Andreas Scheidegger Univariate Random Variables 8
Multivariate random variables

A
Andreas Scheidegger Multivariate Random Variables 9
Joint distribution
discrete RV:
PA,B(a, b) = PA|B(a|b) · PB(b) = PB|A(b|a) · PA(a)
E.g.: PA,B(3, 1) : Probability to obtain ai = 3 and bi = 1.
Andreas Scheidegger Multivariate Random Variables 10
Joint distribution
discrete RV:
PA,B(a, b) = PA|B(a|b) · PB(b) = PB|A(b|a) · PA(a)
E.g.: PA,B(3, 1) : Probability to obtain ai = 3 and bi = 1.
continous RV:
fA,B(a, b) = fA|B(a|b) · fB(b) = fB|A(b|a) · fA(a)
E.g.: fA,B(3, 1) : proportional to the probability to obtain a
realization close to 3 and 1.
Andreas Scheidegger Multivariate Random Variables 10
Conditional Distributions
Discrete RV:
PA|B(a|b) =
PA,B(a, b)
PB(b)
Continuous RV:
fA|B(a|b) =
fA,B(a, b)
fB(b)
Andreas Scheidegger Multivariate Random Variables 11
Marginal distribution
Discrete random variables:
PA(a) =
b∈ΩB
PA,B(a, b)
Andreas Scheidegger Multivariate Random Variables 12
Marginal distribution
Discrete random variables:
PA(a) =
b∈ΩB
PA,B(a, b)
Continuous random variables:
fA(a) =
ΩB
fA,B(a, b) db
Andreas Scheidegger Multivariate Random Variables 12
Independence
Definition:
FA,B(a, b) = FA(a) · FB(b)
Discrete random variables:
PA,B(a, b) = PA(a) · PB(b)
Continuous random variables:
fA,B(a, b) = fA(a) · fB(b)
Andreas Scheidegger Multivariate Random Variables 13
Bayes’ Theorem1
Discrete random variables
Because
PA|B(a|b)PB(b) = PB|A(b|a)PA(a)
we can write
PA|B(a|b) =
PB|A(b|a)PA(a)
PB(b)
=
PB|A(b|a)PA(a)
a ∈ΩA
PB|A(b|a )PA(a )
1
Bayes’ Theorem as we know it today was actually formulated by P. Laplace
in 1774 and not by T. Bayes.
Andreas Scheidegger Multivariate Random Variables 14
Bayes’ Theorem
Continuous random variables
fA|B(a|b) =
fB|A(b|a)fA(a)
fB(b)
=
fB|A(b|a)fA(a)
fB|A(b|a )fA(a ) da
Andreas Scheidegger Multivariate Random Variables 15
Characteristics of Random Variables
Dependencies
Variance-Covariance Matrix:
Var[Z] = E Z − E[Z] Z − E[Z]
T
Individual Covariances:
Cov[Zi , Zj] = E Zi − E[Zi ] Zj − E[Zj] = Var[Z]i,j
Correlation Matrix:
Cor[Z]i,j =
Cov[Zi , Zj]
Var[Zi ] · Var[Zj]
Andreas Scheidegger Multivariate Random Variables 16
Correlation
Correlation measures only linear dependencies!
Figure: Several sets of (x, y) points, with the correlation coefficient of x
and y for each set. Source: Wikipedia.
Andreas Scheidegger Multivariate Random Variables 17
Short Notation
Function argument corresponds to RV
PA(a), PB|A(b|a) ←→ P(a), P(b|a)
fB(b), fA|B(a|b) ←→ f (b), f (a|b) or p(b), p(a|b)
Andreas Scheidegger Notation 18
Short Notation
Function argument corresponds to RV
PA(a), PB|A(b|a) ←→ P(a), P(b|a)
fB(b), fA|B(a|b) ←→ f (b), f (a|b) or p(b), p(a|b)
Example:
fX1|X2,X3
(x1|x2, x3) =
fX2|X1
(x2|x1)fX1|X3
(x1|x3)
fX2 (x2)
p(x1|x2, x3) =
p(x2|x1)p(x1|x3)
p(x2)
Andreas Scheidegger Notation 18
Directed Acyclic Graphs
Visualize independence structure of RV
A
B
DC
Andreas Scheidegger Notation 19
Directed Acyclic Graphs
Visualize independence structure of RV
A
B
DC
p(A)
p(B | A)
p(C | A, B)
p(D | B)
e.g. A and D are conditionally
independent. joint distribution:
p(A, B, C, D) =
p(A) p(B | A) p(C | A, B) p(D | B)
Andreas Scheidegger Notation 19
Normal distribution
Andreas Scheidegger Normal distributions 20
Central Limit Theorem
Lets X1, X2, . . . be independent and identically distributed RVs
with mean µ and a finite variance σ2. Further we define
Sn = X1 + X2 + . . . + Xn, that has a mean nµ and variance nσ2.
Then the standardized RV
Zn =
Sn − nµ
√
nσ
is standard normal distributed for n → ∞.
Andreas Scheidegger Normal distributions 21
Central Limit Theorem Example
n = 1
Density
−2 −1 0 1 2
0.00.40.8
n = 2
Density
−2 −1 0 1 2
0.00.30.6
n = 3
Density
−2 −1 0 1 2
0.00.30.6
n = 4
Density
−2 −1 0 1 2
0.00.20.4
n = 5
Density
−2 −1 0 1 2
0.00.20.4
n = 6
Density
−2 −1 0 1 2
0.00.20.4
n = 7
Density
−2 −1 0 1 2
0.00.20.4
n = 8
Density
−2 −1 0 1 2
0.00.20.4
n = 9
Density
−2 −1 0 1 2
0.00.20.4
n = 10
Density
−2 −1 0 1 2
0.00.20.4
n = 11
Density
−2 −1 0 1 2
0.00.20.4
n = 12
Density
−2 −1 0 1 2
0.00.20.4
Andreas Scheidegger Normal distributions 22
Relationships of Univariate Distributions
Figure 1. Univariate distribution relationships.
The American Statistician, February 2008, Vol. 62, No. 1 47
Downloadedby[Lib4RI]at02:2428May2013
at02:2428May2013
From: Leemis, L. M. and McQueston, J. T. (2008) Univariate distribution
relationships. The American Statistician, 62(1), 45–53. → Link
Andreas Scheidegger Normal distributions 23
Multivariate Normal Distribution
Density of a multivariate Normal distribution of dimension n with a
mean vector µ and a variance-covariance matrix Σ:
Z ∼ N(µ, Σ)
fN(µ,σ,R)(z) =
1
(2π)n/2
1
| Σ |1/2
exp −
1
2
(z − µ)T
Σ−1
(z − µ)
Andreas Scheidegger Normal distributions 24
Multivariate Normal Distribution
Properties
All marginals are normal distributed
Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i )
Andreas Scheidegger Normal distributions 25
Multivariate Normal Distribution
Properties
All marginals are normal distributed
Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i )
Linear transformation:
Z ∼ N(µ, Σ) ⇒ AZ + b ∼ N Aµ + b, AΣAT
Andreas Scheidegger Normal distributions 25
Multivariate Normal Distribution
Properties
All marginals are normal distributed
Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i )
Linear transformation:
Z ∼ N(µ, Σ) ⇒ AZ + b ∼ N Aµ + b, AΣAT
Conditional distribution:
Z =
X
Y
∼ N
µX
µY
,
ΣX,X ΣX,Y
ΣT
X,Y ΣY,Y
⇒ X | Y (y) ∼ N µX + ΣX,YΣ−1
Y,Y(y − µY), ΣX,X − ΣX,YΣ−1
Y,YΣT
X,Y
Andreas Scheidegger Normal distributions 25
Further Generalization
one-dimensional
n-dimensional

A
what’s next?
Andreas Scheidegger Random Processes 26
Discrete random process
“Random vectors with infinity large number of elements”
(0.11, 10.78, -10.24, -3.90, 5.91, ...)
(-1.11, -4.06, -8.64, -0.92, -2.27, ...)
(0.76, -8.54, 0.81, 2.03, 12.9, ...)
Andreas Scheidegger Random Processes 27
Continous random processes
“Random functions”
Andreas Scheidegger Random Processes 28
What is a Probability?
Interpretation of probabilities
1. The probability for “head” is 1/2.
2. The probability that it rains tomorrow is 30%.
Frequentist Subjective
Other probability interpretations:
→ http://www.webcitation.org/6YupVo9zG
Andreas Scheidegger Interpretation 29
What is a Probability?
Interpretation of probabilities
1. The probability for “head” is 1/2.
2. The probability that it rains tomorrow is 30%.
Frequentist
1. The frequency that “head”
occurs if the random
experiment is repeated.
Subjective
1. Somebody’s belief that a
coin toss results in “head”,
given his/her experience.
Other probability interpretations:
→ http://www.webcitation.org/6YupVo9zG
Andreas Scheidegger Interpretation 29
What is a Probability?
Interpretation of probabilities
1. The probability for “head” is 1/2.
2. The probability that it rains tomorrow is 30%.
Frequentist
1. The frequency that “head”
occurs if the random
experiment is repeated.
2. “Rain tomorrow” is not a
repeatable experiment
Subjective
1. Somebody’s belief that a
coin toss results in “head”,
given his/her experience.
2. Somebody’s belief that it
rains tomorrow, given
his/her experience.
Other probability interpretations:
→ http://www.webcitation.org/6YupVo9zG
Andreas Scheidegger Interpretation 29
Summary
joint = conditional x marginal
f (a, b) = f (a|b) f (b) = f (b|a) f (a)
Marginals:
f (a) = f (a, b) db = f (a|b) f (b) db
More information in Appendix A.2 – A.5.
Andreas Scheidegger Summary 30
Common distributions
Andreas Scheidegger Summary 31
Implemented distribution in R
For all distributions four functions are implemented:
d__(x, ...) pdf evaluated at x
p__(x, ...) cdf evaluated at x
q__(p, ...) p-th quantile
r__(n, ...) sample n random numbers
beta *beta binomial *binom
Cauchy *cauchy chi-squared *chisq
exponential *exp F *f
gamma *gamma geometric *geom
hypergeometric *hyper log-normal *lnorm
multinomial *multinom negative binomial *nbinom
normal *norm Poisson *pois
Student’s t *t uniform *unif
Weibull *weibull
Andreas Scheidegger Summary 32
Normal Distribution
Density
Z ∼ N(µ, σ) fN(µ,σ)(z) =
1
σ
√
2π
exp −
(z − µ)2
2σ2
−3 −2 −1 0 1 2 3
012345
Normal with mean=0
z
f
sd = 0.1
sd = 0.25
sd = 0.5
sd = 1
sd = 2
sd = 4
−3 −2 −1 0 1 2 3
0.00.20.40.60.81.0
Normal with mean=0
z
F
sd = 0.1
sd = 0.25
sd = 0.5
sd = 1
sd = 2
sd = 4
Andreas Scheidegger Summary 33
Normal Distribution
Properties
E N(µ, σ) = Mode N(µ, σ) = Med N(µ, σ) = µ
SD N(µ, σ) = σ
Central limit theorem:
Lets X1, X2, . . . be independent and identically distributed RVs
with mean µ and a finite variance σ2. Further we define
Sn = X1 + X2 + . . . + Xn, that has a mean nµ and variance nσ2.
Then the standardized RV
Zn =
Sn − nµ
√
nσ
is standard normal distributed for n → ∞.
Andreas Scheidegger Summary 34
Lognormal Distribution
Definition:
Z = exp(X) , X ∼ N(m, s)
Density:
Z ∼ LN(µ, σ)
fLN(µ,σ)(z) =



1
√
2π
1
sz
exp





−
1
2
log
z
µ
+
s2
2
2
s2





for z  0
0 for z ≤ 0
with
s = log 1 +
σ2
µ2
Andreas Scheidegger Summary 35
Lognormal Distribution
0.0 0.5 1.0 1.5 2.0 2.5 3.0
012345
Lognormal with mean=1
z
f
sd = 0.1
sd = 0.25
sd = 0.5
sd = 1
sd = 2
sd = 4
0.0 0.5 1.0 1.5 2.0 2.5 3.0
0.00.20.40.60.81.0
Lognormal with mean=1
z
F
sd = 0.1
sd = 0.25
sd = 0.5
sd = 1
sd = 2
sd = 4
Andreas Scheidegger Summary 36
Lognormal Distribution
Properties
E LN(µ, σ) = µ
Mode LN(µ, σ) =
µ
1 +
σ2
µ2
3
2
Med LN(µ, σ) =
µ
1 +
σ2
µ2
SD LN(µ, σ) = σ
Andreas Scheidegger Summary 37
Lognormal Distribution
R implementation
Attention: The lognormal distribution in R is defined with m and s
(the mean and standard deviation of X)!
The code below computes the arguments if mean µ and standard
deviation σ are given:
## conversion , ’mu ’ and ’sigma ’ given
meanlog - log(mu) - 0.5*log(1 + (sigma/mu )^2)
sdlog - sqrt(log(1 + sigma ^2/(mu ^2)))
## generate 1000 random samples
rlnorm (1000 , meanlog=meanlog , sdlog=sdlog)
Andreas Scheidegger Summary 38
χ2
Distribution
Definition:
Z =
n
i=1
X2
i , Xi ∼ N(0, 1)
Density:
Z ∼ χ2
n fχ2
n
(z) =
z(n−2)/2 exp(−z/2)
2n/2 Γ(n/2)
Andreas Scheidegger Summary 39
χ2
Distribution
0 2 4 6 8 10 12 14
0.00.10.20.30.40.50.6
χ2
z
f
df = 1
df = 2
df = 3
df = 4
df = 5
df = 10
0 2 4 6 8 10 12 14
0.00.20.40.60.81.0
χ2
z
F
df = 1
df = 2
df = 3
df = 4
df = 5
df = 10
Andreas Scheidegger Summary 40
χ2
Distribution
Properties
E χ2
n = n
Mode χ2
n = n − 2 for n ≥ 2
SD χ2
n =
√
2n
Andreas Scheidegger Summary 41
F Distribution
Definition:
Z =
X
n
Y
m
, X ∼ χ2
n , Y ∼ χ2
m
Density:
Z ∼ Fn,m fFn,m (z) =
Γ (n + m)/2 (n/m)n/2 z(n−2)/2
Γ n/2 Γ m/2
Andreas Scheidegger Summary 42
F Distribution
0 1 2 3 4
0.00.20.40.60.81.01.2
F
z
f
df1 = 2 df2 = 10
df1 = 3 df2 = 10
df1 = 5 df2 = 10
df1 = 5 df2 = 100
0 1 2 3 4
0.00.20.40.60.81.0
F
z
F
df1 = 2 df2 = 10
df1 = 3 df2 = 10
df1 = 5 df2 = 10
df1 = 5 df2 = 100
Andreas Scheidegger Summary 43
F Distribution
Properties
E Fn,m =
m
m − 2
for m  2
Mode Fn,m =
m(n − 2)
n(m + 2)
for n  2
SD Fn,m =
2m2(n + m − 2)
n(m − 2)2(m − 4)
for m  4
Andreas Scheidegger Summary 44
t Distribution
Definition:
Z =
X
Y
n
, X ∼ N(0, 1) , Y ∼ χ2
n
Density:
Z ∼ tn ftn (z) =
Γ (n + 1)/2
√
π n Γ n/2 (1 + z2/n)(n+1)/2
Andreas Scheidegger Summary 45

More Related Content

What's hot

Model Selection with Piecewise Regular Gauges
Model Selection with Piecewise Regular GaugesModel Selection with Piecewise Regular Gauges
Model Selection with Piecewise Regular GaugesGabriel Peyré
 
Signal Processing Course : Convex Optimization
Signal Processing Course : Convex OptimizationSignal Processing Course : Convex Optimization
Signal Processing Course : Convex OptimizationGabriel Peyré
 
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...Leo Asselborn
 
Slides: Jeffreys centroids for a set of weighted histograms
Slides: Jeffreys centroids for a set of weighted histogramsSlides: Jeffreys centroids for a set of weighted histograms
Slides: Jeffreys centroids for a set of weighted histogramsFrank Nielsen
 
Regularized Estimation of Spatial Patterns
Regularized Estimation of Spatial PatternsRegularized Estimation of Spatial Patterns
Regularized Estimation of Spatial PatternsWen-Ting Wang
 
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...Gabriel Peyré
 
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse ProblemsLow Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse ProblemsGabriel Peyré
 
A sharp nonlinear Hausdorff-Young inequality for small potentials
A sharp nonlinear Hausdorff-Young inequality for small potentialsA sharp nonlinear Hausdorff-Young inequality for small potentials
A sharp nonlinear Hausdorff-Young inequality for small potentialsVjekoslavKovac1
 
Mesh Processing Course : Active Contours
Mesh Processing Course : Active ContoursMesh Processing Course : Active Contours
Mesh Processing Course : Active ContoursGabriel Peyré
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidelarunsmm
 
Scattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysisScattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysisVjekoslavKovac1
 
Multilinear singular integrals with entangled structure
Multilinear singular integrals with entangled structureMultilinear singular integrals with entangled structure
Multilinear singular integrals with entangled structureVjekoslavKovac1
 
MLHEP 2015: Introductory Lecture #1
MLHEP 2015: Introductory Lecture #1MLHEP 2015: Introductory Lecture #1
MLHEP 2015: Introductory Lecture #1arogozhnikov
 
accurate ABC Oliver Ratmann
accurate ABC Oliver Ratmannaccurate ABC Oliver Ratmann
accurate ABC Oliver Ratmannolli0601
 
M. Dimitrijević, Noncommutative models of gauge and gravity theories
M. Dimitrijević, Noncommutative models of gauge and gravity theoriesM. Dimitrijević, Noncommutative models of gauge and gravity theories
M. Dimitrijević, Noncommutative models of gauge and gravity theoriesSEENET-MTP
 
GradStudentSeminarSept30
GradStudentSeminarSept30GradStudentSeminarSept30
GradStudentSeminarSept30Ryan White
 
Boundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductBoundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductVjekoslavKovac1
 

What's hot (20)

Model Selection with Piecewise Regular Gauges
Model Selection with Piecewise Regular GaugesModel Selection with Piecewise Regular Gauges
Model Selection with Piecewise Regular Gauges
 
Signal Processing Course : Convex Optimization
Signal Processing Course : Convex OptimizationSignal Processing Course : Convex Optimization
Signal Processing Course : Convex Optimization
 
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
Slides: Jeffreys centroids for a set of weighted histograms
Slides: Jeffreys centroids for a set of weighted histogramsSlides: Jeffreys centroids for a set of weighted histograms
Slides: Jeffreys centroids for a set of weighted histograms
 
Regularized Estimation of Spatial Patterns
Regularized Estimation of Spatial PatternsRegularized Estimation of Spatial Patterns
Regularized Estimation of Spatial Patterns
 
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...
Low Complexity Regularization of Inverse Problems - Course #3 Proximal Splitt...
 
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse ProblemsLow Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
 
A sharp nonlinear Hausdorff-Young inequality for small potentials
A sharp nonlinear Hausdorff-Young inequality for small potentialsA sharp nonlinear Hausdorff-Young inequality for small potentials
A sharp nonlinear Hausdorff-Young inequality for small potentials
 
Mesh Processing Course : Active Contours
Mesh Processing Course : Active ContoursMesh Processing Course : Active Contours
Mesh Processing Course : Active Contours
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Scattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysisScattering theory analogues of several classical estimates in Fourier analysis
Scattering theory analogues of several classical estimates in Fourier analysis
 
Multilinear singular integrals with entangled structure
Multilinear singular integrals with entangled structureMultilinear singular integrals with entangled structure
Multilinear singular integrals with entangled structure
 
MLHEP 2015: Introductory Lecture #1
MLHEP 2015: Introductory Lecture #1MLHEP 2015: Introductory Lecture #1
MLHEP 2015: Introductory Lecture #1
 
accurate ABC Oliver Ratmann
accurate ABC Oliver Ratmannaccurate ABC Oliver Ratmann
accurate ABC Oliver Ratmann
 
M. Dimitrijević, Noncommutative models of gauge and gravity theories
M. Dimitrijević, Noncommutative models of gauge and gravity theoriesM. Dimitrijević, Noncommutative models of gauge and gravity theories
M. Dimitrijević, Noncommutative models of gauge and gravity theories
 
GradStudentSeminarSept30
GradStudentSeminarSept30GradStudentSeminarSept30
GradStudentSeminarSept30
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Boundedness of the Twisted Paraproduct
Boundedness of the Twisted ParaproductBoundedness of the Twisted Paraproduct
Boundedness of the Twisted Paraproduct
 

Similar to Review of probability calculus

Nonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodNonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodTasuku Soma
 
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Gabriel Peyré
 
Advance statistics 2
Advance statistics 2Advance statistics 2
Advance statistics 2Tim Arroyo
 
Divergence clustering
Divergence clusteringDivergence clustering
Divergence clusteringFrank Nielsen
 
Convergence of ABC methods
Convergence of ABC methodsConvergence of ABC methods
Convergence of ABC methodsChristian Robert
 
Modeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential EquationModeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential EquationMark Chang
 
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...Anti-differentiating approximation algorithms: A case study with min-cuts, sp...
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...David Gleich
 
Low Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsLow Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsGabriel Peyré
 
Localized methods for diffusions in large graphs
Localized methods for diffusions in large graphsLocalized methods for diffusions in large graphs
Localized methods for diffusions in large graphsDavid Gleich
 
NTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANsNTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANsMark Chang
 
Practical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentPractical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentRaphael Reitzig
 
ABC with Wasserstein distances
ABC with Wasserstein distancesABC with Wasserstein distances
ABC with Wasserstein distancesChristian Robert
 
Introduction to neural networks
Introduction to neural networks Introduction to neural networks
Introduction to neural networks Ahmad Hammoudeh
 

Similar to Review of probability calculus (20)

Nonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodNonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares Method
 
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
 
Advance statistics 2
Advance statistics 2Advance statistics 2
Advance statistics 2
 
Divergence clustering
Divergence clusteringDivergence clustering
Divergence clustering
 
Convergence of ABC methods
Convergence of ABC methodsConvergence of ABC methods
Convergence of ABC methods
 
Modeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential EquationModeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential Equation
 
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...Anti-differentiating approximation algorithms: A case study with min-cuts, sp...
Anti-differentiating approximation algorithms: A case study with min-cuts, sp...
 
Low Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsLow Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse Problems
 
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
 
Regression (I)
Regression (I)Regression (I)
Regression (I)
 
QMC: Transition Workshop - Density Estimation by Randomized Quasi-Monte Carlo...
QMC: Transition Workshop - Density Estimation by Randomized Quasi-Monte Carlo...QMC: Transition Workshop - Density Estimation by Randomized Quasi-Monte Carlo...
QMC: Transition Workshop - Density Estimation by Randomized Quasi-Monte Carlo...
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Shell theory
Shell theoryShell theory
Shell theory
 
Regression Analysis.pdf
Regression Analysis.pdfRegression Analysis.pdf
Regression Analysis.pdf
 
Localized methods for diffusions in large graphs
Localized methods for diffusions in large graphsLocalized methods for diffusions in large graphs
Localized methods for diffusions in large graphs
 
Lecture6 svdd
Lecture6 svddLecture6 svdd
Lecture6 svdd
 
NTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANsNTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANs
 
Practical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentPractical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient Apportionment
 
ABC with Wasserstein distances
ABC with Wasserstein distancesABC with Wasserstein distances
ABC with Wasserstein distances
 
Introduction to neural networks
Introduction to neural networks Introduction to neural networks
Introduction to neural networks
 

More from Andreas Scheidegger

Bayesian End-Member Mixing Model
Bayesian End-Member Mixing ModelBayesian End-Member Mixing Model
Bayesian End-Member Mixing ModelAndreas Scheidegger
 
Formulation of model likelihood functions
Formulation of model likelihood functionsFormulation of model likelihood functions
Formulation of model likelihood functionsAndreas Scheidegger
 
Recurrent Neuronal Network tailored for Weather Radar Nowcasting
Recurrent Neuronal Network tailored for Weather Radar NowcastingRecurrent Neuronal Network tailored for Weather Radar Nowcasting
Recurrent Neuronal Network tailored for Weather Radar NowcastingAndreas Scheidegger
 
Kalibrierung von Kanalnetzmodellen mit binären Messdaten
Kalibrierung von Kanalnetzmodellen mit binären MessdatenKalibrierung von Kanalnetzmodellen mit binären Messdaten
Kalibrierung von Kanalnetzmodellen mit binären MessdatenAndreas Scheidegger
 
Experimental design approach for optimal selection and placement of rain sensors
Experimental design approach for optimal selection and placement of rain sensorsExperimental design approach for optimal selection and placement of rain sensors
Experimental design approach for optimal selection and placement of rain sensorsAndreas Scheidegger
 
Bayesian assimilation of rainfall sensors with fundamentally different integr...
Bayesian assimilation of rainfall sensors with fundamentally different integr...Bayesian assimilation of rainfall sensors with fundamentally different integr...
Bayesian assimilation of rainfall sensors with fundamentally different integr...Andreas Scheidegger
 
New information sources for rain fields
New information sources for rain fieldsNew information sources for rain fields
New information sources for rain fieldsAndreas Scheidegger
 

More from Andreas Scheidegger (8)

Bayesian End-Member Mixing Model
Bayesian End-Member Mixing ModelBayesian End-Member Mixing Model
Bayesian End-Member Mixing Model
 
Sensitivity analysis
Sensitivity analysisSensitivity analysis
Sensitivity analysis
 
Formulation of model likelihood functions
Formulation of model likelihood functionsFormulation of model likelihood functions
Formulation of model likelihood functions
 
Recurrent Neuronal Network tailored for Weather Radar Nowcasting
Recurrent Neuronal Network tailored for Weather Radar NowcastingRecurrent Neuronal Network tailored for Weather Radar Nowcasting
Recurrent Neuronal Network tailored for Weather Radar Nowcasting
 
Kalibrierung von Kanalnetzmodellen mit binären Messdaten
Kalibrierung von Kanalnetzmodellen mit binären MessdatenKalibrierung von Kanalnetzmodellen mit binären Messdaten
Kalibrierung von Kanalnetzmodellen mit binären Messdaten
 
Experimental design approach for optimal selection and placement of rain sensors
Experimental design approach for optimal selection and placement of rain sensorsExperimental design approach for optimal selection and placement of rain sensors
Experimental design approach for optimal selection and placement of rain sensors
 
Bayesian assimilation of rainfall sensors with fundamentally different integr...
Bayesian assimilation of rainfall sensors with fundamentally different integr...Bayesian assimilation of rainfall sensors with fundamentally different integr...
Bayesian assimilation of rainfall sensors with fundamentally different integr...
 
New information sources for rain fields
New information sources for rain fieldsNew information sources for rain fields
New information sources for rain fields
 

Recently uploaded

Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptxAlMamun560346
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...Lokesh Kothari
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...chandars293
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxRizalinePalanog2
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 

Recently uploaded (20)

Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 

Review of probability calculus

  • 1. Review of probability calculus June 11, 2017 Andreas Scheidegger Eawag: Swiss Federal Institute of Aquatic Science and Technology
  • 2. Random variables (RV) “Mathematical machines that generate numbers”
  • 3. Completely described by the cumulative probability distribution function (cdf) or the probability distribution/density function (pdf). Some properties can be described by measures such as mean, variance, mode, . . . Andreas Scheidegger Univariate Random Variables 1
  • 4. Probability Distribution/Density Function (pdf) PA fB z1 z2 zn zzrzl Discrete RV Probability to obtain a certain output. Continuous RV Proportional to the probability to obtain an output close to a certain value. Andreas Scheidegger Univariate Random Variables 2
  • 5. Cumulative Distribution Function (cdf) FA FB z1 z2 zn zzrzl 0 1 0 1 Discrete and continous RV Probability to obtain an output equal or smaller than a certain value. Andreas Scheidegger Univariate Random Variables 3
  • 6. cdf and pdf Discrete RVs Distribution function: FA(z) = P(A ≤ z) Probability distribution: PA(zi ) for zi ∈ ΩA Continous RVs Distribution function: FB(z) = P(B ≤ z) Probability density: fB(z) = d dz FB(z) P(B ∈ [z1, z2]) = z2 z1 fB(z) dz P(B ∈ [z, z + ∆]) ≈ ∆ · fB(z) Andreas Scheidegger Univariate Random Variables 4
  • 7. Characteristics of Random Variables Measures of Location Expected value: E[A] = z∈ΩA z PA(z) , E[B] = ΩB z fB(z) dz Median: Med[Z] : P(Z ≤ Med[Z]) = P(Z Med[Z]) = Q0.5[Z] Quantiles: Qp[Z] : P(Z ≤ Qp[Z]) = p and P(Z Qp[Z]) = 1 − p Mode: Mode[A] = arg max zi ∈ΩA PA(zi ) , Mode[B] = arg max z∈ΩB fB(z) Andreas Scheidegger Univariate Random Variables 5
  • 8. Characteristics of Random Variables Measures of Location Expected value of a function of a RV: E[g(A)] = z∈ΩA g(z)PA(z) E[g(B)] = ΩB g(z)fB(z) dz Andreas Scheidegger Univariate Random Variables 6
  • 9. Characteristics of Random Variables Measures of Location Expected value of a function of a RV: E[g(A)] = z∈ΩA g(z)PA(z) E[g(B)] = ΩB g(z)fB(z) dz Attention! E[g(X)] = g (E[X]) Andreas Scheidegger Univariate Random Variables 6
  • 10. Characteristics of Random Variables Measures of Extension Variance: Var[Z] = E Z − E[Z] 2 Standard Deviation: SD[Z] = Var[Z] Inter-Quantile Range: QRp[Z] = Q(1+p)/2[Z] − Q(1−p)/2[Z] Andreas Scheidegger Univariate Random Variables 7
  • 11. Characteristics of Random Variables E[aZ + b] = a E[Z] + b E[Z1 ± Z2] = E[Z1] ± E[Z2] Var[Z] = E[Z2 ] − E[Z]2 Var[aZ + b] = a2 Var[Z] Only if Z1 and Z2 are independent: Var[Z1 ± Z2] = Var[Z1] + Var[Z2] Andreas Scheidegger Univariate Random Variables 8
  • 13. Andreas Scheidegger Multivariate Random Variables 9
  • 14. Joint distribution discrete RV: PA,B(a, b) = PA|B(a|b) · PB(b) = PB|A(b|a) · PA(a) E.g.: PA,B(3, 1) : Probability to obtain ai = 3 and bi = 1. Andreas Scheidegger Multivariate Random Variables 10
  • 15. Joint distribution discrete RV: PA,B(a, b) = PA|B(a|b) · PB(b) = PB|A(b|a) · PA(a) E.g.: PA,B(3, 1) : Probability to obtain ai = 3 and bi = 1. continous RV: fA,B(a, b) = fA|B(a|b) · fB(b) = fB|A(b|a) · fA(a) E.g.: fA,B(3, 1) : proportional to the probability to obtain a realization close to 3 and 1. Andreas Scheidegger Multivariate Random Variables 10
  • 16. Conditional Distributions Discrete RV: PA|B(a|b) = PA,B(a, b) PB(b) Continuous RV: fA|B(a|b) = fA,B(a, b) fB(b) Andreas Scheidegger Multivariate Random Variables 11
  • 17. Marginal distribution Discrete random variables: PA(a) = b∈ΩB PA,B(a, b) Andreas Scheidegger Multivariate Random Variables 12
  • 18. Marginal distribution Discrete random variables: PA(a) = b∈ΩB PA,B(a, b) Continuous random variables: fA(a) = ΩB fA,B(a, b) db Andreas Scheidegger Multivariate Random Variables 12
  • 19. Independence Definition: FA,B(a, b) = FA(a) · FB(b) Discrete random variables: PA,B(a, b) = PA(a) · PB(b) Continuous random variables: fA,B(a, b) = fA(a) · fB(b) Andreas Scheidegger Multivariate Random Variables 13
  • 20. Bayes’ Theorem1 Discrete random variables Because PA|B(a|b)PB(b) = PB|A(b|a)PA(a) we can write PA|B(a|b) = PB|A(b|a)PA(a) PB(b) = PB|A(b|a)PA(a) a ∈ΩA PB|A(b|a )PA(a ) 1 Bayes’ Theorem as we know it today was actually formulated by P. Laplace in 1774 and not by T. Bayes. Andreas Scheidegger Multivariate Random Variables 14
  • 21. Bayes’ Theorem Continuous random variables fA|B(a|b) = fB|A(b|a)fA(a) fB(b) = fB|A(b|a)fA(a) fB|A(b|a )fA(a ) da Andreas Scheidegger Multivariate Random Variables 15
  • 22. Characteristics of Random Variables Dependencies Variance-Covariance Matrix: Var[Z] = E Z − E[Z] Z − E[Z] T Individual Covariances: Cov[Zi , Zj] = E Zi − E[Zi ] Zj − E[Zj] = Var[Z]i,j Correlation Matrix: Cor[Z]i,j = Cov[Zi , Zj] Var[Zi ] · Var[Zj] Andreas Scheidegger Multivariate Random Variables 16
  • 23. Correlation Correlation measures only linear dependencies! Figure: Several sets of (x, y) points, with the correlation coefficient of x and y for each set. Source: Wikipedia. Andreas Scheidegger Multivariate Random Variables 17
  • 24. Short Notation Function argument corresponds to RV PA(a), PB|A(b|a) ←→ P(a), P(b|a) fB(b), fA|B(a|b) ←→ f (b), f (a|b) or p(b), p(a|b) Andreas Scheidegger Notation 18
  • 25. Short Notation Function argument corresponds to RV PA(a), PB|A(b|a) ←→ P(a), P(b|a) fB(b), fA|B(a|b) ←→ f (b), f (a|b) or p(b), p(a|b) Example: fX1|X2,X3 (x1|x2, x3) = fX2|X1 (x2|x1)fX1|X3 (x1|x3) fX2 (x2) p(x1|x2, x3) = p(x2|x1)p(x1|x3) p(x2) Andreas Scheidegger Notation 18
  • 26. Directed Acyclic Graphs Visualize independence structure of RV A B DC Andreas Scheidegger Notation 19
  • 27. Directed Acyclic Graphs Visualize independence structure of RV A B DC p(A) p(B | A) p(C | A, B) p(D | B) e.g. A and D are conditionally independent. joint distribution: p(A, B, C, D) = p(A) p(B | A) p(C | A, B) p(D | B) Andreas Scheidegger Notation 19
  • 28. Normal distribution Andreas Scheidegger Normal distributions 20
  • 29. Central Limit Theorem Lets X1, X2, . . . be independent and identically distributed RVs with mean µ and a finite variance σ2. Further we define Sn = X1 + X2 + . . . + Xn, that has a mean nµ and variance nσ2. Then the standardized RV Zn = Sn − nµ √ nσ is standard normal distributed for n → ∞. Andreas Scheidegger Normal distributions 21
  • 30. Central Limit Theorem Example n = 1 Density −2 −1 0 1 2 0.00.40.8 n = 2 Density −2 −1 0 1 2 0.00.30.6 n = 3 Density −2 −1 0 1 2 0.00.30.6 n = 4 Density −2 −1 0 1 2 0.00.20.4 n = 5 Density −2 −1 0 1 2 0.00.20.4 n = 6 Density −2 −1 0 1 2 0.00.20.4 n = 7 Density −2 −1 0 1 2 0.00.20.4 n = 8 Density −2 −1 0 1 2 0.00.20.4 n = 9 Density −2 −1 0 1 2 0.00.20.4 n = 10 Density −2 −1 0 1 2 0.00.20.4 n = 11 Density −2 −1 0 1 2 0.00.20.4 n = 12 Density −2 −1 0 1 2 0.00.20.4 Andreas Scheidegger Normal distributions 22
  • 31. Relationships of Univariate Distributions Figure 1. Univariate distribution relationships. The American Statistician, February 2008, Vol. 62, No. 1 47 Downloadedby[Lib4RI]at02:2428May2013 at02:2428May2013 From: Leemis, L. M. and McQueston, J. T. (2008) Univariate distribution relationships. The American Statistician, 62(1), 45–53. → Link Andreas Scheidegger Normal distributions 23
  • 32. Multivariate Normal Distribution Density of a multivariate Normal distribution of dimension n with a mean vector µ and a variance-covariance matrix Σ: Z ∼ N(µ, Σ) fN(µ,σ,R)(z) = 1 (2π)n/2 1 | Σ |1/2 exp − 1 2 (z − µ)T Σ−1 (z − µ) Andreas Scheidegger Normal distributions 24
  • 33. Multivariate Normal Distribution Properties All marginals are normal distributed Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i ) Andreas Scheidegger Normal distributions 25
  • 34. Multivariate Normal Distribution Properties All marginals are normal distributed Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i ) Linear transformation: Z ∼ N(µ, Σ) ⇒ AZ + b ∼ N Aµ + b, AΣAT Andreas Scheidegger Normal distributions 25
  • 35. Multivariate Normal Distribution Properties All marginals are normal distributed Z ∼ N(µ, Σ) ⇒ Zi ∼ N(µi , Σi,i ) Linear transformation: Z ∼ N(µ, Σ) ⇒ AZ + b ∼ N Aµ + b, AΣAT Conditional distribution: Z = X Y ∼ N µX µY , ΣX,X ΣX,Y ΣT X,Y ΣY,Y ⇒ X | Y (y) ∼ N µX + ΣX,YΣ−1 Y,Y(y − µY), ΣX,X − ΣX,YΣ−1 Y,YΣT X,Y Andreas Scheidegger Normal distributions 25
  • 38. what’s next? Andreas Scheidegger Random Processes 26
  • 39. Discrete random process “Random vectors with infinity large number of elements” (0.11, 10.78, -10.24, -3.90, 5.91, ...) (-1.11, -4.06, -8.64, -0.92, -2.27, ...) (0.76, -8.54, 0.81, 2.03, 12.9, ...) Andreas Scheidegger Random Processes 27
  • 40. Continous random processes “Random functions” Andreas Scheidegger Random Processes 28
  • 41. What is a Probability? Interpretation of probabilities 1. The probability for “head” is 1/2. 2. The probability that it rains tomorrow is 30%. Frequentist Subjective Other probability interpretations: → http://www.webcitation.org/6YupVo9zG Andreas Scheidegger Interpretation 29
  • 42. What is a Probability? Interpretation of probabilities 1. The probability for “head” is 1/2. 2. The probability that it rains tomorrow is 30%. Frequentist 1. The frequency that “head” occurs if the random experiment is repeated. Subjective 1. Somebody’s belief that a coin toss results in “head”, given his/her experience. Other probability interpretations: → http://www.webcitation.org/6YupVo9zG Andreas Scheidegger Interpretation 29
  • 43. What is a Probability? Interpretation of probabilities 1. The probability for “head” is 1/2. 2. The probability that it rains tomorrow is 30%. Frequentist 1. The frequency that “head” occurs if the random experiment is repeated. 2. “Rain tomorrow” is not a repeatable experiment Subjective 1. Somebody’s belief that a coin toss results in “head”, given his/her experience. 2. Somebody’s belief that it rains tomorrow, given his/her experience. Other probability interpretations: → http://www.webcitation.org/6YupVo9zG Andreas Scheidegger Interpretation 29
  • 44. Summary joint = conditional x marginal f (a, b) = f (a|b) f (b) = f (b|a) f (a) Marginals: f (a) = f (a, b) db = f (a|b) f (b) db More information in Appendix A.2 – A.5. Andreas Scheidegger Summary 30
  • 46. Implemented distribution in R For all distributions four functions are implemented: d__(x, ...) pdf evaluated at x p__(x, ...) cdf evaluated at x q__(p, ...) p-th quantile r__(n, ...) sample n random numbers beta *beta binomial *binom Cauchy *cauchy chi-squared *chisq exponential *exp F *f gamma *gamma geometric *geom hypergeometric *hyper log-normal *lnorm multinomial *multinom negative binomial *nbinom normal *norm Poisson *pois Student’s t *t uniform *unif Weibull *weibull Andreas Scheidegger Summary 32
  • 47. Normal Distribution Density Z ∼ N(µ, σ) fN(µ,σ)(z) = 1 σ √ 2π exp − (z − µ)2 2σ2 −3 −2 −1 0 1 2 3 012345 Normal with mean=0 z f sd = 0.1 sd = 0.25 sd = 0.5 sd = 1 sd = 2 sd = 4 −3 −2 −1 0 1 2 3 0.00.20.40.60.81.0 Normal with mean=0 z F sd = 0.1 sd = 0.25 sd = 0.5 sd = 1 sd = 2 sd = 4 Andreas Scheidegger Summary 33
  • 48. Normal Distribution Properties E N(µ, σ) = Mode N(µ, σ) = Med N(µ, σ) = µ SD N(µ, σ) = σ Central limit theorem: Lets X1, X2, . . . be independent and identically distributed RVs with mean µ and a finite variance σ2. Further we define Sn = X1 + X2 + . . . + Xn, that has a mean nµ and variance nσ2. Then the standardized RV Zn = Sn − nµ √ nσ is standard normal distributed for n → ∞. Andreas Scheidegger Summary 34
  • 49. Lognormal Distribution Definition: Z = exp(X) , X ∼ N(m, s) Density: Z ∼ LN(µ, σ) fLN(µ,σ)(z) =    1 √ 2π 1 sz exp      − 1 2 log z µ + s2 2 2 s2      for z 0 0 for z ≤ 0 with s = log 1 + σ2 µ2 Andreas Scheidegger Summary 35
  • 50. Lognormal Distribution 0.0 0.5 1.0 1.5 2.0 2.5 3.0 012345 Lognormal with mean=1 z f sd = 0.1 sd = 0.25 sd = 0.5 sd = 1 sd = 2 sd = 4 0.0 0.5 1.0 1.5 2.0 2.5 3.0 0.00.20.40.60.81.0 Lognormal with mean=1 z F sd = 0.1 sd = 0.25 sd = 0.5 sd = 1 sd = 2 sd = 4 Andreas Scheidegger Summary 36
  • 51. Lognormal Distribution Properties E LN(µ, σ) = µ Mode LN(µ, σ) = µ 1 + σ2 µ2 3 2 Med LN(µ, σ) = µ 1 + σ2 µ2 SD LN(µ, σ) = σ Andreas Scheidegger Summary 37
  • 52. Lognormal Distribution R implementation Attention: The lognormal distribution in R is defined with m and s (the mean and standard deviation of X)! The code below computes the arguments if mean µ and standard deviation σ are given: ## conversion , ’mu ’ and ’sigma ’ given meanlog - log(mu) - 0.5*log(1 + (sigma/mu )^2) sdlog - sqrt(log(1 + sigma ^2/(mu ^2))) ## generate 1000 random samples rlnorm (1000 , meanlog=meanlog , sdlog=sdlog) Andreas Scheidegger Summary 38
  • 53. χ2 Distribution Definition: Z = n i=1 X2 i , Xi ∼ N(0, 1) Density: Z ∼ χ2 n fχ2 n (z) = z(n−2)/2 exp(−z/2) 2n/2 Γ(n/2) Andreas Scheidegger Summary 39
  • 54. χ2 Distribution 0 2 4 6 8 10 12 14 0.00.10.20.30.40.50.6 χ2 z f df = 1 df = 2 df = 3 df = 4 df = 5 df = 10 0 2 4 6 8 10 12 14 0.00.20.40.60.81.0 χ2 z F df = 1 df = 2 df = 3 df = 4 df = 5 df = 10 Andreas Scheidegger Summary 40
  • 55. χ2 Distribution Properties E χ2 n = n Mode χ2 n = n − 2 for n ≥ 2 SD χ2 n = √ 2n Andreas Scheidegger Summary 41
  • 56. F Distribution Definition: Z = X n Y m , X ∼ χ2 n , Y ∼ χ2 m Density: Z ∼ Fn,m fFn,m (z) = Γ (n + m)/2 (n/m)n/2 z(n−2)/2 Γ n/2 Γ m/2 Andreas Scheidegger Summary 42
  • 57. F Distribution 0 1 2 3 4 0.00.20.40.60.81.01.2 F z f df1 = 2 df2 = 10 df1 = 3 df2 = 10 df1 = 5 df2 = 10 df1 = 5 df2 = 100 0 1 2 3 4 0.00.20.40.60.81.0 F z F df1 = 2 df2 = 10 df1 = 3 df2 = 10 df1 = 5 df2 = 10 df1 = 5 df2 = 100 Andreas Scheidegger Summary 43
  • 58. F Distribution Properties E Fn,m = m m − 2 for m 2 Mode Fn,m = m(n − 2) n(m + 2) for n 2 SD Fn,m = 2m2(n + m − 2) n(m − 2)2(m − 4) for m 4 Andreas Scheidegger Summary 44
  • 59. t Distribution Definition: Z = X Y n , X ∼ N(0, 1) , Y ∼ χ2 n Density: Z ∼ tn ftn (z) = Γ (n + 1)/2 √ π n Γ n/2 (1 + z2/n)(n+1)/2 Andreas Scheidegger Summary 45
  • 60. t Distribution −6 −4 −2 0 2 4 6 0.00.10.20.30.40.5 t z f df = 1 df = 2 df = 4 df = 10 df = 100 −6 −4 −2 0 2 4 6 0.00.20.40.60.81.0 t z F df = 1 df = 2 df = 4 df = 10 df = 100 Andreas Scheidegger Summary 46
  • 61. t Distribution Properties E tn = Mode tn = 0 for n 1 SD tn = n n − 2 for n 2 Andreas Scheidegger Summary 47
  • 62. Uniform Distribution Density Z ∼ U(zmin, zmax) fU(zmin,zmax) = 1 zmax − zmin −3 −2 −1 0 1 2 3 0.00.20.40.60.81.0 Uniform with mean=0 z f max = 1 max = 2 −3 −2 −1 0 1 2 3 0.00.20.40.60.81.0 Uniform with mean=0 z F max = 1 max = 2 Andreas Scheidegger Summary 48
  • 63. Uniform Distribution Properties E U(zmin, zmax) = zmin + zmax 2 Med U(zmin, zmax) = zmin + zmax 2 SD U(zmin, zmax) = zmax − zmin 2 √ 3 Andreas Scheidegger Summary 49