Lecture 14: Multivariate Distributions

Slides:



Advertisements
Similar presentations
MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS
Advertisements

Review of Probability. Definitions (1) Quiz 1.Let’s say I have a random variable X for a coin, with event space {H, T}. If the probability P(X=H) is.
Random Variables ECE460 Spring, 2012.
Lecture (7) Random Variables and Distribution Functions.
Lec 18 Nov 12 Probability – definitions and simulation.
Review of Basic Probability and Statistics
Chapter 4 Discrete Random Variables and Probability Distributions
Chapter 1 Probability Theory (i) : One Random Variable
Joint Distributions, Marginal Distributions, and Conditional Distributions Note 7.
Probability Theory Part 2: Random Variables. Random Variables  The Notion of a Random Variable The outcome is not always a number Assign a numerical.
A random variable that has the following pmf is said to be a binomial random variable with parameters n, p The Binomial random variable.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
Chapter 4: Joint and Conditional Distributions
1 Fin500J Topic 10Fall 2010 Olin Business School Fin500J: Mathematical Foundations in Finance Topic 10: Probability and Statistics Philip H. Dybvig Reference:
Lecture II-2: Probability Review
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.
Joint Probability distribution
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.
Joint Probability Distributions
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
Lecture 28 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
Chapter6 Jointly Distributed Random Variables
Random variables Petter Mostad Repetition Sample space, set theory, events, probability Conditional probability, Bayes theorem, independence,
CIVL 181Tutorial 5 Return period Poisson process Multiple random variables.
Probability theory 2 Tron Anders Moger September 13th 2006.
2.1 Random Variable Concept Given an experiment defined by a sample space S with elements s, we assign a real number to every s according to some rule.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Lecture 14: Multivariate Distributions Probability Theory and Applications Fall 2005 October 25.
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}.
Probability & Statistics I IE 254 Summer 1999 Chapter 4  Continuous Random Variables  What is the difference between a discrete & a continuous R.V.?
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
Chapter 5 Joint Continuous Probability Distributions Doubling our pleasure with two random variables Chapter 5C.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
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.
EE 5345 Multiple Random Variables
Conditional Probability Mass Function. Introduction P[A|B] is the probability of an event A, giving that we know that some other event B has occurred.
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.
F Y (y) = F (+ , y) = = P{Y  y} 3.2 Marginal distribution F X (x) = F (x, +  ) = = P{X  x} Marginal distribution function for bivariate Define –P57.
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U Authors: Gary Greer (with.
2.2 Discrete Random Variables 2.2 Discrete random variables Definition 2.2 –P27 Definition 2.3 –P27.
Random Variables By: 1.
Probability Distributions  A variable (A, B, x, y, etc.) can take any of a specified set of values.  When the value of a variable is the outcome of a.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
Chapter 5 Discrete Probability Distributions
Statistics Lecture 19.
The Exponential and Gamma Distributions
Functions and Transformations of Random Variables
Jointly distributed random variables
Cumulative distribution functions and expected values
Probability 5: Binomial Distribution
Appendix A: Probability Theory
Some Rules for Expectation
Moment Generating Functions
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Distributions and expected value
How accurately can you (1) predict Y from X, and (2) predict X from Y?
Statistics Lecture 12.
Statistical analysis and its application
Lectures prepared by: Elchanan Mossel Yelena Shvets
Chapter 3 : Random Variables
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
EE 5345 Multiple Random Variables 2-D RV’s Conditional RV’s
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
HKN ECE 313 Exam 2 Review Session
Lectures prepared by: Elchanan Mossel Yelena Shvets
Geometric Poisson Negative Binomial Gamma
Moments of Random Variables
Presentation transcript:

Lecture 14: Multivariate Distributions Lottery:  A tax on people who are bad at math.  ~Author Unknown Lecture 14: Multivariate Distributions Probability Theory and Applications Fall 2008 October 17-20

Outline Multivariate Distributions Bivariate Distributions Discrete Continuous Mixed Marginal Distributions Conditional Distributions Independence

Multivariate Distributions Distributions may have more than one R.V. Example: S=size of house - real RV P=price of house - real RV A=Age of house - real RV C= condition of house Excellent, Very Good, Good, Poor - discrete RV Since variables are not-independent need a multivariate distribution to describe them: f(S,P,A,C)

Bivariate Random Variables Given R.V. X and Y Cases X,Y both discrete number of blue and red jelly beans picked from jar 2. X,Y both continuous height and weight 3. X discrete and Y continuous date and stock price

Both Discrete The joint distribution of (X,Y) is specified by The value set of (X,Y) The joint probability function f(x,y)=P(X=x,Y=y) Note: f(x,y)≥0 for any (x,y)

Discrete Example Box contains jewels H=high quality M=medium quality D=defective You pick two jewels w/o replacement X=# of H Y =#of M

Joint Probability Function X\Y 1 2 1/21 4/21 6/21 0/21 12/21 3/21 10/21

Joint Probability Function X\Y 1 2 1/21 4/21 6/21 0/21 3/21

Marginal Probability Functions X\Y 1 2 1/21 4/21 6/21 0/21 12/21 3/21 10/21

Definitions The marginal distribution of X is Note this is exactly the same as pdf of X The joint cumulative density function of X,Y is

Questions P(You get one high quality and one medium jewel)? P(You pick at least one high quality jewel)?

Conditional Distributions The conditional distribution of Y given X is In our example:

Conditional Probability Functions X\Y 1 2 1/21 4/21 6/21 0/21 12/21 3/21 10/21 Y 1 2 f(y|X=1)

Conditional Probability Functions X\Y 1 2 1/21 4/21 6/21 0/21 12/21 3/21 10/21 Find distribution of X given Y=1 X 1 2 f(x|Y=1) 4/10 6/10

Question Given that exactly one jewel picked is medium quality, what is the probability that the other is high quality? 6/10 Given that at least one jewel picked is medium quality, what is the probability that the other is high quality? 6/11

X,Y both Continuous The joint pdf, f(x,y) defined over R2 has properties: f(x,y)≥0 To calculate probabilities, integrate joint pdf over X,Y over the area Or more generally if we want

X,Y both Continuous More generally if we want The c.d.f.

Marginals and Conditionals The marginal pdf of X The marginal pdf of Y The conditional pdf of X given Y=y

Examples The joint pdf of (x,y) is Find c

continued Find pdf of X Find pdf of Y

continued Find marginal of X given Y=1 Note this is the same as marginal of X! X and Y are independent!

continued 2 Find P(X>Y) Y 0 X 1

Mixed Continuous and Discrete Let L a be R.V. that is 1 if candy corn manufactured from Line 1 and 0 if line 0 Let X=weight of candy corn The joint pdf is What is the marginal distribution of X – the weight of the candy corn?

Mixed Continuous and Discrete The joint pdf is Sum over L to find the marginal of X

Conditional Distribution What is the marginal of L? L is Bernoulli R.V. p=0.25 What is the conditional X given L? If candy corn is from Line 1, weight is normal with mean 7.05 and s.d. = 1. If candy corn is from Line 0, mean 10.1 and s.d. = 1.2.

Mixture Model X is a mixture of two different normals

Example 5 Harry Potter plays flips a magical coin 10 times and records the number of heads. The coin is magical because each day the probability of getting heads changes. Let Y, the probability of getting heads on a given day, be uniform [0,1] Let X be the number of heads of 10 gotten on a given day with the magic coin. What is the pdf of X?

Example 5 continued Y is uniform [0,1] so X|Y is binomial n=10 p=Y So f(X,Y) X is discrete uniform All values equally likely

Fact You can compute the joint from a marginal and a conditional. Be careful how you compute the value sets!

Example 2 – Two Continuous The joint pdf of X and Y is Find marginal of X 1 Y O X 1

Example 2 Still need c You check:

continued P(Y≥2X) Find P(Y<2X) O X 1 Y O X 1 Y

Conditional distribution Find conditional pdf of Y and X=1/2 1 Y O X 1

Conditional distribution Find conditional pdf of Y and X=x 0<x<1 1 Y O X 1

Independence R.V. X and Y are independent if and only any of the following hold F(x,y)=FX(x)FY(y) P(X≤x,Y≤y)= P(X≤x)P(Y≤y) 2. f(x,y)=fX(x)fY(y) 3. f(y|x)=fY(y)

Example 3 Given the joint pdf of X,Y Use the marginal of X and the conditional pdf of Y given X=x to determine if X and Y are independent?

Answer 1 Find marginal of X Find conditional of Y given X Y O

Answer continued Are they independent? No

Note P(Y≤3/4|x=1/2) and P(Y≤3/4|x ≤1/2) are very different things! Let’s calculate each one

P(Y≤3/4|X=1/2) The pdf of Y given X=1/2 is so

P(Y≤3/4|X ≤ 1/2) The probability Y given X ≤ 1/2 is where

P(Y≤3/4|X ≤ 1/2) The probability P(Y≤3/4,X ≤ 1/2) The probability 1 O

Example 4 Suppose X has the Gamma distribution with parameters with K=2 and theta=1 and the conditional distribution of Y given X. (X>0) is Find P( X<4| Y=2)

Example 4 We know f(x,y)=f(x|y)fx(x) so the joint is The marginal of Y is Thus conditional of X given Y is

Example 4 continued So Thus Exercise try: P(X>4|Y>2)

Example 5 – Two Discretes You write a paper with an average rate of 10 errors per paper. Assume the number of errors per papers follows a Poisson distribution. You roommate proofreads it for you, and he/she has .8 percent of correcting each error. What is the joint distributions of the number of errors and the number of corrections? What is the distribution of the number of errors after you roommate reads the paper?

answer Let X be the number of errors Y be the number of errors after correction Clearly Y depends on X. Given What is pdf of Y|X? binomial(n=X,p=.2)

answer Let X be the number of errors Y be the number of errors after correction Extra Credit: if you can figure out marginal of Y.