Tim Marks, Dept. of Computer Science and Engineering Random Variables and Random Vectors Tim Marks University of California San Diego.

Slides:



Advertisements
Similar presentations
CS433: Modeling and Simulation
Advertisements

Random Variables ECE460 Spring, 2012.
ฟังก์ชั่นการแจกแจงความน่าจะเป็น แบบไม่ต่อเนื่อง Discrete Probability Distributions.
Laws of division of casual sizes. Binomial law of division.
Lec 18 Nov 12 Probability – definitions and simulation.
DEPARTMENT OF HEALTH SCIENCE AND TECHNOLOGY STOCHASTIC SIGNALS AND PROCESSES Lecture 1 WELCOME.
Review of Basic Probability and Statistics
1 Def: Let and be random variables of the discrete type with the joint p.m.f. on the space S. (1) is called the mean of (2) is called the variance of (3)
Slide 1 EE3J2 Data Mining EE3J2 Data Mining Lecture 10 Statistical Modelling Martin Russell.
Probability Theory Part 2: Random Variables. Random Variables  The Notion of a Random Variable The outcome is not always a number Assign a numerical.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Discrete random variables Probability mass function Distribution function (Secs )
Probability Distributions Finite Random Variables.
Chapter 5: Probability Concepts
Visual Recognition Tutorial
Probability Distributions
1 Review of Probability Theory [Source: Stanford University]
Data Basics. Data Matrix Many datasets can be represented as a data matrix. Rows corresponding to entities Columns represents attributes. N: size of the.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Probability Mass Function Expectation 郭俊利 2009/03/16
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Chapter 4: Joint and Conditional Distributions
Review of Probability and Random Processes
Random Variable and Probability Distribution
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Probability Distributions: Finite Random Variables.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Physics Fluctuomatics (Tohoku University) 1 Physical Fluctuomatics 2nd Mathematical Preparations (1): Probability and statistics Kazuyuki Tanaka Graduate.
OUTLINE Probability Theory Linear Algebra Probability makes extensive use of set operations, A set is a collection of objects, which are the elements.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
IID Samples In supervised learning, we usually assume that data points are sampled independently and from the same distribution IID assumption: data are.
0 K. Salah 2. Review of Probability and Statistics Refs: Law & Kelton, Chapter 4.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
1 Lecture 7: Discrete Random Variables and their Distributions Devore, Ch
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 5.2: Recap on Probability Theory Jürgen Sturm Technische Universität.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
CS433 Modeling and Simulation Lecture 03 – Part 01 Probability Review 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University
4.1 Probability Distributions Important Concepts –Random Variables –Probability Distribution –Mean (or Expected Value) of a Random Variable –Variance and.
Probability Review-1 Probability Review. Probability Review-2 Probability Theory Mathematical description of relationships or occurrences that cannot.
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
Basics on Probability Jingrui He 09/11/2007. Coin Flips  You flip a coin Head with probability 0.5  You flip 100 coins How many heads would you expect.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
PROBABILITY AND STATISTICS WEEK 4 Onur Doğan. Random Variable Random Variable. Let S be the sample space for an experiment. A real-valued function that.
Random Variables Example:
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
Chapter 5. Continuous Random Variables. Continuous Random Variables Discrete random variables –Random variables whose set of possible values is either.
CSE 474 Simulation Modeling | MUSHFIQUR ROUF CSE474:
Review Know properties of Random Variables
February 16. In Chapter 5: 5.1 What is Probability? 5.2 Types of Random Variables 5.3 Discrete Random Variables 5.4 Continuous Random Variables 5.5 More.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
1 Review of Probability and Random Processes. 2 Importance of Random Processes Random variables and processes talk about quantities and signals which.
Random Variables By: 1.
APPENDIX A: A REVIEW OF SOME STATISTICAL CONCEPTS
Random variables (r.v.) Random variable
Unit 5 Section 5-2.
Graduate School of Information Sciences, Tohoku University
Analysis of Engineering and Scientific Data
RANDOM VARIABLES, EXPECTATIONS, VARIANCES ETC.
Multivariate Methods Berlin Chen
POPULATION (of “units”)
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Experiments, Outcomes, Events and Random Variables: A Revisit
Discrete Random Variables: Basics
Presentation transcript:

Tim Marks, Dept. of Computer Science and Engineering Random Variables and Random Vectors Tim Marks University of California San Diego

Tim Marks, Dept. of Computer Science and Engineering Good Review Materials (Gonzales & Woods review materials) Chapt. 1: Linear Algebra Review Chapt. 2: Probability, Random Variables, Random Vectors

Tim Marks, Dept. of Computer Science and Engineering Random variables Samples from a random variable are real numbers –A random variable is associated with a probability distribution over these real values –Two types of random variables Discrete –Only finitely many possible values for the random variable: X  {a 1, a 2, …, a n } –(Could also have a countable infinity of possible values) »e.g., the random variable could take any positive integer value –Each possible value has a finite probability of occurring. Continuous –Infinitely many possible values for the random variable –E.g., X  {Real numbers}

Tim Marks, Dept. of Computer Science and Engineering Discrete random variables have a pmf (probability mass function), P P(X = a) = P(a) Example: Coin flip X = 0 if heads X = 1 if tails –What is the pmf of this random variable? Discrete random variables

Tim Marks, Dept. of Computer Science and Engineering Discrete random variables have a pmf (probability mass function), P P(X = a) = P(a) Example: Die roll X  {1, 2, 3, 4, 5, 6} –What is the pmf of this random variable? Discrete random variables

Tim Marks, Dept. of Computer Science and Engineering Continuous random variables Continuous random variables have a pdf (probability density function), p Example: Uniform distribution p(x)p(x) x p(1.3) = ? p(2.4) = ? What is the probability that X = 1.3 exactly: P(X = 1.3) = ? Probability corresponds to area under the pdf. P(1 < X < 1.5) = ?

Tim Marks, Dept. of Computer Science and Engineering Continuous random variables What is the total area under any pdf ? p(h)p(h) h p(h)p(h) h p(h)p(h) h Example continuous random variable: Human heights

Tim Marks, Dept. of Computer Science and Engineering Random variables How much change do you have on you? –Asking a person (chosen at random) that question can be thought of as sampling from a random variable. Is the random variable “Amount of change people carry” discrete or continuous?

Tim Marks, Dept. of Computer Science and Engineering Random variables: Mean & Variance These formulas can be used to find the mean and variance of a random variable when its true probability distribution is known. DefinitionDiscrete r.v.Continuous r.v. Mean  Variance Var(X)

Tim Marks, Dept. of Computer Science and Engineering An important type of random variable

Tim Marks, Dept. of Computer Science and Engineering The Gaussian distribution X ~ N   2 )

Tim Marks, Dept. of Computer Science and Engineering Estimating the Mean & Variance –After sampling from a random variable n times, these formulas can be used to estimate the mean and variance of the random variable. Samples x 1, x 2, x 3, …, x n Estimated mean: Estimated variance:  maximum likelihood estimate  unbiased estimate

Tim Marks, Dept. of Computer Science and Engineering –Samples –Mean >> m = (1/n)*sum(x) –Variance Method 1: >> v = (1/n)*(x-m)*(x-m)’ Method 2: >> z = x-m >> v = (1/n)*z*z’ Finding mean, variance in Matlab

Tim Marks, Dept. of Computer Science and Engineering Example continuous random variable People’s heights (made up) –Gaussian  = 67,  2 = 20 What if you went to a planet where heights were Gaussian with  = 75,  2 = 5 –How would they be different from us?

Tim Marks, Dept. of Computer Science and Engineering Example continuous random variable Time people woke up this morning –Gaussian  = 9,  2 = 1

Tim Marks, Dept. of Computer Science and Engineering Random vectors –An n-dimensional random vector consists of n random variables all associated with the same probability space. Each outcome dictates the value of every random variable. –Example 2-D random vector: whereX is random variable of human heights Y is random variable of wake-up times –Sample n times from V. Let’s collect some samples and graph them: y (wake-up times) x (heights)

Tim Marks, Dept. of Computer Science and Engineering Random Vectors The probability distribution of the random vector P(V) is P(X, Y), the joint probability distribution of the random variables X and Y. What will the graph of samples from V look like? Find m, the mean of V –(Mean of X is 67) –(Mean of Y is 10)

Tim Marks, Dept. of Computer Science and Engineering Estimating the mean of a random vector –n samples from V Mean –To estimate mean of V in Matlab >> (1/n)*sum(v,2) Mean of a random vector

Tim Marks, Dept. of Computer Science and Engineering Random vector –Example 2-D random vector: whereX is random variable of human heights Y is random variable of human weights Sample n times from V –What will graph look like?

Tim Marks, Dept. of Computer Science and Engineering Covariance of two random variables Height and wake-up time are uncorrelated, but height and weight are correlated. Covariance Cov(X, Y) = 0 for X = height, Y = wake-up times Cov(X, Y) > 0 for X = height, Y = weight –Definition: If Cov(X, Y) < 0 for two random variables X, Y, what would a scatterplot of samples from X, Y look like?

Tim Marks, Dept. of Computer Science and Engineering Cov(X, X) = ?Var(X) Estimating covariance from samples Sample n times:  maximum likelihood estimate  unbiased estimate How are Cov(X, Y) and Cov(Y, X) related? Cov(X, Y) = Cov(Y, X)

Tim Marks, Dept. of Computer Science and Engineering Estimating covariance in Matlab –Samples– Means m x  m_x m y  m_y –Covariance Method 1: >> v = (1/n)*(x-m_x)*(y-m_y)’ Method 2: >> w = x-m_x >> z = y-m_y >> v = (1/n)*w*z’

Tim Marks, Dept. of Computer Science and Engineering Covariance matrix of a D-dimensional random vector In 2 dimensions In D dimensions When is a covariance matrix symmetric? A. always, B. sometimes, or C. never

Tim Marks, Dept. of Computer Science and Engineering Example covariance matrix People’s heights (made up) X ~ N(67, 20) Time people woke up this morning Y ~ N(9, 1) What is the covariance matrix of ?

Tim Marks, Dept. of Computer Science and Engineering Estimating the covariance matrix from samples (including Matlab code) –Sample n times and find mean of samples –Find the covariance matrix >> m = (1/n)*sum(v,2) >> z = v - repmat(m,1,n) >> v = (1/n)*z*z’

Tim Marks, Dept. of Computer Science and Engineering Gaussian distribution in D dimensions 1-dimensional Gaussian is completely determined by its mean, , and variance,  2 : D-dimensional Gaussian is completely determined by its mean, , and covariance matrix,  X ~ N   2 ) X ~ N   ) –What happens when D = 1 in the Gaussian formula?