Generating Multivariate Gaussian

Slides:



Advertisements
Similar presentations
Kin 304 Regression Linear Regression Least Sum of Squares
Advertisements

Exercise session # 1 Random data generation Jan Matuska November, 2006 Labor Economics.
Bayesian inference of normal distribution
Inference for Linear Regression (C27 BVD). * If we believe two variables may have a linear relationship, we may find a linear regression line to model.
Function [C]=cholesky(A) [n,m]=size(A); C=zeros(n,n); if (A(1,1)
Normal distribution (3) When you don’t know the standard deviation.
Variance and Standard Deviation The Expected Value of a random variable gives the average value of the distribution The Standard Deviation shows how spread.
1 Engineering Computation Part 6. 2 Probability density function.
Multivariate Distance and Similarity Robert F. Murphy Cytometry Development Workshop 2000.
Time Series Basics Fin250f: Lecture 3.1 Fall 2005 Reading: Taylor, chapter
Rules for means Rule 1: If X is a random variable and a and b are fixed numbers, then Rule 2: If X and Y are random variables, then.
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
UNR, MATH/STAT 352, Spring summands UNR, MATH/STAT 352, Spring 2007.
The moment generating function of random variable X is given by Moment generating function.
Chapter 5. Operations on Multiple R. V.'s 1 Chapter 5. Operations on Multiple Random Variables 0. Introduction 1. Expected Value of a Function of Random.
Correlations and Copulas Chapter 10 Risk Management and Financial Institutions 2e, Chapter 10, Copyright © John C. Hull
GRA 6020 Multivariate Statistics The regression model Ulf H. Olsson Professor of Statistics.
1 Confidence Intervals for Means. 2 When the sample size n< 30 case1-1. the underlying distribution is normal with known variance case1-2. the underlying.
5-1 Two Discrete Random Variables Example Two Discrete Random Variables Figure 5-1 Joint probability distribution of X and Y in Example 5-1.
5-1 Two Discrete Random Variables Example Two Discrete Random Variables Figure 5-1 Joint probability distribution of X and Y in Example 5-1.
Sampling Distributions  A statistic is random in value … it changes from sample to sample.  The probability distribution of a statistic is called a sampling.
Computer vision: models, learning and inference Chapter 5 The Normal Distribution.
Chapter Two Probability Distributions: Discrete Variables
Moment Generating Functions 1/33. Contents Review of Continuous Distribution Functions 2/33.
Section 3.6 Recall that y –1/2 e –y dy =   0 (Multivariable Calculus is required to prove this!)  (1/2) = Perform the following change of variables.
Measures of Variability Objective: Students should know what a variance and standard deviation are and for what type of data they typically used.
Derivation of the Beta Risk Factor
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Michael Baron. Probability and Statistics for Computer Scientists,
Financial Mathematics. In finance, a hedge is an investment that is taken out specifically to reduce or cancel out the risk in another investment.financerisk.
1 Sample Geometry and Random Sampling Shyh-Kang Jeng Department of Electrical Engineering/ Graduate Institute of Communication/ Graduate Institute of Networking.
Multiple Random Variables & OperationsUnit-2. MULTIPLE CHOICE TRUE OR FALSE FILL IN THE BLANKS Multiple.
Lecture 11 Pairs and Vector of Random Variables Last Time Pairs of R.Vs. Marginal PMF (Cont.) Joint PDF Marginal PDF Functions of Two R.Vs Expected Values.
: Chapter 3: Maximum-Likelihood and Baysian Parameter Estimation 1 Montri Karnjanadecha ac.th/~montri.
Random Variables (1) A random variable (also known as a stochastic variable), x, is a quantity such as strength, size, or weight, that depends upon a.
7 sum of RVs. 7-1: variance of Z Find the variance of Z = X+Y by using Var(X), Var(Y), and Cov(X,Y)
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Geology 6600/7600 Signal Analysis 02 Sep 2015 © A.R. Lowry 2015 Last time: Signal Analysis is a set of tools used to extract information from sequences.
Math 4030 – 6a Joint Distributions (Discrete)
An Example of {AND, OR, Given that} Using a Normal Distribution By Henry Mesa.
Geology 6600/7600 Signal Analysis 04 Sep 2014 © A.R. Lowry 2015 Last time: Signal Analysis is a set of tools used to extract information from sequences.
6 vector RVs. 6-1: probability distribution A radio transmitter sends a signal to a receiver using three paths. Let X1, X2, and X3 be the signals that.
Statistics -Continuous probability distribution 2013/11/18.
Background for Machine Learning (I) Usman Roshan.
Section 2 Standard Units and Areas under the Standard Normal Distribution.
Basics of Multivariate Probability
Uncertainty and Error Propagation
Kin 304 Regression Linear Regression Least Sum of Squares
Probablity Density Functions
Project Management Simulation, U-Distribution
BPK 304W Regression Linear Regression Least Sum of Squares
AP Statistics: Chapter 7
An Example of {AND, OR, Given that} Using a Normal Distribution
Random Sampling Population Random sample: Statistics Point estimate
ECE 417 Lecture 4: Multivariate Gaussians
The Normal Probability Distribution Summary
Multivariate distributions
ASV Chapters 1 - Sample Spaces and Probabilities
Tutorial 7: General Random Variables 3
Consider the following problem
Two-way analysis of variance (ANOVA)
Tutorial 9 Suppose that a random sample of size 10 is drawn from a normal distribution with mean 10 and variance 4. Find the following probabilities:
Random WALK, BROWNIAN MOTION and SDEs
Section Means and Variances of Random Variables
Chapter 3 : Random Variables
CS723 - Probability and Stochastic Processes
Uncertainty and Error Propagation
Combining Random Variables
Moments of Random Variables
Probabilistic Surrogate Models
Outline Variance Matrix of Stochastic Variables and Orthogonal Transforms Principle Component Analysis Generalized Eigenvalue Decomposition.
Presentation transcript:

Generating Multivariate Gaussian

Generating Multivariate Gaussian We require n normal random numbers drawn from a multivariate normal distribution with

Generating Multivariate Gaussian Generate n independent, zero-mean, unit variance normal random variables Take where (Cholesky factorization)

Generating Multivariate Gaussian mx=[0 0]'; Cx=[1 0; 0 1]; x1=-3:0.1:3; x2=-3:0.1:3; for i=1:length(x1), for j=1:length(x2), f(i,j)=(1/(2*pi*det(Cx)^1/2))*exp((-1/2)*([x1(i) x2(j)]-mx')*inv(Cx)*([x1(i);x2(j)]-mx)); end mesh(x1,x2,f) pause; contour(x1,x2,f) pause

Generating Multivariate Gaussian [y1,y2]=gennormal(N,0,1); plot(y1,y2,'.')

Generating Multivariate Gaussian mx=[0 0]'; Cx=[1 1/2; 1/2 1];

Generating Multivariate Gaussian mx=zeros(2,N); [y1,y2]=gennormal(N,0,1); y=[y1;y2]; S=[1, 0; 1/2, sqrt(3)/2]; x=S*y+mx; x1=x(1,:); x2=x(2,:); plot(x1,x2,'.') r=corrcoef(x1',x2') r = 1.0000 0.5056 0.5056 1.0000

Generating Multivariate Gaussian mx=[5 5]'; Cx=[1 9/10; 9/10 1];

Generating Multivariate Gaussian mx=5*ones(2,N); [y1,y2]=gennormal(N,0,1); y=[y1;y2]; S=[1, 0; 9/10, sqrt(19)/10]; x=S*y+mx; x1=x(1,:); x2=x(2,:); plot(x1,x2,'.') r=corrcoef(x1',x2') r = 1.0000 0.9041 0.9041 1.0000