Algorithms for Uncertainty Quantification

Similar documents
Lecture 2: Repetition of probability theory and statistics

Appendix A : Introduction to Probability and stochastic processes

MA/ST 810 Mathematical-Statistical Modeling and Analysis of Complex Systems

Part IA Probability. Definitions. Based on lectures by R. Weber Notes taken by Dexter Chua. Lent 2015

1 Presessional Probability

Probability Theory for Machine Learning. Chris Cremer September 2015

Quick Tour of Basic Probability Theory and Linear Algebra

1.1 Review of Probability Theory

Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Random Variables. Random variables. A numerically valued map X of an outcome ω from a sample space Ω to the real line R

Chapter 2: Random Variables

Lecture 1: August 28

Probability. Paul Schrimpf. January 23, UBC Economics 326. Probability. Paul Schrimpf. Definitions. Properties. Random variables.

3 Multiple Discrete Random Variables

Probability and Distributions

Lecture 11. Probability Theory: an Overveiw

Review of Probability. CS1538: Introduction to Simulations

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Probability. Paul Schrimpf. January 23, Definitions 2. 2 Properties 3

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

EE4601 Communication Systems

Deep Learning for Computer Vision

Chapter 5 continued. Chapter 5 sections

Northwestern University Department of Electrical Engineering and Computer Science

Introduction to Stochastic Processes

MA 575 Linear Models: Cedric E. Ginestet, Boston University Revision: Probability and Linear Algebra Week 1, Lecture 2

Fundamentals. CS 281A: Statistical Learning Theory. Yangqing Jia. August, Based on tutorial slides by Lester Mackey and Ariel Kleiner

Random Variables and Their Distributions

Lecture 1: Review on Probability and Statistics

Review of Probability Theory

BASICS OF PROBABILITY

Basics on Probability. Jingrui He 09/11/2007

P (x). all other X j =x j. If X is a continuous random vector (see p.172), then the marginal distributions of X i are: f(x)dx 1 dx n

Bayesian statistics, simulation and software

Multivariate Random Variable

Probability Review. Chao Lan

1: PROBABILITY REVIEW

STAT Chapter 5 Continuous Distributions

Introduction to Statistical Inference Self-study

1 Probability theory. 2 Random variables and probability theory.

Introduction to Machine Learning

Lecture 2: Review of Probability

1 Review of Probability and Distributions

ENGG2430A-Homework 2

Random Variables. Cumulative Distribution Function (CDF) Amappingthattransformstheeventstotherealline.

Bivariate distributions

Part IA Probability. Theorems. Based on lectures by R. Weber Notes taken by Dexter Chua. Lent 2015

EE514A Information Theory I Fall 2013

Probability theory for Networks (Part 1) CS 249B: Science of Networks Week 02: Monday, 02/04/08 Daniel Bilar Wellesley College Spring 2008

STAT 430/510: Lecture 16

Lecture 3. Discrete Random Variables

CME 106: Review Probability theory

Perhaps the simplest way of modeling two (discrete) random variables is by means of a joint PMF, defined as follows.

Review: mostly probability and some statistics

Fundamental Tools - Probability Theory II

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

Introduction to Probability Theory

Chapter 2. Continuous random variables

PCMI Introduction to Random Matrix Theory Handout # REVIEW OF PROBABILITY THEORY. Chapter 1 - Events and Their Probabilities

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Problem Set 9 Fall 2007

Chapter 3, 4 Random Variables ENCS Probability and Stochastic Processes. Concordia University

2 (Statistics) Random variables

E X A M. Probability Theory and Stochastic Processes Date: December 13, 2016 Duration: 4 hours. Number of pages incl.

3. Probability and Statistics

Summary of basic probability theory Math 218, Mathematical Statistics D Joyce, Spring 2016

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

ECE 450 Homework #3. 1. Given the joint density function f XY (x,y) = 0.5 1<x<2, 2<y< <x<4, 2<y<3 0 else

Review (probability, linear algebra) CE-717 : Machine Learning Sharif University of Technology

Recitation 2: Probability

Probability Review. Yutian Li. January 18, Stanford University. Yutian Li (Stanford University) Probability Review January 18, / 27

Lecture 1. ABC of Probability

Continuous Random Variables

Formulas for probability theory and linear models SF2941

Lecture 6 Basic Probability

The Binomial distribution. Probability theory 2. Example. The Binomial distribution

Review (Probability & Linear Algebra)

[POLS 8500] Review of Linear Algebra, Probability and Information Theory

Statistical Methods in Particle Physics

Multiple Random Variables

Stochastic processes Lecture 1: Multiple Random Variables Ch. 5

Probability Theory and Simulation Methods

conditional cdf, conditional pdf, total probability theorem?

Covariance and Correlation Class 7, Jeremy Orloff and Jonathan Bloom

Probability theory basics

Chapter 4 Multiple Random Variables

Introduction to Machine Learning

1 Random Variable: Topics

M378K In-Class Assignment #1

Lecture 1. ABC of Probability

Preliminary Statistics. Lecture 3: Probability Models and Distributions

Introduction to Probability and Stocastic Processes - Part I

Discrete Random Variables

Random Variables. Lecture 6: E(X ), Var(X ), & Cov(X, Y ) Random Variables - Vocabulary. Random Variables, cont.

Review of probability

Lecture Notes 5 Convergence and Limit Theorems. Convergence with Probability 1. Convergence in Mean Square. Convergence in Probability, WLLN

01 Probability Theory and Statistics Review

Data Analysis and Monte Carlo Methods

1 Joint and marginal distributions

FE 5204 Stochastic Differential Equations

Transcription:

Algorithms for Uncertainty Quantification Tobias Neckel, Ionuț-Gabriel Farcaș Lehrstuhl Informatik V Summer Semester 2017

Lecture 2: Repetition of probability theory and statistics

Example: coin flip

Example Experiment 1 given a fair coin (heads and tails) flip it once Q: what is the probability of getting head/tail? Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 4

Example Experiment 1 given a fair coin (heads and tails) flip it once Q: what is the probability of getting head/tail? Answer possible outcomes: head, tail P(head) = P(tail) = 1/2 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 4

Example (cont d) Experiment 2 given two fair coins flip them twice Q: what is the probability of getting {(head, head),(tail, head)}? What about {(head,head),(head,tail)}? Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 5

Example (cont d) Experiment 2 given two fair coins flip them twice Q: what is the probability of getting {(head, head),(tail, head)}? What about {(head,head),(head,tail)}? Answer possible outcomes: (head, head), (tail, head), (head, tail), (tail, tail) P({(head,head),(tail,head)}) = 1/2 P({(head,head),(head,tail)}) = 1/2 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 5

Formal definition of probability

Two perspectives to probability Frequentist probability = frequency with which an event occurs if the experiment is repeated a large number of times ( ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 7

Two perspectives to probability Frequentist probability = frequency with which an event occurs if the experiment is repeated a large number of times ( ) Bayesian probability = distribution of subjective values constructed or updated as data is observed Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 7

Probability space A probability space is a triple (Ω,F,P), where Ω: sample space; set of all possible outcomes F : σ algebra; set of events s.t. each event is a set containing zero or more outcomes P : F [0,1] probability measure that satisfies: 1. P( ) = 0 2. P(Ω) = 1 3. if A i F and A i A j =, then P( i=1 A i) = i=1 P(A i) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 8

Coins flip example revised Let h := head, t:= tail Experiment 1 sample space Ω = {h,t} σ algebra F = {,{h},{t},{h,t}} events of interest A = {h}, B = {t} P(A ) = P(B) = 1/2 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 9

Coins flip example revised Let h := head, t:= tail Experiment 1 sample space Ω = {h,t} σ algebra F = {,{h},{t},{h,t}} events of interest A = {h}, B = {t} P(A ) = P(B) = 1/2 Experiment 2 sample space Ω = {(h,h),(t,h),(h,t),(t,t)} σ algebra F = {,(h,h),(h,t),(t,h),(t,t),{(h,h),(h,t),...},ω} events of interest A = {(h,h),(t,h)}, B = {(h,h),(h,t)} P(A ) = P(B) = 1/2 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 9

Univariate concepts

Univariate concepts: random variables A random variable is a function X : Ω R s.t. {ω Ω X(ω) x} F Example If, in Experiment 2 (two coins flip), X(ω) counts the number of tails, 0, ω = (h,h) 1, ω = (h,t) X(ω) = 1, ω = (t,h) 2, ω = (t,t) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 11

Univariate concepts: random variables A random variable is a function X : Ω R s.t. {ω Ω X(ω) x} F Example If, in Experiment 2 (two coins flip), X(ω) counts the number of tails, 0, ω = (h,h) 1, ω = (h,t) X(ω) = 1, ω = (t,h) 2, ω = (t,t) X is said to be discrete if it takes values in a countable subset {x 1,x 2,...} R; otherwise, it is said to be continuous Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 11

Univariate concepts: CDF Every random variable X has an associated cumulative distribution function (CDF) F X : R [0,1] F X = P(ω Ω X(ω) x) Often, the CDF is expressed as F X (x) = P{X x} Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 12

Univariate concepts: CDF Every random variable X has an associated cumulative distribution function (CDF) F X : R [0,1] F X = P(ω Ω X(ω) x) Often, the CDF is expressed as F X (x) = P{X x} Example 0, ω = (h,h) 1, ω = (h,t) If X(ω) = 1, ω = (t,h) 2, ω = (t,t) 0, x < 0 1/4, 0 x < 1, then F X = 3/4, 1 x < 2 1, x 2 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 12

Univariate concepts: PDF A random variable X is continuous if its CDF is absolutely continuous, i.e. F X (x) = x f X (s)ds, x R (1) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 13

Univariate concepts: PDF A random variable X is continuous if its CDF is absolutely continuous, i.e. F X (x) = x f X (s)ds, x R (1) From Equation 1, the derivative is called the probability density function (PDF) of X f X (x) = df X(x), f X : R [0, ) dx Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 13

Univariate concepts: PDF Properties of the PDF Let supp(f X ) = {x R : f X (x) 0} f X (x) 0, x supp(f X ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 14

Univariate concepts: PDF Properties of the PDF Let supp(f X ) = {x R : f X (x) 0} f X (x) 0, x supp(f X ) supp(f X ) f X(x)dx = 1 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 14

Univariate concepts: expectation, variance Let supp(f X ) = {x R : f X (x) 0} The expectation (mean value, first statistical moment) of a continuous random variable X with PDF f X is defined as µ := E[X] = xf X (x)dx, supp(f X ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 15

Univariate concepts: expectation, variance Let supp(f X ) = {x R : f X (x) 0} The expectation (mean value, first statistical moment) of a continuous random variable X with PDF f X is defined as µ := E[X] = xf X (x)dx, supp(f X ) The variance (density s variability, second central statistical moment) of a continuous random variable X with PDF f X is defined as σ 2 := Var(X) = (x E[X]) 2 f X (x)dx = E[X 2 ] E[X] 2 supp(f X ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 15

Univariate concepts: discrete random variables The probability mass function (PMF) of a discrete random variable X is given by f X (x) = P(X = x) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 16

Univariate concepts: discrete random variables The probability mass function (PMF) of a discrete random variable X is given by f X (x) = P(X = x) The (sample) mean ˆX and variance S 2 of a discrete random variable X with equiprobable realizations X 1,...,X n are ˆX = 1 n n X i, S 2 = 1 n 2 i=1 n 1 (X i ˆX) i=1 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 16

Example distributions Discrete distributions Binomial Poisson Bernoulli geometric... Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 17

Example distributions Discrete distributions Binomial Poisson Bernoulli geometric... Continuous distributions Normal (Gaussian) Uniform Beta Gamma... Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 17

Example continuous distributions: normal distribution The PDF of the normal distribution is f X : R [0, ), f X (x) = 1 σ 2π exp( (x µ)2 /2σ 2 ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 18

Example continuous distributions: normal distribution The PDF of the normal distribution is f X : R [0, ), f X (x) = 1 σ 2π exp( (x µ)2 /2σ 2 ) The notation X N (µ,σ 2 ) means that X is normally distributed with mean µ and variance σ Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 18

Example continuous distributions: normal distribution The PDF of the normal distribution is f X : R [0, ), f X (x) = 1 σ 2π exp( (x µ)2 /2σ 2 ) The notation X N (µ,σ 2 ) means that X is normally distributed with mean µ and variance σ When µ = 0, σ = 1, X N (0,1) is a standard normal random variable Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 18

One dimensional normal distribution Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 19

Example continuous distributions: uniform distribution The PDF of the uniform distribution is f X : [a,b] {0, 1 b a }, where I [a,b] (x) = { 1, x [a,b] 0, otherwise f X (x) = 1 b a I [a,b](x), Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 20

Example continuous distributions: uniform distribution The PDF of the uniform distribution is f X : [a,b] {0, 1 b a }, where I [a,b] (x) = { 1, x [a,b] 0, otherwise f X (x) = 1 b a I [a,b](x), The notation X U (a,b) means that X is uniformly distributed on the interval [a, b] Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 20

Example continuous distributions: uniform distribution The PDF of the uniform distribution is f X : [a,b] {0, 1 b a }, where I [a,b] (x) = { 1, x [a,b] 0, otherwise f X (x) = 1 b a I [a,b](x), The notation X U (a,b) means that X is uniformly distributed on the interval [a, b] Expectation and variance of the uniform distribution If X U (a,b), E[X] = a+b (b a)2 2, Var(X) = 12 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 20

One dimensional uniform distribution Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 21

Multivariate concepts

Multivariate concepts: random vectors, covariance, correlation X : Ω R n, X = [X 1,X 2,...,X n ] is called an n-dimensional random vector, where X 1,X 2,...,X n are random variables Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 23

Multivariate concepts: random vectors, covariance, correlation X : Ω R n, X = [X 1,X 2,...,X n ] is called an n-dimensional random vector, where X 1,X 2,...,X n are random variables The covariance of two random variables X and Y is cov(x,y ) = E[(X E[X])(Y E[Y ])] = E[XY ] E[X]E[Y ] Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 23

Multivariate concepts: random vectors, covariance, correlation X : Ω R n, X = [X 1,X 2,...,X n ] is called an n-dimensional random vector, where X 1,X 2,...,X n are random variables The covariance of two random variables X and Y is cov(x,y ) = E[(X E[X])(Y E[Y ])] = E[XY ] E[X]E[Y ] The Pearson correlation coefficient of two random variables X and Y is ρ XY = cov(x, Y) Var(X)Var(Y ), ρ XY [ 1,1] Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 23

Multivariate concepts: expectation, variance of a sum Let a 1,a 2,...,a n R and X 1,X 2,...,X n be random variables E [ n ] n a i X i = a i E[X i ] i=1 i=1 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 24

Multivariate concepts: expectation, variance of a sum Let a 1,a 2,...,a n R and X 1,X 2,...,X n be random variables E [ n ] n a i X i = a i E[X i ] i=1 i=1 Var ( n ) n a i X i = ai 2 Var(X i) + 2 a i a j cov(x i,x j ) i=1 i=1 i<j If X i,x i+1 are uncorrelated, i.e. ρ Xi X i+1 = 0, 1 i n, Var ( n ) n a i X i = ai 2 Var(X i) i=1 i=1 Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 24

Multivariate concepts: independence Let A, B denote two events. The joint probability of A and B, P(A,B), is defined as P(A,B) = P(A B) = P(A B)P(B), where P(A B) is the probability of A given that B already happened Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 25

Multivariate concepts: independence Let A, B denote two events. The joint probability of A and B, P(A,B), is defined as P(A,B) = P(A B) = P(A B)P(B), where P(A B) is the probability of A given that B already happened A and B are independent if P(A,B) = P(A)P(B), i. e. P(A B) = P(A) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 25

Multivariate concepts: independence Let A, B denote two events. The joint probability of A and B, P(A,B), is defined as P(A,B) = P(A B) = P(A B)P(B), where P(A B) is the probability of A given that B already happened A and B are independent if P(A,B) = P(A)P(B), i. e. P(A B) = P(A) The random variables X and Y are independent if their joint PDF (PMF) is f XY (x,y) = f X (x)f Y (y) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 25

Multivariate concepts: i.i.d. random variables Random variables X 1,X 2,...,X n are called independent and identically distributed (i.i.d.) with PDF f X if they are mutually independent and, if f Xi is the PDF of X i, 1 i n, f X1 = f X2 =... = f Xn := f X and f X (x 1,x 2,...x n ) = n i=1 f X (x i ) Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 26

Example multivariate distribution: multivariate normal The n-dimensional random vector X is normally distributed with mean vector µ = [µ 1, µ 2,..., µ n ] T and covariance matrix V,V ij = cov(x i,x j ), written X N (µ,v ), if f X (x) = where V is the determinant of V 1 (2π)n V exp[ 1 2 (x µ)v 1 (x µ) T ] Standard multivariate normal: µ = [0,0,...,0] T, V = I n Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 27

Standard bivariate normal distribution Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 28

Summary

Summary Coin flip experiment Probability space (Ω,F,P) Univariate concepts Random variables: discrete and continuous Cumulative distribution function (CDF) Continuous random variables Discrete random variables Examples: normal, uniform distributions Multivariate concepts Random vectors Covariance, correlation Independent and identically distributed random variables Example: bivariate normal distribution Dr. rer. nat. Tobias Neckel Algorithms for Uncertainty Quantification Summer Semester 2017 30